Home
last modified time | relevance | path

Searched refs:mlx5e_priv (Results 1 – 25 of 86) sorted by relevance

1234

/drivers/net/ethernet/mellanox/mlx5/core/en/
Dfs.h109 struct mlx5e_priv;
128 void mlx5e_ethtool_init_steering(struct mlx5e_priv *priv);
129 void mlx5e_ethtool_cleanup_steering(struct mlx5e_priv *priv);
134 static inline void mlx5e_ethtool_init_steering(struct mlx5e_priv *priv) { } in mlx5e_ethtool_init_steering()
135 static inline void mlx5e_ethtool_cleanup_steering(struct mlx5e_priv *priv) { } in mlx5e_ethtool_cleanup_steering()
146 int mlx5e_arfs_create_tables(struct mlx5e_priv *priv);
147 void mlx5e_arfs_destroy_tables(struct mlx5e_priv *priv);
148 int mlx5e_arfs_enable(struct mlx5e_priv *priv);
149 int mlx5e_arfs_disable(struct mlx5e_priv *priv);
153 static inline int mlx5e_arfs_create_tables(struct mlx5e_priv *priv) { return 0; } in mlx5e_arfs_create_tables()
[all …]
Dtc_tun.h33 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,
64 struct mlx5e_priv *priv,
68 int mlx5e_tc_tun_create_header_ipv4(struct mlx5e_priv *priv,
71 int mlx5e_tc_tun_update_header_ipv4(struct mlx5e_priv *priv,
76 int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv,
79 int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv,
84 mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv, in mlx5e_tc_tun_create_header_ipv6()
[all …]
Dqos.h11 struct mlx5e_priv;
16 int mlx5e_qos_cur_leaf_nodes(struct mlx5e_priv *priv);
19 int mlx5e_get_txq_by_classid(struct mlx5e_priv *priv, u16 classid);
20 struct mlx5e_txqsq *mlx5e_get_sq(struct mlx5e_priv *priv, int qid);
23 int mlx5e_qos_open_queues(struct mlx5e_priv *priv, struct mlx5e_channels *chs);
24 void mlx5e_qos_activate_queues(struct mlx5e_priv *priv);
29 int mlx5e_htb_root_add(struct mlx5e_priv *priv, u16 htb_maj_id, u16 htb_defcls,
31 int mlx5e_htb_root_del(struct mlx5e_priv *priv);
32 int mlx5e_htb_leaf_alloc_queue(struct mlx5e_priv *priv, u16 classid,
35 int mlx5e_htb_leaf_to_inner(struct mlx5e_priv *priv, u16 classid, u16 child_classid,
[all …]
Dhealth.h17 void mlx5e_reporter_tx_create(struct mlx5e_priv *priv);
18 void mlx5e_reporter_tx_destroy(struct mlx5e_priv *priv);
28 void mlx5e_reporter_rx_create(struct mlx5e_priv *priv);
29 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 …]
Dtc_tun_encap.h9 void mlx5e_detach_encap(struct mlx5e_priv *priv,
12 int mlx5e_attach_encap(struct mlx5e_priv *priv,
19 int mlx5e_attach_decap(struct mlx5e_priv *priv,
22 void mlx5e_detach_decap(struct mlx5e_priv *priv,
25 int mlx5e_attach_decap_route(struct mlx5e_priv *priv,
27 void mlx5e_detach_decap_route(struct mlx5e_priv *priv,
35 struct mlx5e_tc_tun_encap *mlx5e_tc_tun_init(struct mlx5e_priv *priv);
Dfs_tt_redirect.h14 mlx5e_fs_tt_redirect_udp_add_rule(struct mlx5e_priv *priv,
17 void mlx5e_fs_tt_redirect_udp_destroy(struct mlx5e_priv *priv);
18 int mlx5e_fs_tt_redirect_udp_create(struct mlx5e_priv *priv);
22 mlx5e_fs_tt_redirect_any_add_rule(struct mlx5e_priv *priv,
24 void mlx5e_fs_tt_redirect_any_destroy(struct mlx5e_priv *priv);
25 int mlx5e_fs_tt_redirect_any_create(struct mlx5e_priv *priv);
Dmonitor_stats.c23 int mlx5e_monitor_counter_supported(struct mlx5e_priv *priv) in mlx5e_monitor_counter_supported()
39 void mlx5e_monitor_counter_arm(struct mlx5e_priv *priv) in mlx5e_monitor_counter_arm()
50 struct mlx5e_priv *priv = container_of(work, struct mlx5e_priv, in mlx5e_monitor_counters_work()
62 struct mlx5e_priv *priv = mlx5_nb_cof(nb, struct mlx5e_priv, in mlx5e_monitor_event_handler()
100 static void mlx5e_set_monitor_counter(struct mlx5e_priv *priv) in mlx5e_set_monitor_counter()
128 void mlx5e_monitor_counter_init(struct mlx5e_priv *priv) in mlx5e_monitor_counter_init()
141 void mlx5e_monitor_counter_cleanup(struct mlx5e_priv *priv) in mlx5e_monitor_counter_cleanup()
Ddcbnl.h44 void mlx5e_dcbnl_initialize(struct mlx5e_priv *priv);
45 void mlx5e_dcbnl_init_app(struct mlx5e_priv *priv);
46 void mlx5e_dcbnl_delete_app(struct mlx5e_priv *priv);
50 static inline void mlx5e_dcbnl_initialize(struct mlx5e_priv *priv) {} in mlx5e_dcbnl_initialize()
51 static inline void mlx5e_dcbnl_init_app(struct mlx5e_priv *priv) {} in mlx5e_dcbnl_init_app()
52 static inline void mlx5e_dcbnl_delete_app(struct mlx5e_priv *priv) {} in mlx5e_dcbnl_delete_app()
/drivers/net/ethernet/mellanox/mlx5/core/
Den.h315 struct mlx5e_priv *priv;
407 struct mlx5e_priv *priv;
649 struct mlx5e_priv *priv;
724 struct mlx5e_priv *priv;
822 struct mlx5e_priv { struct
906 void (*cleanup)(struct mlx5e_priv *priv); argument
907 int (*init_rx)(struct mlx5e_priv *priv);
908 void (*cleanup_rx)(struct mlx5e_priv *priv);
909 int (*init_tx)(struct mlx5e_priv *priv);
910 void (*cleanup_tx)(struct mlx5e_priv *priv);
[all …]
Den_tc.h56 int mlx5e_tc_num_filters(struct mlx5e_priv *priv, unsigned long flags);
153 int mlx5e_configure_flower(struct net_device *dev, struct mlx5e_priv *priv,
155 int mlx5e_delete_flower(struct net_device *dev, struct mlx5e_priv *priv,
158 int mlx5e_stats_flower(struct net_device *dev, struct mlx5e_priv *priv,
161 int mlx5e_tc_configure_matchall(struct mlx5e_priv *priv,
163 int mlx5e_tc_delete_matchall(struct mlx5e_priv *priv,
165 void mlx5e_tc_stats_matchall(struct mlx5e_priv *priv,
169 void mlx5e_tc_encap_flows_add(struct mlx5e_priv *priv,
172 void mlx5e_tc_encap_flows_del(struct mlx5e_priv *priv,
176 void mlx5e_encap_put(struct mlx5e_priv *priv, struct mlx5e_encap_entry *e);
[all …]
Den_rep.c67 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_drvinfo()
197 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_strings()
209 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_ethtool_stats()
216 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_sset_count()
229 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_ringparam()
237 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_set_ringparam()
245 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_channels()
253 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_set_channels()
263 struct mlx5e_priv *priv = netdev_priv(netdev); in mlx5e_rep_get_coalesce()
273 struct mlx5e_priv *priv = netdev_priv(netdev); in mlx5e_rep_set_coalesce()
[all …]
Den_ethtool.c40 void mlx5e_ethtool_get_drvinfo(struct mlx5e_priv *priv, in mlx5e_ethtool_get_drvinfo()
57 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_get_drvinfo()
237 int mlx5e_ethtool_get_sset_count(struct mlx5e_priv *priv, int sset) in mlx5e_ethtool_get_sset_count()
253 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_get_sset_count()
258 void mlx5e_ethtool_get_strings(struct mlx5e_priv *priv, u32 stringset, u8 *data) in mlx5e_ethtool_get_strings()
283 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_get_strings()
288 void mlx5e_ethtool_get_ethtool_stats(struct mlx5e_priv *priv, in mlx5e_ethtool_get_ethtool_stats()
304 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_get_ethtool_stats()
309 void mlx5e_ethtool_get_ringparam(struct mlx5e_priv *priv, in mlx5e_ethtool_get_ringparam()
321 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_get_ringparam()
[all …]
Den_rep.h131 struct mlx5e_priv *priv;
226 int mlx5e_rep_bond_update(struct mlx5e_priv *priv, bool cleanup);
232 bool mlx5e_is_uplink_rep(struct mlx5e_priv *priv);
233 int mlx5e_add_sqs_fwd_rules(struct mlx5e_priv *priv);
234 void mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv);
236 void mlx5e_rep_queue_neigh_stats_work(struct mlx5e_priv *priv);
247 static inline bool mlx5e_is_uplink_rep(struct mlx5e_priv *priv) { return false; } in mlx5e_is_uplink_rep()
248 static inline int mlx5e_add_sqs_fwd_rules(struct mlx5e_priv *priv) { return 0; } in mlx5e_add_sqs_fwd_rules()
249 static inline void mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv) {} in mlx5e_remove_sqs_fwd_rules()
259 static inline bool mlx5e_is_vport_rep(struct mlx5e_priv *priv) in mlx5e_is_vport_rep()
Den_stats.h70 struct mlx5e_priv;
73 int (*get_num_stats)(struct mlx5e_priv *priv);
74 int (*fill_strings)(struct mlx5e_priv *priv, u8 *data, int idx);
75 int (*fill_stats)(struct mlx5e_priv *priv, u64 *data, int idx);
76 void (*update_stats)(struct mlx5e_priv *priv);
84 int MLX5E_STATS_GRP_OP(grp, num_stats)(struct mlx5e_priv *priv)
87 void MLX5E_STATS_GRP_OP(grp, update_stats)(struct mlx5e_priv *priv)
90 int MLX5E_STATS_GRP_OP(grp, fill_strings)(struct mlx5e_priv *priv, u8 *data, int idx)
93 int MLX5E_STATS_GRP_OP(grp, fill_stats)(struct mlx5e_priv *priv, u64 *data, int idx)
109 unsigned int mlx5e_stats_total_num(struct mlx5e_priv *priv);
[all …]
Den_dcbnl.c64 static int mlx5e_set_trust_state(struct mlx5e_priv *priv, u8 trust_state);
65 static int mlx5e_set_dscp2prio(struct mlx5e_priv *priv, u8 dscp, u8 prio);
69 static int mlx5e_dcbnl_set_dcbx_mode(struct mlx5e_priv *priv, in mlx5e_dcbnl_set_dcbx_mode()
87 static int mlx5e_dcbnl_switch_to_host_mode(struct mlx5e_priv *priv) in mlx5e_dcbnl_switch_to_host_mode()
109 struct mlx5e_priv *priv = netdev_priv(netdev); in mlx5e_dcbnl_ieee_getets()
251 static int mlx5e_dcbnl_ieee_setets_core(struct mlx5e_priv *priv, struct ieee_ets *ets) in mlx5e_dcbnl_ieee_setets_core()
325 struct mlx5e_priv *priv = netdev_priv(netdev); in mlx5e_dcbnl_ieee_setets()
345 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_dcbnl_ieee_getpfc()
365 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_dcbnl_ieee_setpfc()
411 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_dcbnl_getdcbx()
[all …]
Den_fs.c44 static int mlx5e_add_l2_flow_rule(struct mlx5e_priv *priv,
46 static void mlx5e_del_l2_flow_rule(struct mlx5e_priv *priv,
135 static int mlx5e_vport_context_update_vlans(struct mlx5e_priv *priv) in mlx5e_vport_context_update_vlans()
186 static int __mlx5e_add_vlan_rule(struct mlx5e_priv *priv, in __mlx5e_add_vlan_rule()
259 static int mlx5e_add_vlan_rule(struct mlx5e_priv *priv, in mlx5e_add_vlan_rule()
279 static void mlx5e_del_vlan_rule(struct mlx5e_priv *priv, in mlx5e_del_vlan_rule()
317 static void mlx5e_del_any_vid_rules(struct mlx5e_priv *priv) in mlx5e_del_any_vid_rules()
323 static int mlx5e_add_any_vid_rules(struct mlx5e_priv *priv) in mlx5e_add_any_vid_rules()
355 int mlx5e_add_vlan_trap(struct mlx5e_priv *priv, int trap_id, int tir_num) in mlx5e_add_vlan_trap()
373 void mlx5e_remove_vlan_trap(struct mlx5e_priv *priv) in mlx5e_remove_vlan_trap()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dtls.h94 static inline bool mlx5e_is_tls_on(struct mlx5e_priv *priv) in mlx5e_is_tls_on()
99 void mlx5e_tls_build_netdev(struct mlx5e_priv *priv);
100 int mlx5e_tls_init(struct mlx5e_priv *priv);
101 void mlx5e_tls_cleanup(struct mlx5e_priv *priv);
103 int mlx5e_tls_get_count(struct mlx5e_priv *priv);
104 int mlx5e_tls_get_strings(struct mlx5e_priv *priv, uint8_t *data);
105 int mlx5e_tls_get_stats(struct mlx5e_priv *priv, u64 *data);
115 static inline void mlx5e_tls_build_netdev(struct mlx5e_priv *priv) in mlx5e_tls_build_netdev()
122 static inline bool mlx5e_is_tls_on(struct mlx5e_priv *priv) { return false; } in mlx5e_is_tls_on()
123 static inline int mlx5e_tls_init(struct mlx5e_priv *priv) { return 0; } in mlx5e_tls_init()
[all …]
Dipsec.h48 struct mlx5e_priv;
82 struct mlx5e_priv *en_priv;
120 int mlx5e_ipsec_init(struct mlx5e_priv *priv);
121 void mlx5e_ipsec_cleanup(struct mlx5e_priv *priv);
122 void mlx5e_ipsec_build_netdev(struct mlx5e_priv *priv);
133 static inline int mlx5e_ipsec_init(struct mlx5e_priv *priv) in mlx5e_ipsec_init()
138 static inline void mlx5e_ipsec_cleanup(struct mlx5e_priv *priv) in mlx5e_ipsec_cleanup()
142 static inline void mlx5e_ipsec_build_netdev(struct mlx5e_priv *priv) in mlx5e_ipsec_build_netdev()
Dipsec_fs.h13 void mlx5e_accel_ipsec_fs_cleanup(struct mlx5e_priv *priv);
14 int mlx5e_accel_ipsec_fs_init(struct mlx5e_priv *priv);
15 int mlx5e_accel_ipsec_fs_add_rule(struct mlx5e_priv *priv,
19 void mlx5e_accel_ipsec_fs_del_rule(struct mlx5e_priv *priv,
23 static inline void mlx5e_accel_ipsec_fs_cleanup(struct mlx5e_priv *priv) {} in mlx5e_accel_ipsec_fs_cleanup()
24 static inline int mlx5e_accel_ipsec_fs_init(struct mlx5e_priv *priv) { return 0; } in mlx5e_accel_ipsec_fs_init()
Dfs_tcp.h10 int mlx5e_accel_fs_tcp_create(struct mlx5e_priv *priv);
11 void mlx5e_accel_fs_tcp_destroy(struct mlx5e_priv *priv);
12 struct mlx5_flow_handle *mlx5e_accel_fs_add_sk(struct mlx5e_priv *priv,
17 static inline int mlx5e_accel_fs_tcp_create(struct mlx5e_priv *priv) { return 0; } in mlx5e_accel_fs_tcp_create()
18 static inline void mlx5e_accel_fs_tcp_destroy(struct mlx5e_priv *priv) {} in mlx5e_accel_fs_tcp_destroy()
19 static inline struct mlx5_flow_handle *mlx5e_accel_fs_add_sk(struct mlx5e_priv *priv, in mlx5e_accel_fs_add_sk()
Dktls.h11 void mlx5e_ktls_build_netdev(struct mlx5e_priv *priv);
12 int mlx5e_ktls_init_rx(struct mlx5e_priv *priv);
13 void mlx5e_ktls_cleanup_rx(struct mlx5e_priv *priv);
39 static inline void mlx5e_ktls_build_netdev(struct mlx5e_priv *priv) in mlx5e_ktls_build_netdev()
43 static inline int mlx5e_ktls_init_rx(struct mlx5e_priv *priv) in mlx5e_ktls_init_rx()
48 static inline void mlx5e_ktls_cleanup_rx(struct mlx5e_priv *priv) in mlx5e_ktls_cleanup_rx()
/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
Dethtool.c39 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_get_drvinfo()
48 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_get_strings()
55 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_get_sset_count()
64 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_get_ethtool_stats()
72 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_set_ringparam()
80 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_get_ringparam()
88 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_set_channels()
96 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_get_channels()
106 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_set_coalesce()
116 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_get_coalesce()
[all …]
Dipoib.c82 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_init()
110 void mlx5i_cleanup(struct mlx5e_priv *priv) in mlx5i_cleanup()
115 static void mlx5i_grp_sw_update_stats(struct mlx5e_priv *priv) in mlx5i_grp_sw_update_stats()
144 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_get_stats()
156 int mlx5i_init_underlay_qp(struct mlx5e_priv *priv) in mlx5i_init_underlay_qp()
211 void mlx5i_uninit_underlay_qp(struct mlx5e_priv *priv) in mlx5i_uninit_underlay_qp()
224 int mlx5i_create_underlay_qp(struct mlx5e_priv *priv) in mlx5i_create_underlay_qp()
270 int mlx5i_update_nic_rx(struct mlx5e_priv *priv) in mlx5i_update_nic_rx()
287 static int mlx5i_init_tx(struct mlx5e_priv *priv) in mlx5i_init_tx()
311 static void mlx5i_cleanup_tx(struct mlx5e_priv *priv) in mlx5i_cleanup_tx()
[all …]
Dipoib.h60 char *mlx5e_priv[]; member
66 int mlx5i_create_underlay_qp(struct mlx5e_priv *priv);
70 int mlx5i_init_underlay_qp(struct mlx5e_priv *priv);
71 void mlx5i_uninit_underlay_qp(struct mlx5e_priv *priv);
91 void mlx5i_cleanup(struct mlx5e_priv *priv);
93 int mlx5i_update_nic_rx(struct mlx5e_priv *priv);
99 #define mlx5i_epriv(netdev) ((void *)(((struct mlx5i_priv *)netdev_priv(netdev))->mlx5e_priv))
/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.h19 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,
58 mlx5e_rep_tc_enable(struct mlx5e_priv *priv) {} in mlx5e_rep_tc_enable()
60 mlx5e_rep_tc_disable(struct mlx5e_priv *priv) {} in mlx5e_rep_tc_disable()
63 mlx5e_rep_tc_event_port_affinity(struct mlx5e_priv *priv) { return NOTIFY_DONE; } in mlx5e_rep_tc_event_port_affinity()

1234