| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ktls.h | 53 void mlx5e_ktls_build_netdev(struct mlx5e_priv *priv); 54 int mlx5e_ktls_init_tx(struct mlx5e_priv *priv); 55 void mlx5e_ktls_cleanup_tx(struct mlx5e_priv *priv); 56 int mlx5e_ktls_init_rx(struct mlx5e_priv *priv); 57 void mlx5e_ktls_cleanup_rx(struct mlx5e_priv *priv); 94 int mlx5e_ktls_init(struct mlx5e_priv *priv); 95 void mlx5e_ktls_cleanup(struct mlx5e_priv *priv); 97 int mlx5e_ktls_get_count(struct mlx5e_priv *priv); 98 void mlx5e_ktls_get_strings(struct mlx5e_priv *priv, u8 **data); 99 void mlx5e_ktls_get_stats(struct mlx5e_priv *priv, u64 **data); [all …]
|
| H A D | ipsec.h | 133 struct mlx5e_priv; 237 struct mlx5e_priv *slave_priv; 238 struct mlx5e_priv *master_priv; 312 void mlx5e_ipsec_init(struct mlx5e_priv *priv); 313 void mlx5e_ipsec_cleanup(struct mlx5e_priv *priv); 314 void mlx5e_ipsec_build_netdev(struct mlx5e_priv *priv); 338 void mlx5e_accel_ipsec_fs_read_stats(struct mlx5e_priv *priv, 343 void mlx5e_ipsec_handle_mpv_event(int event, struct mlx5e_priv *slave_priv, 344 struct mlx5e_priv *master_priv); 345 void mlx5e_ipsec_send_event(struct mlx5e_priv *priv, int event); [all …]
|
| H A D | macsec.h | 14 struct mlx5e_priv; 17 void mlx5e_macsec_build_netdev(struct mlx5e_priv *priv); 18 int mlx5e_macsec_init(struct mlx5e_priv *priv); 19 void mlx5e_macsec_cleanup(struct mlx5e_priv *priv); 42 static inline void mlx5e_macsec_build_netdev(struct mlx5e_priv *priv) {} in mlx5e_macsec_build_netdev() 43 static inline int mlx5e_macsec_init(struct mlx5e_priv *priv) { return 0; } in mlx5e_macsec_init() 44 static inline void mlx5e_macsec_cleanup(struct mlx5e_priv *priv) {} in mlx5e_macsec_cleanup()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_tc.h | 58 int mlx5e_tc_num_filters(struct mlx5e_priv *priv, unsigned long flags); 193 int mlx5e_configure_flower(struct net_device *dev, struct mlx5e_priv *priv, 195 int mlx5e_delete_flower(struct net_device *dev, struct mlx5e_priv *priv, 198 int mlx5e_stats_flower(struct net_device *dev, struct mlx5e_priv *priv, 200 int mlx5e_tc_fill_action_stats(struct mlx5e_priv *priv, 203 int mlx5e_tc_configure_matchall(struct mlx5e_priv *priv, 205 int mlx5e_tc_delete_matchall(struct mlx5e_priv *priv, 209 void mlx5e_tc_encap_flows_add(struct mlx5e_priv *priv, 212 void mlx5e_tc_encap_flows_del(struct mlx5e_priv *priv, 216 void mlx5e_encap_put(struct mlx5e_priv *priv, struct mlx5e_encap_entry *e); [all …]
|
| H A D | en.h | 456 struct mlx5e_priv *priv; 708 struct mlx5e_priv *priv; 789 struct mlx5e_priv *priv; 896 struct mlx5e_priv { struct 1005 void (*cleanup)(struct mlx5e_priv *priv); 1006 int (*init_rx)(struct mlx5e_priv *priv); 1007 void (*cleanup_rx)(struct mlx5e_priv *priv); 1008 int (*init_tx)(struct mlx5e_priv *priv); 1009 void (*cleanup_tx)(struct mlx5e_priv *priv); 1010 void (*enable)(struct mlx5e_priv *priv); [all …]
|
| H A D | en_rep.c | 76 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_drvinfo() 292 static void mlx5e_rep_update_vport_q_counter(struct mlx5e_priv *priv) in mlx5e_rep_update_vport_q_counter() 317 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_strings() 329 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_ethtool_stats() 336 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_sset_count() 352 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_ringparam() 363 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_set_ringparam() 371 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_channels() 379 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_set_channels() 389 struct mlx5e_priv *priv = netdev_priv(netdev); in mlx5e_rep_get_coalesce() [all …]
|
| H A D | en_rep.h | 141 struct mlx5e_priv *priv; 249 int mlx5e_rep_bond_update(struct mlx5e_priv *priv, bool cleanup); 255 bool mlx5e_is_uplink_rep(struct mlx5e_priv *priv); 256 void mlx5e_rep_activate_channels(struct mlx5e_priv *priv); 257 void mlx5e_rep_deactivate_channels(struct mlx5e_priv *priv); 259 void mlx5e_rep_queue_neigh_stats_work(struct mlx5e_priv *priv); 270 static inline bool mlx5e_is_uplink_rep(struct mlx5e_priv *priv) { return false; } in mlx5e_is_uplink_rep() 271 static inline void mlx5e_rep_activate_channels(struct mlx5e_priv *priv) {} in mlx5e_rep_activate_channels() 272 static inline void mlx5e_rep_deactivate_channels(struct mlx5e_priv *priv) {} in mlx5e_rep_deactivate_channels() 282 static inline bool mlx5e_is_vport_rep(struct mlx5e_priv *priv) in mlx5e_is_vport_rep()
|
| H A D | en_selftest.c | 41 static int mlx5e_test_health_info(struct mlx5e_priv *priv) in mlx5e_test_health_info() 48 static int mlx5e_test_link_state(struct mlx5e_priv *priv) in mlx5e_test_link_state() 59 static int mlx5e_test_link_speed(struct mlx5e_priv *priv) in mlx5e_test_link_speed() 80 static struct sk_buff *mlx5e_test_get_udp_skb(struct mlx5e_priv *priv) in mlx5e_test_get_udp_skb() 201 static int mlx5e_test_loopback_setup(struct mlx5e_priv *priv, in mlx5e_test_loopback_setup() 239 static void mlx5e_test_loopback_cleanup(struct mlx5e_priv *priv, in mlx5e_test_loopback_cleanup() 249 static int mlx5e_cond_loopback(struct mlx5e_priv *priv) in mlx5e_cond_loopback() 261 static int mlx5e_test_loopback(struct mlx5e_priv *priv) in mlx5e_test_loopback() 308 typedef int (*mlx5e_st_func)(struct mlx5e_priv *); 330 struct mlx5e_priv *priv = netdev_priv(ndev); in mlx5e_self_test() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_tun.h | 33 bool (*can_offload)(struct mlx5e_priv *priv); 36 struct mlx5e_priv *priv, 42 int (*parse_udp_ports)(struct mlx5e_priv *priv, 47 int (*parse_tunnel)(struct mlx5e_priv *priv, 65 struct mlx5e_priv *priv, 69 int mlx5e_tc_tun_create_header_ipv4(struct mlx5e_priv *priv, 72 int mlx5e_tc_tun_update_header_ipv4(struct mlx5e_priv *priv, 77 int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv, 80 int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv, 85 mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv, in mlx5e_tc_tun_create_header_ipv6() [all …]
|
| H A D | health.h | 17 void mlx5e_reporter_tx_create(struct mlx5e_priv *priv); 18 void mlx5e_reporter_tx_destroy(struct mlx5e_priv *priv); 29 void mlx5e_reporter_rx_create(struct mlx5e_priv *priv); 30 void mlx5e_reporter_rx_destroy(struct mlx5e_priv *priv); 41 int (*dump)(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg, void *ctx); 48 int mlx5e_health_recover_channels(struct mlx5e_priv *priv); 49 int mlx5e_health_report(struct mlx5e_priv *priv, 52 void mlx5e_health_create_reporters(struct mlx5e_priv *priv); 53 void mlx5e_health_destroy_reporters(struct mlx5e_priv *priv); 54 void mlx5e_health_channels_update(struct mlx5e_priv *priv); [all …]
|
| H A D | tc_tun_encap.h | 9 void mlx5e_detach_encap(struct mlx5e_priv *priv, 14 int mlx5e_attach_encap(struct mlx5e_priv *priv, 22 int mlx5e_attach_decap(struct mlx5e_priv *priv, 25 void mlx5e_detach_decap(struct mlx5e_priv *priv, 28 int mlx5e_attach_decap_route(struct mlx5e_priv *priv, 30 void mlx5e_detach_decap_route(struct mlx5e_priv *priv, 33 int mlx5e_tc_tun_encap_dests_set(struct mlx5e_priv *priv, 38 void mlx5e_tc_tun_encap_dests_unset(struct mlx5e_priv *priv, 47 struct mlx5e_tc_tun_encap *mlx5e_tc_tun_init(struct mlx5e_priv *priv);
|
| H A D | fs_ethtool.h | 7 struct mlx5e_priv; 14 int mlx5e_ethtool_set_rxfh_fields(struct mlx5e_priv *priv, 17 int mlx5e_ethtool_get_rxfh_fields(struct mlx5e_priv *priv, 19 int mlx5e_ethtool_set_rxnfc(struct mlx5e_priv *priv, struct ethtool_rxnfc *cmd); 20 int mlx5e_ethtool_get_rxnfc(struct mlx5e_priv *priv, 29 mlx5e_ethtool_set_rxfh_fields(struct mlx5e_priv *priv, in mlx5e_ethtool_set_rxfh_fields() 34 mlx5e_ethtool_get_rxfh_fields(struct mlx5e_priv *priv, in mlx5e_ethtool_get_rxfh_fields() 37 static inline int mlx5e_ethtool_set_rxnfc(struct mlx5e_priv *priv, struct ethtool_rxnfc *cmd) in mlx5e_ethtool_set_rxnfc() 39 static inline int mlx5e_ethtool_get_rxnfc(struct mlx5e_priv *priv, in mlx5e_ethtool_get_rxnfc()
|
| H A D | qos.h | 11 struct mlx5e_priv; 21 int mlx5e_open_qos_sq(struct mlx5e_priv *priv, struct mlx5e_channels *chs, 24 void mlx5e_deactivate_qos_sq(struct mlx5e_priv *priv, u16 qid); 25 void mlx5e_close_qos_sq(struct mlx5e_priv *priv, u16 qid); 26 void mlx5e_reactivate_qos_sq(struct mlx5e_priv *priv, u16 qid, struct netdev_queue *txq); 29 int mlx5e_qos_open_queues(struct mlx5e_priv *priv, struct mlx5e_channels *chs); 30 void mlx5e_qos_activate_queues(struct mlx5e_priv *priv); 35 int mlx5e_qos_alloc_queues(struct mlx5e_priv *priv, struct mlx5e_channels *chs); 41 int mlx5e_htb_setup_tc(struct mlx5e_priv *priv, struct tc_htb_qopt_offload *htb);
|
| H A D | hv_vhca_stats.h | 10 void mlx5e_hv_vhca_stats_create(struct mlx5e_priv *priv); 11 void mlx5e_hv_vhca_stats_destroy(struct mlx5e_priv *priv); 14 static inline void mlx5e_hv_vhca_stats_create(struct mlx5e_priv *priv) {} in mlx5e_hv_vhca_stats_create() 15 static inline void mlx5e_hv_vhca_stats_destroy(struct mlx5e_priv *priv) {} in mlx5e_hv_vhca_stats_destroy()
|
| H A D | monitor_stats.c | 37 int mlx5e_monitor_counter_supported(struct mlx5e_priv *priv) in mlx5e_monitor_counter_supported() 59 struct mlx5e_priv *priv = container_of(work, struct mlx5e_priv, in mlx5e_monitor_counters_work() 74 struct mlx5e_priv *priv = mlx5_nb_cof(nb, struct mlx5e_priv, in mlx5e_monitor_event_handler() 138 void mlx5e_monitor_counter_init(struct mlx5e_priv *priv) in mlx5e_monitor_counter_init() 155 void mlx5e_monitor_counter_cleanup(struct mlx5e_priv *priv) in mlx5e_monitor_counter_cleanup()
|
| H A D | reporter_tx.c | 146 struct mlx5e_priv *priv; in mlx5e_tx_reporter_timeout_recover() 198 struct mlx5e_priv *priv; in mlx5e_tx_reporter_ptpsq_unhealthy_recover() 255 struct mlx5e_priv *priv = devlink_health_reporter_priv(reporter); in mlx5e_tx_reporter_recover() 338 struct mlx5e_priv *priv = devlink_health_reporter_priv(reporter); in mlx5e_tx_reporter_diagnose_common_config() 362 struct mlx5e_priv *priv = devlink_health_reporter_priv(reporter); in mlx5e_tx_reporter_diagnose_tis_config() 386 struct mlx5e_priv *priv = devlink_health_reporter_priv(reporter); in mlx5e_tx_reporter_diagnose() 425 static int mlx5e_tx_reporter_dump_sq(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg, in mlx5e_tx_reporter_dump_sq() 459 static int mlx5e_tx_reporter_timeout_dump(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg, in mlx5e_tx_reporter_timeout_dump() 467 static int mlx5e_tx_reporter_ptpsq_unhealthy_dump(struct mlx5e_priv *priv, in mlx5e_tx_reporter_ptpsq_unhealthy_dump() 476 static int mlx5e_tx_reporter_dump_all_sqs(struct mlx5e_priv *priv, in mlx5e_tx_reporter_dump_all_sqs() [all …]
|
| H A D | tc_priv.h | 78 struct mlx5e_priv *priv; 118 mlx5e_tc_rule_offload(struct mlx5e_priv *priv, 123 mlx5e_tc_rule_unoffload(struct mlx5e_priv *priv, 145 bool mlx5e_same_hw_devs(struct mlx5e_priv *priv, struct mlx5e_priv *peer_priv); 201 void mlx5e_flow_put(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow); 206 mlx5e_get_int_port_priv(struct mlx5e_priv *priv);
|
| H A D | reporter_rx.c | 175 struct mlx5e_priv *priv; in mlx5e_rx_reporter_timeout_recover() 215 struct mlx5e_priv *priv = devlink_health_reporter_priv(reporter); in mlx5e_rx_reporter_recover() 310 struct mlx5e_priv *priv = rq->priv; in mlx5e_rx_reporter_diagnose_generic_rq() 330 mlx5e_rx_reporter_diagnose_common_ptp_config(struct mlx5e_priv *priv, struct mlx5e_ptp *ptp_ch, in mlx5e_rx_reporter_diagnose_common_ptp_config() 341 mlx5e_rx_reporter_diagnose_common_config(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg) in mlx5e_rx_reporter_diagnose_common_config() 440 static void mlx5e_rx_reporter_diagnose_rx_res(struct mlx5e_priv *priv, in mlx5e_rx_reporter_diagnose_rx_res() 451 static void mlx5e_rx_reporter_diagnose_rqs(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg) in mlx5e_rx_reporter_diagnose_rqs() 477 struct mlx5e_priv *priv = devlink_health_reporter_priv(reporter); in mlx5e_rx_reporter_diagnose() 492 static int mlx5e_rx_reporter_dump_icosq(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg, in mlx5e_rx_reporter_dump_icosq() 527 static int mlx5e_rx_reporter_dump_rq(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg, in mlx5e_rx_reporter_dump_rq() [all …]
|
| H A D | tc_tun_encap.c | 18 static int mlx5e_set_int_port_tunnel(struct mlx5e_priv *priv, in mlx5e_set_int_port_tunnel() 70 struct mlx5e_priv *priv; 151 void mlx5e_tc_encap_flows_add(struct mlx5e_priv *priv, in mlx5e_tc_encap_flows_add() 221 void mlx5e_tc_encap_flows_del(struct mlx5e_priv *priv, in mlx5e_tc_encap_flows_del() 414 struct mlx5e_priv *priv = netdev_priv(e->out_dev); in mlx5e_tc_update_neigh_used_value() 464 static void mlx5e_encap_dealloc(struct mlx5e_priv *priv, struct mlx5e_encap_entry *e) in mlx5e_encap_dealloc() 480 static void mlx5e_decap_dealloc(struct mlx5e_priv *priv, in mlx5e_decap_dealloc() 491 void mlx5e_encap_put(struct mlx5e_priv *priv, struct mlx5e_encap_entry *e) in mlx5e_encap_put() 504 static void mlx5e_encap_put_locked(struct mlx5e_priv *priv, struct mlx5e_encap_entry *e) in mlx5e_encap_put_locked() 517 static void mlx5e_decap_put(struct mlx5e_priv *priv, struct mlx5e_decap_entry *d) in mlx5e_decap_put() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
| H A D | tc.h | 19 void mlx5e_rep_tc_enable(struct mlx5e_priv *priv); 20 void mlx5e_rep_tc_disable(struct mlx5e_priv *priv); 22 int mlx5e_rep_tc_event_port_affinity(struct mlx5e_priv *priv); 24 void mlx5e_rep_update_flows(struct mlx5e_priv *priv, 29 int mlx5e_rep_encap_entry_attach(struct mlx5e_priv *priv, 33 void mlx5e_rep_encap_entry_detach(struct mlx5e_priv *priv, 56 mlx5e_rep_tc_enable(struct mlx5e_priv *priv) {} in mlx5e_rep_tc_enable() 58 mlx5e_rep_tc_disable(struct mlx5e_priv *priv) {} in mlx5e_rep_tc_disable() 61 mlx5e_rep_tc_event_port_affinity(struct mlx5e_priv *priv) { return NOTIFY_DONE; } in mlx5e_rep_tc_event_port_affinity()
|
| H A D | bridge.h | 11 void mlx5e_rep_bridge_init(struct mlx5e_priv *priv); 12 void mlx5e_rep_bridge_cleanup(struct mlx5e_priv *priv); 16 static inline void mlx5e_rep_bridge_init(struct mlx5e_priv *priv) {} in mlx5e_rep_bridge_init() 17 static inline void mlx5e_rep_bridge_cleanup(struct mlx5e_priv *priv) {} in mlx5e_rep_bridge_cleanup()
|
| H A D | tc.c | 33 int mlx5e_rep_encap_entry_attach(struct mlx5e_priv *priv, in mlx5e_rep_encap_entry_attach() 70 void mlx5e_rep_encap_entry_detach(struct mlx5e_priv *priv, in mlx5e_rep_encap_entry_detach() 89 void mlx5e_rep_update_flows(struct mlx5e_priv *priv, in mlx5e_rep_update_flows() 132 mlx5e_rep_setup_tc_cls_flower(struct mlx5e_priv *priv, in mlx5e_rep_setup_tc_cls_flower() 150 static void mlx5e_tc_stats_matchall(struct mlx5e_priv *priv, in mlx5e_tc_stats_matchall() 165 int mlx5e_rep_setup_tc_cls_matchall(struct mlx5e_priv *priv, in mlx5e_rep_setup_tc_cls_matchall() 185 struct mlx5e_priv *priv = cb_priv; in mlx5e_rep_setup_tc_cb() 204 struct mlx5e_priv *priv = cb_priv; in mlx5e_rep_setup_ft_cb() 250 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_setup_tc() 291 void mlx5e_rep_tc_enable(struct mlx5e_priv *priv) in mlx5e_rep_tc_enable() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
| H A D | int_port.h | 21 mlx5e_tc_int_port_init(struct mlx5e_priv *priv); 25 void mlx5e_tc_int_port_init_rep_rx(struct mlx5e_priv *priv); 26 void mlx5e_tc_int_port_cleanup_rep_rx(struct mlx5e_priv *priv); 61 static inline void mlx5e_tc_int_port_init_rep_rx(struct mlx5e_priv *priv) {} in mlx5e_tc_int_port_init_rep_rx() 62 static inline void mlx5e_tc_int_port_cleanup_rep_rx(struct mlx5e_priv *priv) {} in mlx5e_tc_int_port_cleanup_rep_rx()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
| H A D | ipoib_vlan.c | 107 struct mlx5e_priv *epriv = mlx5i_epriv(netdev); in mlx5i_pkey_del_qpn() 158 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_pkey_dev_init() 195 struct mlx5e_priv *epriv = mlx5i_epriv(netdev); in mlx5i_pkey_open() 251 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_pkey_close() 275 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_pkey_change_mtu() 288 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_pkey_init() 308 static void mlx5i_pkey_cleanup(struct mlx5e_priv *priv) in mlx5i_pkey_cleanup() 313 static int mlx5i_pkey_init_tx(struct mlx5e_priv *priv) in mlx5i_pkey_init_tx() 324 static void mlx5i_pkey_cleanup_tx(struct mlx5e_priv *priv) in mlx5i_pkey_cleanup_tx() 331 static int mlx5i_pkey_init_rx(struct mlx5e_priv *priv) in mlx5i_pkey_init_rx() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
| H A D | act.h | 46 struct mlx5e_priv *priv, 50 struct mlx5e_priv *priv, 53 bool (*is_multi_table_act)(struct mlx5e_priv *priv, 59 int (*offload_action)(struct mlx5e_priv *priv, 63 int (*destroy_action)(struct mlx5e_priv *priv, 66 int (*stats_action)(struct mlx5e_priv *priv,
|