| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | eswitch_offloads.c | 76 static struct mlx5_eswitch_rep *mlx5_eswitch_get_rep(struct mlx5_eswitch *esw, in mlx5_eswitch_get_rep() 83 mlx5_eswitch_set_rule_flow_source(struct mlx5_eswitch *esw, in mlx5_eswitch_set_rule_flow_source() 105 mlx5_eswitch_clear_rule_source_port(struct mlx5_eswitch *esw, struct mlx5_flow_spec *spec) in mlx5_eswitch_clear_rule_source_port() 122 mlx5_eswitch_set_rule_source_port(struct mlx5_eswitch *esw, in mlx5_eswitch_set_rule_source_port() 175 esw_setup_decap_indir(struct mlx5_eswitch *esw, in esw_setup_decap_indir() 189 esw_cleanup_decap_indir(struct mlx5_eswitch *esw, in esw_cleanup_decap_indir() 229 struct mlx5_eswitch *esw, in esw_setup_ft_dest() 254 struct mlx5_eswitch *esw, int i) in esw_setup_slow_path_dest() 281 static void esw_put_dest_tables_loop(struct mlx5_eswitch *esw, struct mlx5_flow_attr *attr, in esw_put_dest_tables_loop() 297 esw_is_chain_src_port_rewrite(struct mlx5_eswitch *esw, struct mlx5_esw_flow_attr *esw_attr) in esw_is_chain_src_port_rewrite() [all …]
|
| H A D | eswitch.h | 86 #define esw_chains(esw) \ argument 333 struct mlx5_eswitch *esw; member 611 static inline bool esw_vst_mode_is_steering(struct mlx5_eswitch *esw) in esw_vst_mode_is_steering() 649 static inline bool mlx5_esw_allowed(const struct mlx5_eswitch *esw) in mlx5_esw_allowed() 655 mlx5_esw_is_manager_vport(const struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_is_manager_vport() 660 static inline bool mlx5_esw_is_owner(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_is_owner() 691 static inline bool mlx5_esw_is_fdb_created(struct mlx5_eswitch *esw) in mlx5_esw_is_fdb_created() 713 #define mlx5_esw_for_each_vport(esw, index, vport) \ argument 720 #define mlx5_esw_for_each_vport_marked(esw, index, vport, last, filter) \ argument 723 #define mlx5_esw_for_each_vf_vport(esw, index, vport, last) \ argument [all …]
|
| H A D | eswitch_offloads_termtbl.c | 112 mlx5_eswitch_termtbl_get_create(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_get_create() 163 mlx5_eswitch_termtbl_put(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_put() 197 static bool mlx5_eswitch_offload_is_uplink_port(const struct mlx5_eswitch *esw, in mlx5_eswitch_offload_is_uplink_port() 214 mlx5_eswitch_termtbl_required(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_required() 244 mlx5_eswitch_add_termtbl_rule(struct mlx5_eswitch *esw, in mlx5_eswitch_add_termtbl_rule()
|
| H A D | en_rep.c | 205 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() local 439 static void mlx5e_sqs2vport_stop(struct mlx5_eswitch *esw, in mlx5e_sqs2vport_stop() 467 static int mlx5e_sqs2vport_add_peers_rules(struct mlx5_eswitch *esw, struct mlx5_eswitch_rep *rep, in mlx5e_sqs2vport_add_peers_rules() 503 static int mlx5e_sqs2vport_start(struct mlx5_eswitch *esw, in mlx5e_sqs2vport_start() 573 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_add_sqs_fwd_rules() local 628 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_remove_sqs_fwd_rules() local 638 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_add_meta_tunnel_rule() local 1041 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_create_rep_vport_rx_rule() local 1705 static int mlx5e_vport_rep_event_pair(struct mlx5_eswitch *esw, in mlx5e_vport_rep_event_pair() 1757 static int mlx5e_vport_rep_event(struct mlx5_eswitch *esw, in mlx5e_vport_rep_event() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | legacy.c | 22 static int esw_create_legacy_vepa_table(struct mlx5_eswitch *esw) in esw_create_legacy_vepa_table() 51 static void esw_destroy_legacy_fdb_table(struct mlx5_eswitch *esw) in esw_destroy_legacy_fdb_table() 71 static int esw_create_legacy_fdb_table(struct mlx5_eswitch *esw) in esw_create_legacy_fdb_table() 166 static void esw_destroy_legacy_vepa_table(struct mlx5_eswitch *esw) in esw_destroy_legacy_vepa_table() 176 static int esw_create_legacy_table(struct mlx5_eswitch *esw) in esw_create_legacy_table() 184 static void esw_cleanup_vepa_rules(struct mlx5_eswitch *esw) in esw_cleanup_vepa_rules() 196 static void esw_destroy_legacy_table(struct mlx5_eswitch *esw) in esw_destroy_legacy_table() 207 int esw_legacy_enable(struct mlx5_eswitch *esw) in esw_legacy_enable() 226 void esw_legacy_disable(struct mlx5_eswitch *esw) in esw_legacy_disable() 239 static int _mlx5_eswitch_set_vepa_locked(struct mlx5_eswitch *esw, in _mlx5_eswitch_set_vepa_locked() [all …]
|
| H A D | qos.c | 22 static void esw_qos_lock(struct mlx5_eswitch *esw) in esw_qos_lock() 27 static void esw_qos_unlock(struct mlx5_eswitch *esw) in esw_qos_unlock() 32 static void esw_assert_qos_lock_held(struct mlx5_eswitch *esw) in esw_assert_qos_lock_held() 51 static int esw_qos_domain_init(struct mlx5_eswitch *esw) in esw_qos_domain_init() 58 static void esw_qos_domain_release(struct mlx5_eswitch *esw) in esw_qos_domain_release() 96 struct mlx5_eswitch *esw; member 324 static u32 esw_qos_calculate_min_rate_divider(struct mlx5_eswitch *esw, in esw_qos_calculate_min_rate_divider() 378 static void esw_qos_normalize_min_rate(struct mlx5_eswitch *esw, in esw_qos_normalize_min_rate() 422 struct mlx5_eswitch *esw = node->esw; in esw_qos_set_node_min_rate() local 523 __esw_qos_alloc_node(struct mlx5_eswitch *esw, u32 tsar_ix, enum sched_node_type type, in __esw_qos_alloc_node() [all …]
|
| H A D | indir_table.c | 67 mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_needed() 95 static int mlx5_esw_indir_table_rule_get(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_rule_get() 171 static void mlx5_esw_indir_table_rule_put(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_rule_put() 209 static int mlx5_create_indir_fwd_group(struct mlx5_eswitch *esw, in mlx5_create_indir_fwd_group() 248 mlx5_esw_indir_table_entry_create(struct mlx5_eswitch *esw, struct mlx5_flow_attr *attr, in mlx5_esw_indir_table_entry_create() 311 mlx5_esw_indir_table_entry_lookup(struct mlx5_eswitch *esw, u16 vport) in mlx5_esw_indir_table_entry_lookup() 323 struct mlx5_flow_table *mlx5_esw_indir_table_get(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_get() 356 void mlx5_esw_indir_table_put(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_put()
|
| H A D | indir_table.h | 43 mlx5_esw_indir_table_get(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_get() 51 mlx5_esw_indir_table_put(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_put() 57 mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_needed()
|
| H A D | bridge_mcast.c | 313 struct mlx5_eswitch *esw = bridge->br_offloads->esw; in mlx5_esw_bridge_port_mcast_fts_init() local 334 mlx5_esw_bridge_mcast_filter_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_mcast_filter_fg_create() 368 struct mlx5_eswitch *esw, in mlx5_esw_bridge_mcast_vlan_proto_fg_create() 402 mlx5_esw_bridge_mcast_vlan_fg_create(struct mlx5_eswitch *esw, struct mlx5_flow_table *mcast_ft) in mlx5_esw_bridge_mcast_vlan_fg_create() 411 mlx5_esw_bridge_mcast_qinq_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_mcast_qinq_fg_create() 421 mlx5_esw_bridge_mcast_fwd_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_mcast_fwd_fg_create() 450 struct mlx5_eswitch *esw = port->bridge->br_offloads->esw; in mlx5_esw_bridge_port_mcast_fgs_init() local 510 struct mlx5_eswitch *esw) in mlx5_esw_bridge_mcast_flow_with_esw_create() 773 mlx5_esw_bridge_ingress_igmp_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_igmp_fg_create() 806 mlx5_esw_bridge_ingress_mld_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_mld_fg_create() [all …]
|
| H A D | ipsec.c | 175 struct mlx5_eswitch *esw = dev->priv.eswitch; in esw_ipsec_vf_crypto_aux_caps_set() local 206 static int esw_ipsec_vf_offload_set_bytype(struct mlx5_eswitch *esw, struct mlx5_vport *vport, in esw_ipsec_vf_offload_set_bytype() 357 int mlx5_esw_ipsec_vf_crypto_offload_set(struct mlx5_eswitch *esw, struct mlx5_vport *vport, in mlx5_esw_ipsec_vf_crypto_offload_set() 364 int mlx5_esw_ipsec_vf_packet_offload_set(struct mlx5_eswitch *esw, struct mlx5_vport *vport, in mlx5_esw_ipsec_vf_packet_offload_set()
|
| H A D | ipsec_fs.c | 136 static int mlx5_esw_ipsec_modify_flow_dests(struct mlx5_eswitch *esw, in mlx5_esw_ipsec_modify_flow_dests() 158 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_ipsec_restore_dest_uplink() local
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
| H A D | ingress_ofld.c | 13 esw_acl_ingress_prio_tag_enabled(struct mlx5_eswitch *esw, in esw_acl_ingress_prio_tag_enabled() 20 static int esw_acl_ingress_prio_tag_create(struct mlx5_eswitch *esw, in esw_acl_ingress_prio_tag_create() 65 static int esw_acl_ingress_mod_metadata_create(struct mlx5_eswitch *esw, in esw_acl_ingress_mod_metadata_create() 113 static void esw_acl_ingress_mod_metadata_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_mod_metadata_destroy() 124 static int esw_acl_ingress_src_port_drop_create(struct mlx5_eswitch *esw, in esw_acl_ingress_src_port_drop_create() 157 static void esw_acl_ingress_src_port_drop_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_src_port_drop_destroy() 167 static int esw_acl_ingress_ofld_rules_create(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_rules_create() 199 static void esw_acl_ingress_ofld_rules_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_rules_destroy() 207 static int esw_acl_ingress_ofld_groups_create(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_groups_create() 319 acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in acl_ingress_ofld_setup() [all …]
|
| H A D | egress_ofld.c | 41 static int esw_acl_egress_ofld_fwd2vport_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_fwd2vport_create() 70 static int esw_acl_egress_ofld_rules_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_rules_create() 116 static int esw_acl_egress_ofld_groups_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_groups_create() 181 static bool esw_acl_egress_needed(struct mlx5_eswitch *esw, u16 vport_num) in esw_acl_egress_needed() 186 int esw_acl_egress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_acl_egress_ofld_setup() 239 int mlx5_esw_acl_egress_vport_bond(struct mlx5_eswitch *esw, u16 active_vport_num, in mlx5_esw_acl_egress_vport_bond() 265 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_egress_vport_unbond()
|
| H A D | ofld.h | 18 static inline bool mlx5_esw_acl_egress_fwd2vport_supported(struct mlx5_eswitch *esw) in mlx5_esw_acl_egress_fwd2vport_supported() 35 mlx5_esw_acl_ingress_vport_drop_rule_destroy(struct mlx5_eswitch *esw, in mlx5_esw_acl_ingress_vport_drop_rule_destroy() 39 static int mlx5_esw_acl_ingress_vport_drop_rule_create(struct mlx5_eswitch *esw, in mlx5_esw_acl_ingress_vport_drop_rule_create()
|
| H A D | helper.c | 9 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size) in esw_acl_table_create() 49 int esw_egress_acl_vlan_create(struct mlx5_eswitch *esw, in esw_egress_acl_vlan_create() 95 int esw_acl_egress_vlan_grp_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_acl_egress_vlan_grp_create()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
| H A D | sample.c | 24 struct mlx5_eswitch *esw; member 63 struct mlx5_eswitch *esw = tc_psample->esw; in sampler_termtbl_create() local 265 struct mlx5_eswitch *esw = tc_psample->esw; in sample_restore_get() local 342 add_post_rule(struct mlx5_eswitch *esw, struct mlx5e_sample_flow *sample_flow, in add_post_rule() 407 del_post_rule(struct mlx5_eswitch *esw, struct mlx5e_sample_flow *sample_flow, in del_post_rule() 480 struct mlx5_eswitch *esw; in mlx5e_tc_sample_offload() local 594 struct mlx5_eswitch *esw; in mlx5e_tc_sample_unoffload() local 617 mlx5e_tc_sample_init(struct mlx5_eswitch *esw, struct mlx5e_post_act *post_act) in mlx5e_tc_sample_init()
|
| H A D | post_meter.c | 120 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_post_meter_add_rule() local 200 mlx5e_post_meter_rate_rules_destroy(struct mlx5_eswitch *esw, in mlx5e_post_meter_rate_rules_destroy() 435 mlx5e_post_meter_rate_destroy(struct mlx5_eswitch *esw, struct mlx5e_post_meter_priv *post_meter) in mlx5e_post_meter_rate_destroy() 451 mlx5e_post_meter_cleanup(struct mlx5_eswitch *esw, struct mlx5e_post_meter_priv *post_meter) in mlx5e_post_meter_cleanup()
|
| H A D | int_port.h | 56 static inline bool mlx5e_tc_int_port_supported(const struct mlx5_eswitch *esw) in mlx5e_tc_int_port_supported()
|
| /linux/include/linux/mlx5/ |
| H A D | eswitch.h | 60 struct mlx5_eswitch *esw; member 171 mlx5_eswitch_reg_c1_loopback_enabled(const struct mlx5_eswitch *esw) in mlx5_eswitch_reg_c1_loopback_enabled() 177 mlx5_eswitch_vport_match_metadata_enabled(const struct mlx5_eswitch *esw) in mlx5_eswitch_vport_match_metadata_enabled() 183 mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport_metadata_for_match() 199 static inline struct mlx5_core_dev *mlx5_eswitch_get_core_dev(struct mlx5_eswitch *esw) in mlx5_eswitch_get_core_dev()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
| H A D | tc.c | 95 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_update_flows() local 205 struct mlx5_eswitch *esw; in mlx5e_rep_setup_ft_cb() local 387 struct mlx5_eswitch *esw; in mlx5e_rep_indr_setup_ft_cb() local 449 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_check_indr_block_supported() local 553 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_replace_act() local 591 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_destroy_act() local 613 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_stats_act() local 709 struct mlx5_eswitch *esw; in mlx5e_rep_tc_receive() local
|
| H A D | bond.c | 26 struct mlx5_eswitch *esw; member 80 int mlx5e_rep_bond_enslave(struct mlx5_eswitch *esw, struct net_device *netdev, in mlx5e_rep_bond_enslave() 144 void mlx5e_rep_bond_unslave(struct mlx5_eswitch *esw, in mlx5e_rep_bond_unslave()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| H A D | mpesw.c | 14 struct mlx5_eswitch *esw; in mlx5_mpesw_metadata_cleanup() local 35 struct mlx5_eswitch *esw; in mlx5_mpesw_metadata_set() local
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
| H A D | mirred.c | 28 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in verify_uplink_forwarding() local 218 struct mlx5_eswitch *esw; in parse_mirred() local
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | ib_rep.h | 34 struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, in mlx5_ib_get_rep_netdev()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
| H A D | devlink.c | 56 mlx5_sf_alloc(struct mlx5_sf_table *table, struct mlx5_eswitch *esw, in mlx5_sf_alloc() 243 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_sf_add() local 359 struct mlx5_eswitch *esw = table->dev->priv.eswitch; in mlx5_sf_del() local
|