| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | eswitch_offloads.c | 79 static struct mlx5_eswitch_rep *mlx5_eswitch_get_rep(struct mlx5_eswitch *esw, in mlx5_eswitch_get_rep() 86 mlx5_eswitch_set_rule_flow_source(struct mlx5_eswitch *esw, in mlx5_eswitch_set_rule_flow_source() 108 mlx5_eswitch_clear_rule_source_port(struct mlx5_eswitch *esw, struct mlx5_flow_spec *spec) in mlx5_eswitch_clear_rule_source_port() 125 mlx5_eswitch_set_rule_source_port(struct mlx5_eswitch *esw, in mlx5_eswitch_set_rule_source_port() 178 esw_setup_decap_indir(struct mlx5_eswitch *esw, in esw_setup_decap_indir() 192 esw_cleanup_decap_indir(struct mlx5_eswitch *esw, in esw_cleanup_decap_indir() 232 struct mlx5_eswitch *esw, in esw_setup_ft_dest() 257 struct mlx5_eswitch *esw, int i) in esw_setup_slow_path_dest() 284 static void esw_put_dest_tables_loop(struct mlx5_eswitch *esw, struct mlx5_flow_attr *attr, in esw_put_dest_tables_loop() 300 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.c | 107 mlx5_eswitch_get_vport(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport() argument 207 __esw_fdb_set_vport_rule(struct mlx5_eswitch *esw, u16 vport, bool rx_rule, in __esw_fdb_set_vport_rule() argument 270 esw_fdb_set_vport_rule(struct mlx5_eswitch * esw,u8 mac[ETH_ALEN],u16 vport) esw_fdb_set_vport_rule() argument 279 esw_fdb_set_vport_allmulti_rule(struct mlx5_eswitch * esw,u16 vport) esw_fdb_set_vport_allmulti_rule() argument 292 esw_fdb_set_vport_promisc_rule(struct mlx5_eswitch * esw,u16 vport) esw_fdb_set_vport_promisc_rule() argument 306 esw_add_uc_addr(struct mlx5_eswitch * esw,struct vport_addr * vaddr) esw_add_uc_addr() argument 339 esw_del_uc_addr(struct mlx5_eswitch * esw,struct vport_addr * vaddr) esw_del_uc_addr() argument 366 update_allmulti_vports(struct mlx5_eswitch * esw,struct vport_addr * vaddr,struct esw_mc_addr * esw_mc) update_allmulti_vports() argument 415 esw_add_mc_addr(struct mlx5_eswitch * esw,struct vport_addr * vaddr) esw_add_mc_addr() argument 455 esw_del_mc_addr(struct mlx5_eswitch * esw,struct vport_addr * vaddr) esw_del_mc_addr() argument 498 esw_apply_vport_addr_list(struct mlx5_eswitch * esw,struct mlx5_vport * vport,int list_type) esw_apply_vport_addr_list() argument 532 esw_update_vport_addr_list(struct mlx5_eswitch * esw,struct mlx5_vport * vport,int list_type) esw_update_vport_addr_list() argument 612 esw_update_vport_mc_promisc(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_update_vport_mc_promisc() argument 647 esw_apply_vport_rx_mode(struct mlx5_eswitch * esw,struct mlx5_vport * vport,bool promisc,bool mc_promisc) esw_apply_vport_rx_mode() argument 690 esw_update_vport_rx_mode(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_update_vport_rx_mode() argument 721 struct mlx5_eswitch *esw = dev->priv.eswitch; esw_vport_change_handle_locked() local 758 struct mlx5_eswitch *esw = vport->dev->priv.eswitch; esw_vport_change_handler() local 777 esw_vport_setup_acl(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_setup_acl() argument 786 esw_vport_cleanup_acl(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_cleanup_acl() argument 795 mlx5_esw_vport_caps_get(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_caps_get() argument 836 mlx5_esw_vport_vhca_id(struct mlx5_eswitch * esw,u16 vportn,u16 * vhca_id) mlx5_esw_vport_vhca_id() argument 849 esw_vport_to_func_type(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_to_func_type() argument 866 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_vhca_id_to_func_type() local 882 esw_vport_setup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_setup() argument 924 esw_vport_cleanup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_cleanup() argument 938 mlx5_esw_vport_set_max_tx_speed(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_set_max_tx_speed() argument 956 mlx5_esw_vport_enable(struct mlx5_eswitch * esw,struct mlx5_vport * vport,enum mlx5_eswitch_vport_event enabled_events) mlx5_esw_vport_enable() argument 1016 mlx5_esw_vport_disable(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_disable() argument 1060 struct mlx5_eswitch *esw = mlx5_nb_cof(nb, struct mlx5_eswitch, nb); eswitch_vport_event() local 1233 mlx5_esw_host_functions_enabled_query(struct mlx5_eswitch * esw) mlx5_esw_host_functions_enabled_query() argument 1252 mlx5_eswitch_event_handler_register(struct mlx5_eswitch * esw) mlx5_eswitch_event_handler_register() argument 1261 mlx5_eswitch_invalidate_wq(struct mlx5_eswitch * esw) mlx5_eswitch_invalidate_wq() argument 1267 mlx5_eswitch_event_handler_unregister(struct mlx5_eswitch * esw) mlx5_eswitch_event_handler_unregister() argument 1274 mlx5_eswitch_clear_vf_vports_info(struct mlx5_eswitch * esw) mlx5_eswitch_clear_vf_vports_info() argument 1286 mlx5_eswitch_clear_ec_vf_vports_info(struct mlx5_eswitch * esw) mlx5_eswitch_clear_ec_vf_vports_info() argument 1298 mlx5_eswitch_load_vport(struct mlx5_eswitch * esw,struct mlx5_vport * vport,enum mlx5_eswitch_vport_event enabled_events) mlx5_eswitch_load_vport() argument 1318 mlx5_eswitch_unload_vport(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_eswitch_unload_vport() argument 1324 mlx5_eswitch_load_pf_vf_vport(struct mlx5_eswitch * esw,u16 vport_num,enum mlx5_eswitch_vport_event enabled_events) mlx5_eswitch_load_pf_vf_vport() argument 1348 mlx5_eswitch_unload_pf_vf_vport(struct mlx5_eswitch * esw,u16 vport_num) mlx5_eswitch_unload_pf_vf_vport() argument 1360 mlx5_eswitch_load_sf_vport(struct mlx5_eswitch * esw,u16 vport_num,enum mlx5_eswitch_vport_event enabled_events,struct mlx5_devlink_port * dl_port,u32 controller,u32 sfnum) mlx5_eswitch_load_sf_vport() argument 1386 mlx5_eswitch_unload_sf_vport(struct mlx5_eswitch * esw,u16 vport_num) mlx5_eswitch_unload_sf_vport() argument 1398 mlx5_eswitch_unload_vf_vports(struct mlx5_eswitch * esw,u16 num_vfs) mlx5_eswitch_unload_vf_vports() argument 1411 mlx5_eswitch_unload_ec_vf_vports(struct mlx5_eswitch * esw,u16 num_ec_vfs) mlx5_eswitch_unload_ec_vf_vports() argument 1424 mlx5_eswitch_unload_adj_vf_vports(struct mlx5_eswitch * esw) mlx5_eswitch_unload_adj_vf_vports() argument 1437 mlx5_eswitch_load_adj_vf_vports(struct mlx5_eswitch * esw,enum mlx5_eswitch_vport_event enabled_events) mlx5_eswitch_load_adj_vf_vports() argument 1460 mlx5_eswitch_load_vf_vports(struct mlx5_eswitch * esw,u16 num_vfs,enum mlx5_eswitch_vport_event enabled_events) mlx5_eswitch_load_vf_vports() argument 1480 mlx5_eswitch_load_ec_vf_vports(struct mlx5_eswitch * esw,u16 num_ec_vfs,enum mlx5_eswitch_vport_event enabled_events) mlx5_eswitch_load_ec_vf_vports() argument 1502 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_pf_enable_hca() local 1528 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_pf_disable_hca() local 1562 mlx5_eswitch_enable_pf_vf_vports(struct mlx5_eswitch * esw,enum mlx5_eswitch_vport_event enabled_events) mlx5_eswitch_enable_pf_vf_vports() argument 1661 mlx5_eswitch_disable_pf_vf_vports(struct mlx5_eswitch * esw) mlx5_eswitch_disable_pf_vf_vports() argument 1693 mlx5_eswitch_get_devlink_param(struct mlx5_eswitch * esw) mlx5_eswitch_get_devlink_param() argument 1713 mlx5_eswitch_update_num_of_vfs(struct mlx5_eswitch * esw,int num_vfs) mlx5_eswitch_update_num_of_vfs() argument 1738 mlx5_esw_mode_change_notify(struct mlx5_eswitch * esw,u16 mode) mlx5_esw_mode_change_notify() argument 1807 mlx5_esw_acls_ns_init(struct mlx5_eswitch * esw) mlx5_esw_acls_ns_init() argument 1839 mlx5_esw_acls_ns_cleanup(struct mlx5_eswitch * esw) mlx5_esw_acls_ns_cleanup() argument 1866 mlx5_eswitch_enable_locked(struct mlx5_eswitch * esw,int num_vfs) mlx5_eswitch_enable_locked() argument 1923 mlx5_eswitch_enable(struct mlx5_eswitch * esw,int num_vfs) mlx5_eswitch_enable() argument 1972 mlx5_eswitch_disable_sriov(struct mlx5_eswitch * esw,bool clear_vf) mlx5_eswitch_disable_sriov() argument 2022 mlx5_eswitch_disable_locked(struct mlx5_eswitch * esw) mlx5_eswitch_disable_locked() argument 2052 mlx5_eswitch_disable(struct mlx5_eswitch * esw) mlx5_eswitch_disable() argument 2111 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_sf_max_spf_functions() local 2129 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_get_num_spfs() local 2140 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_spf_get_host_number() local 2154 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_get_hpf_host_number() local 2164 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_get_hpf_pf_num() local 2175 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_sf_controller_to_pfnum() local 2192 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_esw_has_spf_sfs() local 2200 mlx5_esw_hpf_info_init(struct mlx5_eswitch * esw) mlx5_esw_hpf_info_init() argument 2220 mlx5_esw_vport_alloc(struct mlx5_eswitch * esw,int index,u16 vport_num) mlx5_esw_vport_alloc() argument 2247 mlx5_esw_vport_free(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_free() argument 2254 mlx5_esw_spfs_cleanup(struct mlx5_eswitch * esw) mlx5_esw_spfs_cleanup() argument 2268 mlx5_esw_spfs_init(struct mlx5_eswitch * esw) mlx5_esw_spfs_init() argument 2351 mlx5_esw_vports_cleanup(struct mlx5_eswitch * esw) mlx5_esw_vports_cleanup() argument 2363 mlx5_esw_vports_init(struct mlx5_eswitch * esw) mlx5_esw_vports_init() argument 2513 struct mlx5_eswitch *esw; mlx5_eswitch_init() local 2598 mlx5_eswitch_cleanup(struct mlx5_eswitch * esw) mlx5_eswitch_cleanup() argument 2627 mlx5_esw_set_vport_mac_locked(struct mlx5_eswitch * esw,struct mlx5_vport * evport,const u8 * mac) mlx5_esw_set_vport_mac_locked() argument 2665 mlx5_eswitch_set_vport_mac(struct mlx5_eswitch * esw,u16 vport,const u8 * mac) mlx5_eswitch_set_vport_mac() argument 2680 mlx5_esw_check_port_type(struct mlx5_eswitch * esw,u16 vport_num,xa_mark_t mark) mlx5_esw_check_port_type() argument 2685 mlx5_eswitch_is_vf_vport(struct mlx5_eswitch * esw,u16 vport_num) mlx5_eswitch_is_vf_vport() argument 2690 mlx5_esw_spf_vport_to_idx(struct mlx5_eswitch * esw,u16 vport_num) mlx5_esw_spf_vport_to_idx() argument 2703 mlx5_esw_is_spf_vport(struct mlx5_eswitch * esw,u16 vport_num) mlx5_esw_is_spf_vport() argument 2708 mlx5_eswitch_is_pf_vf_vport(struct mlx5_eswitch * esw,u16 vport_num) mlx5_eswitch_is_pf_vf_vport() argument 2715 mlx5_esw_is_sf_vport(struct mlx5_eswitch * esw,u16 vport_num) mlx5_esw_is_sf_vport() argument 2720 mlx5_eswitch_set_vport_state(struct mlx5_eswitch * esw,u16 vport,int link_state) mlx5_eswitch_set_vport_state() argument 2758 mlx5_eswitch_get_vport_config(struct mlx5_eswitch * esw,u16 vport,struct ifla_vf_info * ivi) mlx5_eswitch_get_vport_config() argument 2790 __mlx5_eswitch_set_vport_vlan(struct mlx5_eswitch * esw,u16 vport,u16 vlan,u8 qos,u8 set_flags) __mlx5_eswitch_set_vport_vlan() argument 2820 mlx5_eswitch_get_vport_stats(struct mlx5_eswitch * esw,u16 vport_num,struct ifla_vf_stats * vf_stats) mlx5_eswitch_get_vport_stats() argument 2900 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_eswitch_mode() local 2909 struct mlx5_eswitch *esw; mlx5_eswitch_get_encap_mode() local 2946 struct mlx5_eswitch *esw = mdev->priv.eswitch; mlx5_esw_hold() local 2969 struct mlx5_eswitch *esw = mdev->priv.eswitch; mlx5_esw_release() local 2981 struct mlx5_eswitch *esw = mdev->priv.eswitch; mlx5_esw_get() local 2993 struct mlx5_eswitch *esw = mdev->priv.eswitch; mlx5_esw_put() local 3010 mlx5_esw_try_lock(struct mlx5_eswitch * esw) mlx5_esw_try_lock() argument 3024 mlx5_esw_lock(struct mlx5_eswitch * esw) mlx5_esw_lock() argument 3040 mlx5_esw_unlock(struct mlx5_eswitch * esw) mlx5_esw_unlock() argument 3054 struct mlx5_eswitch *esw; mlx5_eswitch_get_total_vports() local 3067 mlx5_eswitch_get_core_dev(struct mlx5_eswitch * esw) mlx5_eswitch_get_core_dev() argument 3075 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_eswitch_block_ipsec() local 3093 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_eswitch_unblock_ipsec() local [all...] |
| H A D | eswitch.h | 96 #define esw_chains(esw) \ argument 350 struct mlx5_eswitch *esw; global() member 653 esw_vst_mode_is_steering(struct mlx5_eswitch * esw) esw_vst_mode_is_steering() argument 704 mlx5_esw_allowed(const struct mlx5_eswitch * esw) mlx5_esw_allowed() argument 710 mlx5_esw_is_manager_vport(const struct mlx5_eswitch * esw,u16 vport_num) mlx5_esw_is_manager_vport() argument 715 mlx5_esw_is_owner(struct mlx5_eswitch * esw,u16 vport_num,u16 esw_owner_vhca_id) mlx5_esw_is_owner() argument 746 mlx5_esw_is_fdb_created(struct mlx5_eswitch * esw) mlx5_esw_is_fdb_created() argument 768 mlx5_esw_for_each_vport(esw,index,vport) global() argument 775 mlx5_esw_for_each_vport_marked(esw,index,vport,last,filter) global() argument 778 mlx5_esw_for_each_vf_vport(esw,index,vport,last) global() argument 781 mlx5_esw_for_each_host_func_vport(esw,index,vport,last) global() argument 789 mlx5_esw_for_each_ec_vf_vport(esw,index,vport,last) global() argument 800 mlx5_esw_for_each_spf_vport(esw,index,vport) global() argument 807 mlx5_esw_for_each_rep(esw,i,rep) global() argument 975 mlx5_eswitch_num_vfs(struct mlx5_eswitch * esw) mlx5_eswitch_num_vfs() argument 984 mlx5_eswitch_get_slow_fdb(struct mlx5_eswitch * esw) mlx5_eswitch_get_slow_fdb() argument 1017 mlx5_eswitch_cleanup(struct mlx5_eswitch * esw) mlx5_eswitch_cleanup() argument 1018 mlx5_eswitch_enable(struct mlx5_eswitch * esw,int num_vfs) mlx5_eswitch_enable() argument 1019 mlx5_eswitch_disable_sriov(struct mlx5_eswitch * esw,bool clear_vf) mlx5_eswitch_disable_sriov() argument 1020 mlx5_eswitch_disable(struct mlx5_eswitch * esw) mlx5_eswitch_disable() argument 1022 mlx5_esw_offloads_devcom_init(struct mlx5_eswitch * esw,const struct mlx5_devcom_match_attr * attr) mlx5_esw_offloads_devcom_init() argument 1024 mlx5_esw_offloads_devcom_cleanup(struct mlx5_eswitch * esw) mlx5_esw_offloads_devcom_cleanup() argument 1025 mlx5_esw_offloads_devcom_is_ready(struct mlx5_eswitch * esw) mlx5_esw_offloads_devcom_is_ready() argument 1028 mlx5_eswitch_set_vport_state(struct mlx5_eswitch * esw,u16 vport,int link_state) mlx5_eswitch_set_vport_state() argument 1041 esw_add_restore_rule(struct mlx5_eswitch * esw,u32 tag) esw_add_restore_rule() argument 1065 mlx5_eswitch_reload_ib_reps(struct mlx5_eswitch * esw) mlx5_eswitch_reload_ib_reps() argument 1071 mlx5_eswitch_unload_reps(struct mlx5_eswitch * esw) mlx5_eswitch_unload_reps() argument 1098 mlx5_esw_reps_block(struct mlx5_eswitch * esw) mlx5_esw_reps_block() argument 1099 mlx5_esw_reps_unblock(struct mlx5_eswitch * esw) mlx5_esw_reps_unblock() argument 1102 mlx5_esw_vport_vhca_id(struct mlx5_eswitch * esw,u16 vportn,u16 * vhca_id) mlx5_esw_vport_vhca_id() argument 1116 mlx5_esw_lag_demux_rule_create(struct mlx5_eswitch * esw,u16 vport_num,struct mlx5_flow_table * lag_ft) mlx5_esw_lag_demux_rule_create() 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() argument 163 mlx5_eswitch_termtbl_put(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_put() argument 197 mlx5_eswitch_offload_is_uplink_port(const struct mlx5_eswitch * esw,const struct mlx5_flow_spec * spec) mlx5_eswitch_offload_is_uplink_port() argument 214 mlx5_eswitch_termtbl_required(struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr,struct mlx5_flow_act * flow_act,struct mlx5_flow_spec * spec) mlx5_eswitch_termtbl_required() argument 244 mlx5_eswitch_add_termtbl_rule(struct mlx5_eswitch * esw,struct mlx5_flow_table * fdb,struct mlx5_flow_spec * spec,struct mlx5_esw_flow_attr * attr,struct mlx5_flow_act * flow_act,struct mlx5_flow_destination * dest,int num_dest) mlx5_eswitch_add_termtbl_rule() argument [all...] |
| H A D | en_tc.c | 295 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_act_stats_handle() local 312 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_get_int_port_priv() local 329 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5e_get_flow_meters() local 354 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_ct_priv() local 371 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_sample_priv() local 389 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_post_action() local 408 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_insert() local 421 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_delete() local 482 mlx5e_tc_del_flow_meter(struct mlx5_eswitch *esw, struct mlx5_flow_attr *attr) in mlx5e_tc_del_flow_meter() 493 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_rule_offload() local [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 | devlink_port.c | 81 } else if (mlx5_core_is_ec_vf_vport(esw argument 14 mlx5_esw_devlink_port_supported(struct mlx5_eswitch * esw,u16 vport_num) mlx5_esw_devlink_port_supported() argument 23 mlx5_esw_offloads_pf_vf_devlink_port_attrs_set(struct mlx5_eswitch * esw,u16 vport_num,struct devlink_port * dl_port) mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() argument 102 mlx5_esw_offloads_pf_vf_devlink_port_cleanup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_pf_vf_devlink_port_cleanup() argument 131 mlx5_esw_offloads_sf_devlink_port_attrs_set(struct mlx5_eswitch * esw,struct devlink_port * dl_port,u32 controller,u32 sfnum) mlx5_esw_offloads_sf_devlink_port_attrs_set() argument 149 mlx5_esw_offloads_sf_devlink_port_init(struct mlx5_eswitch * esw,struct mlx5_vport * vport,struct mlx5_devlink_port * dl_port,u32 controller,u32 sfnum) mlx5_esw_offloads_sf_devlink_port_init() argument 160 mlx5_esw_offloads_sf_devlink_port_cleanup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_sf_devlink_port_cleanup() argument 181 mlx5_esw_devlink_port_res_register(struct mlx5_eswitch * esw,struct devlink_port * dl_port,u16 vport_num) mlx5_esw_devlink_port_res_register() argument 221 mlx5_esw_offloads_devlink_port_register(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_devlink_port_register() argument 279 mlx5_esw_offloads_devlink_port(struct mlx5_eswitch * esw,u16 vport_num) mlx5_esw_offloads_devlink_port() argument [all...] |
| H A D | bridge.c | 44 static bool mlx5_esw_bridge_pkt_reformat_vlan_pop_supported(struct mlx5_eswitch *esw) in mlx5_esw_bridge_pkt_reformat_vlan_pop_supported() 53 mlx5_esw_bridge_pkt_reformat_vlan_pop_create(struct mlx5_eswitch *esw) in mlx5_esw_bridge_pkt_reformat_vlan_pop_create() 65 mlx5_esw_bridge_table_create(int max_fte, u32 level, struct mlx5_eswitch *esw) in mlx5_esw_bridge_table_create() 92 struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_proto_fg_create() 132 mlx5_esw_bridge_ingress_vlan_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_fg_create() 142 mlx5_esw_bridge_ingress_qinq_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_qinq_fg_create() 154 u16 vlan_proto, struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create() 191 mlx5_esw_bridge_ingress_vlan_filter_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_filter_fg_create() 202 mlx5_esw_bridge_ingress_qinq_filter_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_qinq_filter_fg_create() 213 mlx5_esw_bridge_ingress_mac_fg_create(struct mlx5_eswitch *esw, struct mlx5_flow_table *ingress_ft) in mlx5_esw_bridge_ingress_mac_fg_create() [all …]
|
| H A D | vporttbl.c | 25 esw_vport_tbl_init(struct mlx5_eswitch *esw, struct esw_vport_tbl_namespace *ns) in esw_vport_tbl_init() 33 esw_vport_tbl_create(struct mlx5_eswitch *esw, struct mlx5_flow_namespace *ns, in esw_vport_tbl_create() 55 static u32 flow_attr_to_vport_key(struct mlx5_eswitch *esw, in flow_attr_to_vport_key() 69 esw_vport_tbl_lookup(struct mlx5_eswitch *esw, struct mlx5_vport_key *skey, u32 key) in esw_vport_tbl_lookup() 81 mlx5_esw_vporttbl_get(struct mlx5_eswitch *esw, struct mlx5_vport_tbl_attr *attr) in mlx5_esw_vporttbl_get() 132 mlx5_esw_vporttbl_put(struct mlx5_eswitch *esw, struct mlx5_vport_tbl_attr *attr) in mlx5_esw_vporttbl_put()
|
| 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 | qos.c | 47 struct mlx5_eswitch *esw; member 609 struct mlx5_eswitch *esw = tc_arbiter_node->esw; in esw_qos_set_tc_arbiter_bw_shares() local 642 struct mlx5_eswitch *esw = tc_arbiter_node->esw; in esw_qos_create_vports_tc_nodes() local 727 esw_qos_create_vports_sched_node(struct mlx5_eswitch *esw, struct netlink_ext_ack *extack) in esw_qos_create_vports_sched_node() 749 struct mlx5_eswitch *esw = node->esw; in __esw_qos_destroy_node() local 759 static int esw_qos_create(struct mlx5_eswitch *esw, struct netlink_ext_ack *extack) in esw_qos_create() 793 static void esw_qos_destroy(struct mlx5_eswitch *esw) in esw_qos_destroy() 799 static int esw_qos_get(struct mlx5_eswitch *esw, struct netlink_ext_ack *extack) in esw_qos_get() 814 static void esw_qos_put(struct mlx5_eswitch *esw) in esw_qos_put() 1093 struct mlx5_eswitch *esw = vport->dev->priv.eswitch; in mlx5_esw_qos_vport_enable() local [all …]
|
| 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 …]
|
| /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_fwd_grp_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_fwd_grp_create() 170 static bool esw_acl_egress_needed(struct mlx5_eswitch *esw, u16 vport_num) in esw_acl_egress_needed() 175 int esw_acl_egress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_acl_egress_ofld_setup() 233 static int esw_acl_egress_ofld_fwd2vport_setup(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_fwd2vport_setup() 257 int mlx5_esw_acl_egress_vport_bond(struct mlx5_eswitch *esw, u16 active_vport_num, in mlx5_esw_acl_egress_vport_bond() 294 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 | ingress_lgcy.c | 18 static int esw_acl_ingress_lgcy_groups_create(struct mlx5_eswitch *esw, in esw_acl_ingress_lgcy_groups_create() 139 int esw_acl_ingress_lgcy_setup(struct mlx5_eswitch *esw, in esw_acl_ingress_lgcy_setup() 288 void esw_acl_ingress_lgcy_cleanup(struct mlx5_eswitch *esw, in esw_acl_ingress_lgcy_cleanup()
|
| 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/dsa/ |
| H A D | mt7628.c | 173 struct mt7628_esw *esw = bus->priv; in mt7628_mii_read() local 208 struct mt7628_esw *esw = bus->priv; in mt7628_mii_write() local 244 struct mt7628_esw *esw = ds->priv; in mt7628_setup_internal_mdio() local 267 struct mt7628_esw *esw = ds->priv; in mt7628_switch_init() local 354 static void mt7628_esw_set_pvid(struct mt7628_esw *esw, unsigned int port, in mt7628_esw_set_pvid() 362 static void mt7628_esw_set_vlan_id(struct mt7628_esw *esw, unsigned int vlan, in mt7628_esw_set_vlan_id() 370 static void mt7628_esw_set_vmsc(struct mt7628_esw *esw, unsigned int vlan, in mt7628_esw_set_vmsc() 378 static void mt7628_esw_set_vub(struct mt7628_esw *esw, unsigned int vlan, in mt7628_esw_set_vub() 388 struct mt7628_esw *esw = ds->priv; in mt7628_vlan_sync() local 405 struct mt7628_esw *esw = ds->priv; in mt7628_setup() local [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
| H A D | bridge.c | 22 static bool mlx5_esw_bridge_dev_same_esw(struct net_device *dev, struct mlx5_eswitch *esw) in mlx5_esw_bridge_dev_same_esw() 29 static bool mlx5_esw_bridge_dev_same_hw(struct net_device *dev, struct mlx5_eswitch *esw) in mlx5_esw_bridge_dev_same_hw() 41 mlx5_esw_bridge_lag_rep_get(struct net_device *dev, struct mlx5_eswitch *esw) in mlx5_esw_bridge_lag_rep_get() 58 mlx5_esw_bridge_rep_vport_num_vhca_id_get(struct net_device *dev, struct mlx5_eswitch *esw, in mlx5_esw_bridge_rep_vport_num_vhca_id_get() 82 mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get(struct net_device *dev, struct mlx5_eswitch *esw, in mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get() 108 struct mlx5_eswitch *esw) in mlx5_esw_bridge_is_local() 131 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_port_changeupper() local 428 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_switchdev_event() local 518 struct mlx5_eswitch *esw = in mlx5e_rep_bridge_init() local 579 struct mlx5_eswitch *esw = in mlx5e_rep_bridge_cleanup() local
|
| 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/en/tc/ |
| H A D | int_port.c | 31 bool mlx5e_tc_int_port_supported(const struct mlx5_eswitch *esw) in mlx5e_tc_int_port_supported() 61 mlx5e_int_port_create_rx_rule(struct mlx5_eswitch *esw, in mlx5e_int_port_create_rx_rule() 154 struct mlx5_eswitch *esw = priv->dev->priv.eswitch; in mlx5e_int_port_add() local 230 struct mlx5_eswitch *esw = priv->dev->priv.eswitch; in mlx5e_int_port_remove() local 308 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_init() local 362 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_init_rep_rx() local 382 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_cleanup_rep_rx() local
|
| 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,struct mlx5_flow_spec * spec,struct mlx5_flow_attr * attr,u32 * default_tbl_id) add_post_rule() argument 407 del_post_rule(struct mlx5_eswitch * esw,struct mlx5e_sample_flow * sample_flow,struct mlx5_flow_attr * attr) del_post_rule() argument 480 struct mlx5_eswitch *esw; mlx5e_tc_sample_offload() local 594 struct mlx5_eswitch *esw; mlx5e_tc_sample_unoffload() local 617 mlx5e_tc_sample_init(struct mlx5_eswitch * esw,struct mlx5e_post_act * post_act) mlx5e_tc_sample_init() argument [all...] |
| 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()
|