Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Den.h677 struct mlx5e_priv *priv;
768 struct mlx5e_priv { struct
847 void (*cleanup)(struct mlx5e_priv *priv); argument
848 int (*init_rx)(struct mlx5e_priv *priv);
849 void (*cleanup_rx)(struct mlx5e_priv *priv);
850 int (*init_tx)(struct mlx5e_priv *priv);
851 void (*cleanup_tx)(struct mlx5e_priv *priv);
852 void (*enable)(struct mlx5e_priv *priv);
853 void (*disable)(struct mlx5e_priv *priv);
854 int (*update_rx)(struct mlx5e_priv *priv);
[all …]
H A Den_tc.h54 int mlx5e_tc_num_filters(struct mlx5e_priv *priv, unsigned long flags);
135 int mlx5e_configure_flower(struct net_device *dev, struct mlx5e_priv *priv,
137 int mlx5e_delete_flower(struct net_device *dev, struct mlx5e_priv *priv,
140 int mlx5e_stats_flower(struct net_device *dev, struct mlx5e_priv *priv,
143 int mlx5e_tc_configure_matchall(struct mlx5e_priv *priv,
145 int mlx5e_tc_delete_matchall(struct mlx5e_priv *priv,
147 void mlx5e_tc_stats_matchall(struct mlx5e_priv *priv,
151 void mlx5e_tc_encap_flows_add(struct mlx5e_priv *priv,
154 void mlx5e_tc_encap_flows_del(struct mlx5e_priv *priv,
158 void mlx5e_encap_put(struct mlx5e_priv *priv, struct mlx5e_encap_entry *e);
[all …]
H A Den_rep.c62 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_drvinfo()
77 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_uplink_rep_get_drvinfo()
199 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_strings()
211 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_ethtool_stats()
218 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_sset_count()
231 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_ringparam()
239 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_set_ringparam()
247 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_rep_get_channels()
255 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()
[all …]
H A Den_rep.h124 struct mlx5e_priv *priv;
215 int mlx5e_rep_bond_update(struct mlx5e_priv *priv, bool cleanup);
217 bool mlx5e_is_uplink_rep(struct mlx5e_priv *priv);
218 int mlx5e_add_sqs_fwd_rules(struct mlx5e_priv *priv);
219 void mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv);
221 void mlx5e_rep_queue_neigh_stats_work(struct mlx5e_priv *priv);
232 static inline bool mlx5e_is_uplink_rep(struct mlx5e_priv *priv) { return false; } in mlx5e_is_uplink_rep()
233 static inline int mlx5e_add_sqs_fwd_rules(struct mlx5e_priv *priv) { return 0; } in mlx5e_add_sqs_fwd_rules()
234 static inline void mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv) {} in mlx5e_remove_sqs_fwd_rules()
237 static inline bool mlx5e_is_vport_rep(struct mlx5e_priv *priv) in mlx5e_is_vport_rep()
H A Den_ethtool.c38 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 …]
H A 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()
249 static int mlx5e_dcbnl_ieee_setets_core(struct mlx5e_priv *priv, struct ieee_ets *ets) in mlx5e_dcbnl_ieee_setets_core()
323 struct mlx5e_priv *priv = netdev_priv(netdev); in mlx5e_dcbnl_ieee_setets()
343 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_dcbnl_ieee_getpfc()
363 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_dcbnl_ieee_setpfc()
409 struct mlx5e_priv *priv = netdev_priv(dev); in mlx5e_dcbnl_getdcbx()
[all …]
H A Den_stats.h63 struct mlx5e_priv;
66 int (*get_num_stats)(struct mlx5e_priv *priv);
67 int (*fill_strings)(struct mlx5e_priv *priv, u8 *data, int idx);
68 int (*fill_stats)(struct mlx5e_priv *priv, u64 *data, int idx);
69 void (*update_stats)(struct mlx5e_priv *priv);
77 int MLX5E_STATS_GRP_OP(grp, num_stats)(struct mlx5e_priv *priv)
80 void MLX5E_STATS_GRP_OP(grp, update_stats)(struct mlx5e_priv *priv)
83 int MLX5E_STATS_GRP_OP(grp, fill_strings)(struct mlx5e_priv *priv, u8 *data, int idx)
86 int MLX5E_STATS_GRP_OP(grp, fill_stats)(struct mlx5e_priv *priv, u64 *data, int idx)
102 unsigned int mlx5e_stats_total_num(struct mlx5e_priv *priv);
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dtls.h90 static inline bool mlx5e_is_tls_on(struct mlx5e_priv *priv) in mlx5e_is_tls_on()
95 void mlx5e_tls_build_netdev(struct mlx5e_priv *priv);
96 int mlx5e_tls_init(struct mlx5e_priv *priv);
97 void mlx5e_tls_cleanup(struct mlx5e_priv *priv);
99 int mlx5e_tls_get_count(struct mlx5e_priv *priv);
100 int mlx5e_tls_get_strings(struct mlx5e_priv *priv, uint8_t *data);
101 int mlx5e_tls_get_stats(struct mlx5e_priv *priv, u64 *data);
105 static inline void mlx5e_tls_build_netdev(struct mlx5e_priv *priv) in mlx5e_tls_build_netdev()
111 static inline bool mlx5e_is_tls_on(struct mlx5e_priv *priv) { return false; } in mlx5e_is_tls_on()
112 static inline int mlx5e_tls_init(struct mlx5e_priv *priv) { return 0; } in mlx5e_tls_init()
[all …]
H A 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()
H A 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()
H A 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);
17 static inline void mlx5e_ktls_build_netdev(struct mlx5e_priv *priv) in mlx5e_ktls_build_netdev()
21 static inline int mlx5e_ktls_init_rx(struct mlx5e_priv *priv) in mlx5e_ktls_init_rx()
26 static inline void mlx5e_ktls_cleanup_rx(struct mlx5e_priv *priv) in mlx5e_ktls_cleanup_rx()
H A 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()
H A Dipsec_fs.c51 static int rx_err_add_rule(struct mlx5e_priv *priv, in rx_err_add_rule()
108 static void rx_err_del_rule(struct mlx5e_priv *priv, in rx_err_del_rule()
122 static void rx_err_destroy_ft(struct mlx5e_priv *priv, struct mlx5e_ipsec_rx_err *rx_err) in rx_err_destroy_ft()
132 static int rx_err_create_ft(struct mlx5e_priv *priv, in rx_err_create_ft()
182 static int rx_fs_create(struct mlx5e_priv *priv, in rx_fs_create()
242 static int rx_destroy(struct mlx5e_priv *priv, enum accel_fs_esp_type type) in rx_destroy()
259 static int rx_create(struct mlx5e_priv *priv, enum accel_fs_esp_type type) in rx_create()
281 static int rx_ft_get(struct mlx5e_priv *priv, enum accel_fs_esp_type type) in rx_ft_get()
311 static void rx_ft_put(struct mlx5e_priv *priv, enum accel_fs_esp_type type) in rx_ft_put()
333 static int tx_create(struct mlx5e_priv *priv) in tx_create()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dfs.h178 void mlx5e_ethtool_init_steering(struct mlx5e_priv *priv);
179 void mlx5e_ethtool_cleanup_steering(struct mlx5e_priv *priv);
184 static inline void mlx5e_ethtool_init_steering(struct mlx5e_priv *priv) { } in mlx5e_ethtool_init_steering()
185 static inline void mlx5e_ethtool_cleanup_steering(struct mlx5e_priv *priv) { } in mlx5e_ethtool_cleanup_steering()
220 int mlx5e_arfs_create_tables(struct mlx5e_priv *priv);
221 void mlx5e_arfs_destroy_tables(struct mlx5e_priv *priv);
222 int mlx5e_arfs_enable(struct mlx5e_priv *priv);
223 int mlx5e_arfs_disable(struct mlx5e_priv *priv);
227 static inline int mlx5e_arfs_create_tables(struct mlx5e_priv *priv) { return 0; } in mlx5e_arfs_create_tables()
228 static inline void mlx5e_arfs_destroy_tables(struct mlx5e_priv *priv) {} in mlx5e_arfs_destroy_tables()
[all …]
H A Dhealth.h19 void mlx5e_reporter_tx_create(struct mlx5e_priv *priv);
20 void mlx5e_reporter_tx_destroy(struct mlx5e_priv *priv);
30 void mlx5e_reporter_rx_create(struct mlx5e_priv *priv);
31 void mlx5e_reporter_rx_destroy(struct mlx5e_priv *priv);
41 int (*dump)(struct mlx5e_priv *priv, struct devlink_fmsg *fmsg, void *ctx);
47 int mlx5e_health_recover_channels(struct mlx5e_priv *priv);
48 int mlx5e_health_report(struct mlx5e_priv *priv,
51 void mlx5e_health_create_reporters(struct mlx5e_priv *priv);
52 void mlx5e_health_destroy_reporters(struct mlx5e_priv *priv);
53 void mlx5e_health_channels_update(struct mlx5e_priv *priv);
[all …]
H A Dtc_tun.h26 bool (*can_offload)(struct mlx5e_priv *priv);
29 struct mlx5e_priv *priv,
35 int (*parse_udp_ports)(struct mlx5e_priv *priv,
40 int (*parse_tunnel)(struct mlx5e_priv *priv,
55 struct mlx5e_priv *priv,
59 int mlx5e_tc_tun_create_header_ipv4(struct mlx5e_priv *priv,
64 int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv,
69 mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv, in mlx5e_tc_tun_create_header_ipv6()
74 bool mlx5e_tc_tun_device_to_offload(struct mlx5e_priv *priv,
78 struct mlx5e_priv *priv,
[all …]
H A 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()
H A 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()
H A Dhv_vhca_stats.c17 mlx5e_hv_vhca_fill_ring_stats(struct mlx5e_priv *priv, int ch, in mlx5e_hv_vhca_fill_ring_stats()
33 static void mlx5e_hv_vhca_fill_stats(struct mlx5e_priv *priv, void *data, in mlx5e_hv_vhca_fill_stats()
51 static int mlx5e_hv_vhca_stats_buf_size(struct mlx5e_priv *priv) in mlx5e_hv_vhca_stats_buf_size()
62 struct mlx5e_priv *priv; in mlx5e_hv_vhca_stats_work()
68 priv = container_of(sagent, struct mlx5e_priv, stats_agent); in mlx5e_hv_vhca_stats_work()
97 struct mlx5e_priv *priv; in mlx5e_hv_vhca_stats_control()
118 struct mlx5e_priv *priv = mlx5_hv_vhca_agent_priv(agent); in mlx5e_hv_vhca_stats_cleanup()
123 int mlx5e_hv_vhca_stats_create(struct mlx5e_priv *priv) in mlx5e_hv_vhca_stats_create()
154 void mlx5e_hv_vhca_stats_destroy(struct mlx5e_priv *priv) in mlx5e_hv_vhca_stats_destroy()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A 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,
31 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A 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()
104 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_set_coalesce()
112 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_get_coalesce()
[all …]
H A Dipoib.c80 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_init()
113 void mlx5i_cleanup(struct mlx5e_priv *priv) in mlx5i_cleanup()
118 static void mlx5i_grp_sw_update_stats(struct mlx5e_priv *priv) in mlx5i_grp_sw_update_stats()
147 struct mlx5e_priv *priv = mlx5i_epriv(dev); in mlx5i_get_stats()
159 int mlx5i_init_underlay_qp(struct mlx5e_priv *priv) in mlx5i_init_underlay_qp()
214 void mlx5i_uninit_underlay_qp(struct mlx5e_priv *priv) in mlx5i_uninit_underlay_qp()
227 int mlx5i_create_underlay_qp(struct mlx5e_priv *priv) in mlx5i_create_underlay_qp()
272 int mlx5i_update_nic_rx(struct mlx5e_priv *priv) in mlx5i_update_nic_rx()
289 static int mlx5i_init_tx(struct mlx5e_priv *priv) in mlx5i_init_tx()
313 static void mlx5i_cleanup_tx(struct mlx5e_priv *priv) in mlx5i_cleanup_tx()
[all …]
H A 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);
94 void mlx5i_cleanup(struct mlx5e_priv *priv);
96 int mlx5i_update_nic_rx(struct mlx5e_priv *priv);
102 #define mlx5i_epriv(netdev) ((void *)(((struct mlx5i_priv *)netdev_priv(netdev))->mlx5e_priv))
H A Dipoib_vlan.c107 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()
192 struct mlx5e_priv *epriv = mlx5i_epriv(netdev); in mlx5i_pkey_open()
244 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_pkey_close()
268 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_pkey_change_mtu()
283 struct mlx5e_priv *priv = mlx5i_epriv(netdev); in mlx5i_pkey_init()
303 static void mlx5i_pkey_cleanup(struct mlx5e_priv *priv) in mlx5i_pkey_cleanup()
308 static int mlx5i_pkey_init_tx(struct mlx5e_priv *priv) in mlx5i_pkey_init_tx()
319 static void mlx5i_pkey_cleanup_tx(struct mlx5e_priv *priv) in mlx5i_pkey_cleanup_tx()
326 static int mlx5i_pkey_init_rx(struct mlx5e_priv *priv) in mlx5i_pkey_init_rx()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
H A Dsetup.h14 int mlx5e_open_xsk(struct mlx5e_priv *priv, struct mlx5e_params *params,
20 int mlx5e_xsk_redirect_rqt_to_channel(struct mlx5e_priv *priv, struct mlx5e_channel *c);
21 int mlx5e_xsk_redirect_rqt_to_drop(struct mlx5e_priv *priv, u16 ix);
22 int mlx5e_xsk_redirect_rqts_to_channels(struct mlx5e_priv *priv, struct mlx5e_channels *chs);
23 void mlx5e_xsk_redirect_rqts_to_drop(struct mlx5e_priv *priv, struct mlx5e_channels *chs);

123