Home
last modified time | relevance | path

Searched full:vport (Results 1 – 25 of 191) sorted by relevance

12345678

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dingress_ofld.c10 acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
14 const struct mlx5_vport *vport) in esw_acl_ingress_prio_tag_enabled() argument
17 mlx5_eswitch_is_vf_vport(esw, vport->vport)); in esw_acl_ingress_prio_tag_enabled()
21 struct mlx5_vport *vport) in esw_acl_ingress_prio_tag_create() argument
46 if (vport->ingress.offloads.modify_metadata_rule) { in esw_acl_ingress_prio_tag_create()
48 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_prio_tag_create()
51 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_prio_tag_create()
53 if (IS_ERR(vport->ingress.allow_rule)) { in esw_acl_ingress_prio_tag_create()
54 err = PTR_ERR(vport->ingress.allow_rule); in esw_acl_ingress_prio_tag_create()
56 "vport[%d] configure ingress untagged allow rule, err(%d)\n", in esw_acl_ingress_prio_tag_create()
[all …]
H A Dingress_lgcy.c9 static void esw_acl_ingress_lgcy_rules_destroy(struct mlx5_vport *vport) in esw_acl_ingress_lgcy_rules_destroy() argument
11 if (vport->ingress.legacy.drop_rule) { in esw_acl_ingress_lgcy_rules_destroy()
12 mlx5_del_flow_rules(vport->ingress.legacy.drop_rule); in esw_acl_ingress_lgcy_rules_destroy()
13 vport->ingress.legacy.drop_rule = NULL; in esw_acl_ingress_lgcy_rules_destroy()
15 esw_acl_ingress_allow_rule_destroy(vport); in esw_acl_ingress_lgcy_rules_destroy()
19 struct mlx5_vport *vport) in esw_acl_ingress_lgcy_groups_create() argument
42 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
45 esw_warn(dev, "vport[%d] ingress create untagged spoofchk flow group, err(%d)\n", in esw_acl_ingress_lgcy_groups_create()
46 vport->vport, err); in esw_acl_ingress_lgcy_groups_create()
49 vport->ingress.legacy.allow_untagged_spoofchk_grp = g; in esw_acl_ingress_lgcy_groups_create()
[all …]
H A Degress_ofld.c9 static void esw_acl_egress_ofld_fwd2vport_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_fwd2vport_destroy() argument
11 if (!vport->egress.offloads.fwd_rule) in esw_acl_egress_ofld_fwd2vport_destroy()
14 mlx5_del_flow_rules(vport->egress.offloads.fwd_rule); in esw_acl_egress_ofld_fwd2vport_destroy()
15 vport->egress.offloads.fwd_rule = NULL; in esw_acl_egress_ofld_fwd2vport_destroy()
18 void esw_acl_egress_ofld_bounce_rule_destroy(struct mlx5_vport *vport, int rule_index) in esw_acl_egress_ofld_bounce_rule_destroy() argument
21 xa_load(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy()
27 xa_erase(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy()
30 static void esw_acl_egress_ofld_bounce_rules_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_bounce_rules_destroy() argument
35 xa_for_each(&vport->egress.offloads.bounce_rules, i, bounce_rule) { in esw_acl_egress_ofld_bounce_rules_destroy()
37 xa_erase(&vport->egress.offloads.bounce_rules, i); in esw_acl_egress_ofld_bounce_rules_destroy()
[all …]
H A Dhelper.c9 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size) in esw_acl_table_create() argument
26 vport_num = vport->vport; in esw_acl_table_create()
27 esw_debug(dev, "Create vport[%d] %s ACL table\n", vport_num, in esw_acl_table_create()
30 root_ns = mlx5_get_flow_vport_namespace(dev, ns, vport->index); in esw_acl_table_create()
32 esw_warn(dev, "Failed to get E-Switch root namespace for vport (%d)\n", in esw_acl_table_create()
43 esw_warn(dev, "vport[%d] create %s ACL table, err(%d)\n", vport_num, in esw_acl_table_create()
50 struct mlx5_vport *vport, in esw_egress_acl_vlan_create() argument
58 if (vport->egress.allowed_vlan) in esw_egress_acl_vlan_create()
72 vport->egress.allowed_vlan = in esw_egress_acl_vlan_create()
73 mlx5_add_flow_rules(vport->egress.acl, spec, in esw_egress_acl_vlan_create()
[all …]
/linux/net/openvswitch/
H A Dvport.c21 #include "vport.h"
22 #include "vport-internal_dev.h"
31 * ovs_vport_init - initialize vport subsystem
33 * Called at module load time to initialize the vport subsystem.
45 * ovs_vport_exit - shutdown vport subsystem
47 * Called at module exit time to shutdown the vport subsystem.
94 struct vport *ovs_vport_locate(const struct net *net, const char *name) in ovs_vport_locate()
97 struct vport *vport; in ovs_vport_locate() local
99 hlist_for_each_entry_rcu(vport, bucke in ovs_vport_locate()
124 struct vport *vport; ovs_vport_alloc() local
174 ovs_vport_free(struct vport * vport) ovs_vport_free() argument
207 struct vport *vport; ovs_vport_add() local
251 ovs_vport_set_options(struct vport * vport,struct nlattr * options) ovs_vport_set_options() argument
266 ovs_vport_del(struct vport * vport) ovs_vport_del() argument
283 ovs_vport_get_stats(struct vport * vport,struct ovs_vport_stats * stats) ovs_vport_get_stats() argument
310 ovs_vport_get_upcall_stats(struct vport * vport,struct sk_buff * skb) ovs_vport_get_upcall_stats() argument
367 ovs_vport_get_options(const struct vport * vport,struct sk_buff * skb) ovs_vport_get_options() argument
402 ovs_vport_set_upcall_portids(struct vport * vport,const struct nlattr * ids) ovs_vport_set_upcall_portids() argument
441 ovs_vport_get_upcall_portids(const struct vport * vport,struct sk_buff * skb) ovs_vport_get_upcall_portids() argument
466 ovs_vport_find_upcall_portid(const struct vport * vport,struct sk_buff * skb) ovs_vport_find_upcall_portid() argument
494 ovs_vport_receive(struct vport * vport,struct sk_buff * skb,const struct ip_tunnel_info * tun_info) ovs_vport_receive() argument
541 ovs_vport_send(struct vport * vport,struct sk_buff * skb,u8 mac_proto) ovs_vport_send() argument
[all...]
H A Dvport-netdev.c22 #include "vport.h"
23 #include "vport-internal_dev.h"
24 #include "vport-netdev.h"
31 struct vport *vport; in netdev_port_receive() local
33 vport = ovs_netdev_get_vport(skb->dev); in netdev_port_receive()
34 if (unlikely(!vport)) in netdev_port_receive()
50 ovs_vport_receive(vport, skb, skb_tunnel_info(skb)); in netdev_port_receive()
70 struct vport *local; in get_dpdev()
76 struct vport *ovs_netdev_link(struct vport *vport, bool tunnel) in ovs_netdev_link() argument
80 if (WARN_ON_ONCE(!vport->dev)) { in ovs_netdev_link()
[all …]
H A Dvport.h20 struct vport;
23 /* The following definitions are for users of the vport subsystem: */
28 struct vport *ovs_vport_add(const struct vport_parms *);
29 void ovs_vport_del(struct vport *);
31 struct vport *ovs_vport_locate(const struct net *net, const char *name);
33 void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *);
35 int ovs_vport_get_upcall_stats(struct vport *vport, struct sk_buff *skb);
37 int ovs_vport_set_options(struct vport *, struct nlattr *options);
38 int ovs_vport_get_options(const struct vport *, struct sk_buff *);
40 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
[all …]
H A Dvport-geneve.c24 #include "vport.h"
25 #include "vport-netdev.h"
36 static inline struct geneve_port *geneve_vport(const struct vport *vport) in geneve_vport() argument
38 return vport_priv(vport); in geneve_vport()
41 static int geneve_get_options(const struct vport *vport, in geneve_get_options() argument
44 struct geneve_port *geneve_port = geneve_vport(vport); in geneve_get_options()
51 static struct vport *geneve_tnl_create(const struct vport_parms *parms) in geneve_tnl_create()
57 struct vport *vport; in geneve_tnl_create() local
76 vport = ovs_vport_alloc(sizeof(struct geneve_port), in geneve_tnl_create()
78 if (IS_ERR(vport)) in geneve_tnl_create()
[all …]
H A Dvport-internal_dev.c18 #include "vport-internal_dev.h"
19 #include "vport-netdev.h"
22 struct vport *vport; member
42 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit()
78 struct vport *vport = ovs_internal_dev_get_vport(dev); in internal_dev_destructor() local
80 ovs_vport_free(vport); in internal_dev_destructor()
123 static struct vport *internal_dev_create(const struct vport_parms *parms) in internal_dev_create()
125 struct vport *vport; in internal_dev_create() local
130 vport = ovs_vport_alloc(0, &ovs_internal_vport_ops, parms); in internal_dev_create()
131 if (IS_ERR(vport)) { in internal_dev_create()
[all …]
H A Dvport-vxlan.c17 #include "vport.h"
18 #include "vport-netdev.h"
22 static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb) in vxlan_get_options() argument
24 struct vxlan_dev *vxlan = netdev_priv(vport->dev); in vxlan_get_options()
51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts() argument
71 static struct vport *vxlan_tnl_create(const struct vport_parms *parms) in vxlan_tnl_create()
76 struct vport *vport; in vxlan_tnl_create() local
100 vport = ovs_vport_alloc(0, &ovs_vxlan_netdev_vport_ops, parms); in vxlan_tnl_create()
101 if (IS_ERR(vport)) in vxlan_tnl_create()
102 return vport; in vxlan_tnl_create()
[all …]
H A Dvport-gre.c34 #include "vport.h"
35 #include "vport-netdev.h"
39 static struct vport *gre_tnl_create(const struct vport_parms *parms) in gre_tnl_create()
43 struct vport *vport; in gre_tnl_create() local
46 vport = ovs_vport_alloc(0, &ovs_gre_vport_ops, parms); in gre_tnl_create()
47 if (IS_ERR(vport)) in gre_tnl_create()
48 return vport; in gre_tnl_create()
54 ovs_vport_free(vport); in gre_tnl_create()
62 ovs_vport_free(vport); in gre_tnl_create()
66 vport->dev = dev; in gre_tnl_create()
[all …]
/linux/drivers/scsi/lpfc/
H A Dlpfc_vport.c53 inline void lpfc_vport_set_state(struct lpfc_vport *vport, in lpfc_vport_set_state() argument
56 struct fc_vport *fc_vport = vport->fc_vport; in lpfc_vport_set_state()
76 vport->port_state = LPFC_VPORT_FAILED; in lpfc_vport_set_state()
79 vport->port_state = LPFC_VPORT_UNKNOWN; in lpfc_vport_set_state()
118 lpfc_vport_sparm(struct lpfc_hba *phba, struct lpfc_vport *vport) in lpfc_vport_sparm() argument
131 rc = lpfc_read_sparam(phba, pmb, vport->vpi); in lpfc_vport_sparm()
139 * this per vport to start the FDISC. If the mailbox fails, in lpfc_vport_sparm()
146 pmb->vport = vport; in lpfc_vport_sparm()
150 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_vport_sparm()
158 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_vport_sparm()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c37 #include <linux/mlx5/vport.h>
59 /* Vport UC/MC hash node */
63 u16 vport; member
66 /* A flag indicating that mac was added due to mc promiscuous vport */
109 struct mlx5_vport *vport; in mlx5_eswitch_get_vport() local
114 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport()
115 if (!vport) { in mlx5_eswitch_get_vport()
116 esw_debug(esw->dev, "vport out of range: num(0x%x)\n", vport_num); in mlx5_eswitch_get_vport()
119 return vport; in mlx5_eswitch_get_vport()
122 static int arm_vport_context_events_cmd(struct mlx5_core_dev *dev, u16 vport, in arm_vport_context_events_cmd() argument
153 mlx5_eswitch_modify_esw_vport_context(struct mlx5_core_dev * dev,u16 vport,bool other_vport,void * in) mlx5_eswitch_modify_esw_vport_context() argument
163 modify_esw_vport_cvlan(struct mlx5_core_dev * dev,u16 vport,u16 vlan,u8 qos,u8 set_flags) modify_esw_vport_cvlan() argument
207 __esw_fdb_set_vport_rule(struct mlx5_eswitch * esw,u16 vport,bool rx_rule,u8 mac_c[ETH_ALEN],u8 mac_v[ETH_ALEN]) __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
309 u16 vport = vaddr->vport; esw_add_uc_addr() local
342 u16 vport = vaddr->vport; esw_del_uc_addr() local
371 struct mlx5_vport *vport; update_allmulti_vports() local
420 u16 vport = vaddr->vport; esw_add_mc_addr() local
460 u16 vport = vaddr->vport; esw_del_mc_addr() local
499 esw_apply_vport_addr_list(struct mlx5_eswitch * esw,struct mlx5_vport * vport,int list_type) esw_apply_vport_addr_list() argument
533 esw_update_vport_addr_list(struct mlx5_eswitch * esw,struct mlx5_vport * vport,int list_type) esw_update_vport_addr_list() argument
620 esw_update_vport_mc_promisc(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_update_vport_mc_promisc() argument
655 esw_apply_vport_rx_mode(struct mlx5_eswitch * esw,struct mlx5_vport * vport,bool promisc,bool mc_promisc) esw_apply_vport_rx_mode() argument
698 esw_update_vport_rx_mode(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_update_vport_rx_mode() argument
725 esw_vport_change_handle_locked(struct mlx5_vport * vport) esw_vport_change_handle_locked() argument
763 struct mlx5_vport *vport = esw_vport_change_handler() local
785 esw_vport_setup_acl(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_setup_acl() argument
794 esw_vport_cleanup_acl(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_cleanup_acl() argument
802 mlx5_esw_vport_caps_get(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_caps_get() argument
845 struct mlx5_vport *vport; mlx5_esw_vport_vhca_id() local
855 esw_vport_setup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_setup() argument
897 esw_vport_cleanup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_cleanup() argument
912 mlx5_esw_vport_set_max_tx_speed(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_set_max_tx_speed() argument
929 mlx5_esw_vport_enable(struct mlx5_eswitch * esw,struct mlx5_vport * vport,enum mlx5_eswitch_vport_event enabled_events) mlx5_esw_vport_enable() argument
982 mlx5_esw_vport_disable(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_disable() argument
1026 struct mlx5_vport *vport; eswitch_vport_event() local
1105 struct mlx5_vport *vport; mlx5_eswitch_clear_vf_vports_info() local
1117 struct mlx5_vport *vport; mlx5_eswitch_clear_ec_vf_vports_info() local
1127 mlx5_eswitch_load_vport(struct mlx5_eswitch * esw,struct mlx5_vport * vport,enum mlx5_eswitch_vport_event enabled_events) mlx5_eswitch_load_vport() argument
1147 mlx5_eswitch_unload_vport(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_eswitch_unload_vport() argument
1156 struct mlx5_vport *vport; mlx5_eswitch_load_pf_vf_vport() local
1179 struct mlx5_vport *vport; mlx5_eswitch_unload_pf_vf_vport() local
1193 struct mlx5_vport *vport; mlx5_eswitch_load_sf_vport() local
1217 struct mlx5_vport *vport; mlx5_eswitch_unload_sf_vport() local
1229 struct mlx5_vport *vport; mlx5_eswitch_unload_vf_vports() local
1243 struct mlx5_vport *vport; mlx5_eswitch_unload_ec_vf_vports() local
1255 struct mlx5_vport *vport; mlx5_eswitch_unload_adj_vf_vports() local
1269 struct mlx5_vport *vport; mlx5_eswitch_load_adj_vf_vports() local
1292 struct mlx5_vport *vport; mlx5_eswitch_load_vf_vports() local
1312 struct mlx5_vport *vport; mlx5_eswitch_load_ec_vf_vports() local
1332 struct mlx5_vport *vport; mlx5_esw_host_pf_enable_hca() local
1358 struct mlx5_vport *vport; mlx5_esw_host_pf_disable_hca() local
1884 struct mlx5_vport *vport; mlx5_esw_vport_alloc() local
1909 mlx5_esw_vport_free(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_free() argument
1918 struct mlx5_vport *vport; mlx5_esw_vports_cleanup() local
2193 mlx5_eswitch_set_vport_mac(struct mlx5_eswitch * esw,u16 vport,const u8 * mac) mlx5_eswitch_set_vport_mac() argument
2229 mlx5_eswitch_set_vport_state(struct mlx5_eswitch * esw,u16 vport,int link_state) mlx5_eswitch_set_vport_state() argument
2267 mlx5_eswitch_get_vport_config(struct mlx5_eswitch * esw,u16 vport,struct ifla_vf_info * ivi) mlx5_eswitch_get_vport_config() argument
2299 __mlx5_eswitch_set_vport_vlan(struct mlx5_eswitch * esw,u16 vport,u16 vlan,u8 qos,u8 set_flags) __mlx5_eswitch_set_vport_vlan() argument
2332 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); mlx5_eswitch_get_vport_stats() local
[all...]
H A Deswitch_offloads.c37 #include <linux/mlx5/vport.h>
99 spec->flow_context.flow_source = (attr->in_rep->vport == MLX5_VPORT_UPLINK) ? in mlx5_eswitch_set_rule_flow_source()
129 u16 vport) in mlx5_eswitch_set_rule_source_port()
136 /* Use metadata matching because vport is not represented by single in mlx5_eswitch_set_rule_source_port()
137 * VHCA in dual-port RoCE mode, and matching on source vport may fail. in mlx5_eswitch_set_rule_source_port()
141 vport = mlx5_esw_indir_table_decap_vport(attr); in mlx5_eswitch_set_rule_source_port()
148 mlx5_eswitch_get_vport_metadata_for_match(src_esw, vport); in mlx5_eswitch_set_rule_source_port()
160 MLX5_SET(fte_match_set_misc, misc, source_port, vport); in mlx5_eswitch_set_rule_source_port()
294 else if (mlx5_esw_indir_table_needed(esw, attr, esw_attr->dests[i].vport, in esw_put_dest_tables_loop()
296 mlx5_esw_indir_table_put(esw, esw_attr->dests[i].vport, fals in esw_put_dest_tables_loop()
127 mlx5_eswitch_set_rule_source_port(struct mlx5_eswitch * esw,struct mlx5_flow_spec * spec,struct mlx5_flow_attr * attr,struct mlx5_eswitch * src_esw,u16 vport) mlx5_eswitch_set_rule_source_port() argument
948 u16 vport; mlx5_eswitch_add_send_to_vport_rule() local
1166 esw_set_peer_miss_rule_source_port(struct mlx5_eswitch * esw,struct mlx5_eswitch * peer_esw,struct mlx5_flow_spec * spec,u16 vport) esw_set_peer_miss_rule_source_port() argument
1570 struct mlx5_vport *vport; esw_vport_tbl_put() local
1586 struct mlx5_vport *vport; esw_vport_tbl_get() local
2189 mlx5_esw_set_spec_source_port(struct mlx5_eswitch * esw,u16 vport,struct mlx5_flow_spec * spec) mlx5_esw_set_spec_source_port() argument
2216 mlx5_eswitch_create_vport_rx_rule(struct mlx5_eswitch * esw,u16 vport,struct mlx5_flow_destination * dest) mlx5_eswitch_create_vport_rx_rule() argument
2276 struct mlx5_vport *vport; mlx5_eswitch_inline_mode_get() local
2518 struct mlx5_vport *vport; mlx5_esw_fdb_active() local
2538 struct mlx5_vport *vport; mlx5_esw_fdb_inactive() local
2582 mlx5_esw_offloads_rep_remove(struct mlx5_eswitch * esw,const struct mlx5_vport * vport) mlx5_esw_offloads_rep_remove() argument
2594 mlx5_esw_offloads_rep_add(struct mlx5_eswitch * esw,const struct mlx5_vport * vport) mlx5_esw_offloads_rep_add() argument
2649 struct mlx5_vport *vport; esw_offloads_init_reps() local
2823 mlx5_esw_offloads_init_pf_vf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_init_pf_vf_rep() argument
2831 mlx5_esw_offloads_cleanup_pf_vf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_cleanup_pf_vf_rep() argument
2839 mlx5_esw_offloads_init_sf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport,struct mlx5_devlink_port * dl_port,u32 controller,u32 sfnum) mlx5_esw_offloads_init_sf_rep() argument
2846 mlx5_esw_offloads_cleanup_sf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_cleanup_sf_rep() argument
2851 mlx5_esw_offloads_load_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_load_rep() argument
2872 mlx5_esw_offloads_unload_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_unload_rep() argument
2925 __esw_set_master_egress_rule(struct mlx5_core_dev * master,struct mlx5_core_dev * slave,struct mlx5_vport * vport,struct mlx5_flow_table * acl) __esw_set_master_egress_rule() argument
2974 esw_master_egress_create_resources(struct mlx5_eswitch * esw,struct mlx5_flow_namespace * egress_ns,struct mlx5_vport * vport,size_t count) esw_master_egress_create_resources() argument
3038 esw_master_egress_destroy_resources(struct mlx5_vport * vport) esw_master_egress_destroy_resources() argument
3054 struct mlx5_vport *vport; esw_set_master_egress_rule() local
3091 struct mlx5_vport *vport; esw_unset_master_egress_rule() local
3420 esw_offloads_vport_metadata_setup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_offloads_vport_metadata_setup() argument
3432 esw_offloads_vport_metadata_cleanup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_offloads_vport_metadata_cleanup() argument
3446 struct mlx5_vport *vport; esw_offloads_metadata_uninit() local
3458 struct mlx5_vport *vport; esw_offloads_metadata_init() local
3480 esw_vport_create_offloads_acl_tables(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_create_offloads_acl_tables() argument
3501 esw_vport_destroy_offloads_acl_tables(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_destroy_offloads_acl_tables() argument
3539 struct mlx5_vport *vport; esw_destroy_offloads_acl_tables() local
3775 struct mlx5_vport *vport; esw_offloads_enable() local
4201 struct mlx5_vport *vport; mlx5_esw_vports_inline_set() local
4491 mlx5_eswitch_get_proto_dev(struct mlx5_eswitch * esw,u16 vport,u8 rep_type) mlx5_eswitch_get_proto_dev() argument
4512 mlx5_eswitch_vport_rep(struct mlx5_eswitch * esw,u16 vport) mlx5_eswitch_vport_rep() argument
4533 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); mlx5_eswitch_get_vport_metadata_for_match() local
4543 mlx5_esw_vport_vhca_id_map(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_vhca_id_map() argument
4574 mlx5_esw_vport_vhca_id_unmap(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_vhca_id_unmap() argument
4596 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); mlx5_eswitch_get_vport_metadata_for_set() local
4610 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_hw_addr_get() local
4627 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_hw_addr_set() local
4636 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_migratable_get() local
4658 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_migratable_set() local
4717 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_roce_get() local
4734 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_roce_set() local
4790 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_pf_port_fn_state_get() local
4820 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_pf_port_fn_state_set() local
4861 struct mlx5_vport *vport; mlx5_devlink_port_fn_ipsec_crypto_get() local
4891 struct mlx5_vport *vport; mlx5_devlink_port_fn_ipsec_crypto_set() local
4944 struct mlx5_vport *vport; mlx5_devlink_port_fn_ipsec_packet_get() local
4975 struct mlx5_vport *vport; mlx5_devlink_port_fn_ipsec_packet_set() local
5029 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_max_io_eqs_get() local
5079 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_max_io_eqs_set() local
[all...]
H A Deswitch.h44 #include <linux/mlx5/vport.h>
180 /* Vport context events */
191 struct mlx5_vport *vport; in mlx5_devlink_port_get()
195 struct mlx5_vport *vport) in mlx5_devlink_port_vport_get()
197 dl_port->vport = vport; in mlx5_devlink_port_vport_get()
207 return mlx5_devlink_port_get(dl_port)->vport;
212 #define MLX5_VPORT_INVAL_VHCA_ID(vport) \
213 ((vport)->vhca_id == MLX5_VHCA_ID_INVALID)
232 u16 function_id; /* Function ID of the delegated VPort */
181 struct mlx5_vport *vport; global() member
185 mlx5_devlink_port_init(struct mlx5_devlink_port * dl_port,struct mlx5_vport * vport) mlx5_devlink_port_init() argument
202 MLX5_VPORT_INVAL_VHCA_ID(vport) global() argument
243 u16 vport; global() member
558 u16 vport; global() member
731 mlx5_esw_for_each_vport(esw,index,vport) global() argument
738 mlx5_esw_for_each_vport_marked(esw,index,vport,last,filter) global() argument
741 mlx5_esw_for_each_vf_vport(esw,index,vport,last) global() argument
744 mlx5_esw_for_each_host_func_vport(esw,index,vport,last) global() argument
752 mlx5_esw_for_each_ec_vf_vport(esw,index,vport,last) global() argument
802 u16 vport; global() member
966 mlx5_eswitch_set_vport_state(struct mlx5_eswitch * esw,u16 vport,int link_state) mlx5_eswitch_set_vport_state() argument
[all...]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_mbx.c26 * @vport: pointer to struct hclge_vport
31 static int hclge_gen_resp_to_vf(struct hclge_vport *vport, in hclge_gen_resp_to_vf() argument
36 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf()
91 static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len, in hclge_send_mbx_msg() argument
95 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg()
127 int hclge_inform_vf_reset(struct hclge_vport *vport, u16 reset_type) in hclge_inform_vf_reset() argument
132 dest_vfid = (u8)vport->vport_id; in hclge_inform_vf_reset()
136 return hclge_send_mbx_msg(vport, (u8 *)&msg_data, sizeof(msg_data), in hclge_inform_vf_reset()
140 int hclge_inform_reset_assert_to_vf(struct hclge_vport *vport) in hclge_inform_reset_assert_to_vf() argument
142 struct hclge_dev *hdev = vport->back; in hclge_inform_reset_assert_to_vf()
[all …]
H A Dhclge_main.c547 handle = &hdev->vport[0].nic; in hclge_mac_query_reg_num()
567 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_comm_get_count()
568 struct hclge_dev *hdev = vport->back; in hclge_comm_get_count()
597 struct hclge_vport *vport = hclge_get_vport(handle);
598 struct hclge_dev *hdev = vport->back; in hclge_comm_get_strings()
646 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_update_stats()
647 struct hclge_dev *hdev = vport->back; in hclge_update_stats()
682 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_sset_count()
683 struct hclge_dev *hdev = vport->back; in hclge_get_sset_count()
694 struct hclge_vport *vport in hclge_get_sset_count()
640 struct hclge_vport *vport = hclge_get_vport(handle); hclge_update_stats() local
670 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_sset_count() local
719 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_strings() local
755 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_stats() local
767 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_mac_stat() local
946 struct hclge_vport *vport = hclge_get_vport(handle); hclge_check_port_speed() local
1701 hclge_assign_tqp(struct hclge_vport * vport,u16 num_tqps) hclge_assign_tqp() argument
1730 hclge_knic_setup(struct hclge_vport * vport,u16 num_tqps,u16 num_tx_desc,u16 num_rx_desc) hclge_knic_setup() argument
1758 hclge_map_tqp_to_vport(struct hclge_dev * hdev,struct hclge_vport * vport) hclge_map_tqp_to_vport() argument
1783 struct hclge_vport *vport = hdev->vport; hclge_map_tqp() local
1800 hclge_vport_setup(struct hclge_vport * vport,u16 num_tqps) hclge_vport_setup() argument
1823 struct hclge_vport *vport; hclge_alloc_vport() local
2482 hclge_init_roce_base_info(struct hclge_vport * vport) hclge_init_roce_base_info() argument
2646 struct hclge_vport *vport = hclge_get_vport(handle); hclge_cfg_mac_speed_dup_h() local
2685 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_autoneg() local
2703 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_autoneg() local
2715 struct hclge_vport *vport = hclge_get_vport(handle); hclge_restart_autoneg() local
2729 struct hclge_vport *vport = hclge_get_vport(handle); hclge_halt_autoneg() local
2875 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_fec_stats() local
2919 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_fec() local
2940 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_fec() local
3071 struct hclge_vport *vport; hclge_push_link_status() local
3314 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_phy_link_ksettings() local
3365 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_phy_link_ksettings() local
3495 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_status() local
3526 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_vf_config() local
3550 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_link_state() local
3896 struct hclge_vport *vport = &hdev->vport[i]; hclge_set_all_vf_rst() local
4638 struct hclge_vport *vport = &hdev->vport[i]; hclge_update_vport_alive() local
4779 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_vector() local
4819 struct hclge_vport *vport = hclge_get_vport(handle); hclge_put_vector() local
4839 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_rss() local
4854 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_rss() local
4877 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_rss_tuple() local
4895 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_rss_tuple() local
4913 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_tc_size() local
4922 struct hclge_vport *vport = hdev->vport; hclge_init_rss_tc_mode() local
4986 hclge_bind_ring_with_vector(struct hclge_vport * vport,int vector_id,bool en,struct hnae3_ring_chain_node * ring_chain) hclge_bind_ring_with_vector() argument
5067 struct hclge_vport *vport = hclge_get_vport(handle); hclge_map_ring_to_vector() local
5084 struct hclge_vport *vport = hclge_get_vport(handle); hclge_unmap_ring_frm_vector() local
5110 struct hclge_vport *vport = &hdev->vport[vf_id]; hclge_cmd_set_promisc_mode() local
5152 hclge_set_vport_promisc_mode(struct hclge_vport * vport,bool en_uc_pmc,bool en_mc_pmc,bool en_bc_pmc) hclge_set_vport_promisc_mode() argument
5162 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_promisc_mode() local
5179 struct hclge_vport *vport = hclge_get_vport(handle); hclge_request_update_promisc_mode() local
5891 struct hclge_vport *vport = hdev->vport; hclge_config_action() local
6504 struct hclge_vport *vport = hclge_get_vport(handle); hclge_is_cls_flower_active() local
6513 struct hclge_vport *vport = hdev->vport; hclge_fd_parse_ring_cookie() local
6552 struct hclge_vport *vport = hclge_get_vport(handle); hclge_add_fd_entry() local
6613 struct hclge_vport *vport = hclge_get_vport(handle); hclge_del_fd_entry() local
6687 struct hclge_vport *vport = hclge_get_vport(handle); hclge_restore_fd_entries() local
6717 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_fd_rule_cnt() local
6931 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_fd_rule_info() local
6993 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_all_rules() local
7093 struct hclge_vport *vport = hclge_get_vport(handle); hclge_add_fd_entry_by_arfs() local
7395 struct hclge_vport *vport = hclge_get_vport(handle); hclge_add_cls_flower() local
7454 struct hclge_vport *vport = hclge_get_vport(handle); hclge_del_cls_flower() local
7546 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_hw_reset_stat() local
7555 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_cmdq_stat() local
7563 struct hclge_vport *vport = hclge_get_vport(handle); hclge_ae_dev_resetting() local
7571 struct hclge_vport *vport = hclge_get_vport(handle); hclge_ae_dev_reset_cnt() local
7579 struct hclge_vport *vport = hclge_get_vport(handle); hclge_enable_fd() local
7948 struct hclge_vport *vport = hclge_get_vport(handle); hclge_tqp_enable() local
7964 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_loopback() local
8044 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_timer_task() local
8060 struct hclge_vport *vport = hclge_get_vport(handle); hclge_ae_start() local
8078 struct hclge_vport *vport = hclge_get_vport(handle); hclge_ae_stop() local
8114 hclge_vport_start(struct hclge_vport * vport) hclge_vport_start() argument
8138 hclge_vport_stop(struct hclge_vport * vport) hclge_vport_stop() argument
8147 struct hclge_vport *vport = hclge_get_vport(handle); hclge_client_start() local
8154 struct hclge_vport *vport = hclge_get_vport(handle); hclge_client_stop() local
8159 hclge_get_mac_vlan_cmd_status(struct hclge_vport * vport,u16 cmdq_resp,u8 resp_code,enum hclge_mac_vlan_tbl_opcode op) hclge_get_mac_vlan_cmd_status() argument
8278 hclge_remove_mac_vlan_tbl(struct hclge_vport * vport,struct hclge_mac_vlan_tbl_entry_cmd * req) hclge_remove_mac_vlan_tbl() argument
8305 hclge_lookup_mac_vlan_tbl(struct hclge_vport * vport,struct hclge_mac_vlan_tbl_entry_cmd * req,struct hclge_desc * desc,bool is_mc) hclge_lookup_mac_vlan_tbl() argument
8348 hclge_add_mac_vlan_tbl(struct hclge_vport * vport,struct hclge_mac_vlan_tbl_entry_cmd * req,struct hclge_desc * mc_desc) hclge_add_mac_vlan_tbl() argument
8452 struct hclge_vport *vport; hclge_reset_umv_space() local
8468 hclge_is_umv_space_full(struct hclge_vport * vport,bool need_lock) hclge_is_umv_space_full() argument
8485 hclge_update_umv_space(struct hclge_vport * vport,bool is_free) hclge_update_umv_space() argument
8544 hclge_update_mac_list(struct hclge_vport * vport,enum HCLGE_MAC_NODE_STATE state,enum HCLGE_MAC_ADDR_TYPE mac_type,const unsigned char * addr) hclge_update_mac_list() argument
8601 struct hclge_vport *vport = hclge_get_vport(handle); hclge_add_uc_addr() local
8607 hclge_add_uc_addr_common(struct hclge_vport * vport,const unsigned char * addr) hclge_add_uc_addr_common() argument
8672 struct hclge_vport *vport = hclge_get_vport(handle); hclge_rm_uc_addr() local
8678 hclge_rm_uc_addr_common(struct hclge_vport * vport,const unsigned char * addr) hclge_rm_uc_addr_common() argument
8713 struct hclge_vport *vport = hclge_get_vport(handle); hclge_add_mc_addr() local
8719 hclge_add_mc_addr_common(struct hclge_vport * vport,const unsigned char * addr) hclge_add_mc_addr_common() argument
8777 struct hclge_vport *vport = hclge_get_vport(handle); hclge_rm_mc_addr() local
8783 hclge_rm_mc_addr_common(struct hclge_vport * vport,const unsigned char * addr) hclge_rm_mc_addr_common() argument
8826 hclge_sync_vport_mac_list(struct hclge_vport * vport,struct list_head * list,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_sync_vport_mac_list() argument
8862 hclge_unsync_vport_mac_list(struct hclge_vport * vport,struct list_head * list,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_unsync_vport_mac_list() argument
8947 hclge_update_overflow_flags(struct hclge_vport * vport,enum HCLGE_MAC_ADDR_TYPE mac_type,bool is_all_added) hclge_update_overflow_flags() argument
8964 hclge_sync_vport_mac_table(struct hclge_vport * vport,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_sync_vport_mac_table() argument
9021 hclge_need_sync_mac_table(struct hclge_vport * vport) hclge_need_sync_mac_table() argument
9039 struct hclge_vport *vport = &hdev->vport[i]; hclge_sync_mac_table() local
9071 hclge_unsync_del_list(struct hclge_vport * vport,int (* unsync)(struct hclge_vport * vport,const unsigned char * addr),bool is_del_list,struct list_head * tmp_del_list) hclge_unsync_del_list() argument
9072 hclge_unsync_del_list(struct hclge_vport * vport,int (* unsync)(struct hclge_vport * vport,const unsigned char * addr),bool is_del_list,struct list_head * tmp_del_list) hclge_unsync_del_list() argument
9100 hclge_rm_vport_all_mac_table(struct hclge_vport * vport,bool is_del_list,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_rm_vport_all_mac_table() argument
9136 hclge_uninit_vport_mac_list(struct hclge_vport * vport,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_uninit_vport_mac_list() argument
9181 struct hclge_vport *vport; hclge_uninit_mac_table() local
9236 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_mac() local
9317 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_mac_addr() local
9323 hclge_update_mac_node_for_dev_addr(struct hclge_vport * vport,const u8 * old_addr,const u8 * new_addr) hclge_update_mac_node_for_dev_addr() argument
9371 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_mac_addr() local
9449 struct hclge_vport *vport = hclge_get_vport(handle); hclge_do_ioctl() local
9513 hclge_set_vport_vlan_filter(struct hclge_vport * vport,bool enable) hclge_set_vport_vlan_filter() argument
9545 hclge_need_enable_vport_vlan_filter(struct hclge_vport * vport) hclge_need_enable_vport_vlan_filter() argument
9576 __hclge_enable_vport_vlan_filter(struct hclge_vport * vport,bool request_en) __hclge_enable_vport_vlan_filter() argument
9595 hclge_enable_vport_vlan_filter(struct hclge_vport * vport,bool request_en) hclge_enable_vport_vlan_filter() argument
9610 struct hclge_vport *vport = hclge_get_vport(handle); hclge_enable_vlan_filter() local
9703 struct hclge_vport *vport = &hdev->vport[vfid]; hclge_set_vf_vlan_common() local
9817 hclge_set_vlan_tx_offload_cfg(struct hclge_vport * vport) hclge_set_vlan_tx_offload_cfg() argument
9862 hclge_set_vlan_rx_offload_cfg(struct hclge_vport * vport) hclge_set_vlan_rx_offload_cfg() argument
9902 hclge_vlan_offload_cfg(struct hclge_vport * vport,u16 port_base_vlan_state,u16 vlan_tag,u8 qos) hclge_vlan_offload_cfg() argument
10000 struct hclge_vport *vport; hclge_init_vlan_filter() local
10044 struct hclge_vport *vport; hclge_init_vport_vlan_offload() local
10081 hclge_add_vport_vlan_table(struct hclge_vport * vport,u16 vlan_id,bool writen_to_tbl) hclge_add_vport_vlan_table() argument
10109 hclge_add_vport_all_vlan_table(struct hclge_vport * vport) hclge_add_vport_all_vlan_table() argument
10139 hclge_rm_vport_vlan_table(struct hclge_vport * vport,u16 vlan_id,bool is_write_tbl) hclge_rm_vport_vlan_table() argument
10161 hclge_rm_vport_all_vlan_table(struct hclge_vport * vport,bool is_del_list) hclge_rm_vport_all_vlan_table() argument
10189 struct hclge_vport *vport; hclge_uninit_vport_vlan_table() local
10208 struct hclge_vport *vport; hclge_restore_vport_port_base_vlan_config() local
10236 hclge_restore_vport_vlan_table(struct hclge_vport * vport) hclge_restore_vport_vlan_table() argument
10278 hclge_restore_mac_table_common(struct hclge_vport * vport) hclge_restore_mac_table_common() argument
10291 struct hclge_vport *vport = &hdev->vport[0]; hclge_restore_hw_table() local
10303 struct hclge_vport *vport = hclge_get_vport(handle); hclge_en_hw_strip_rxvtag() local
10323 hclge_set_vport_vlan_fltr_change(struct hclge_vport * vport) hclge_set_vport_vlan_fltr_change() argument
10331 hclge_update_vlan_filter_entries(struct hclge_vport * vport,u16 port_base_vlan_state,struct hclge_vlan_info * new_info,struct hclge_vlan_info * old_info) hclge_update_vlan_filter_entries() argument
10380 hclge_modify_port_base_vlan_tag(struct hclge_vport * vport,struct hclge_vlan_info * new_info,struct hclge_vlan_info * old_info) hclge_modify_port_base_vlan_tag() argument
10411 hclge_update_port_base_vlan_cfg(struct hclge_vport * vport,u16 state,struct hclge_vlan_info * vlan_info) hclge_update_port_base_vlan_cfg() argument
10452 hclge_get_port_base_vlan_state(struct hclge_vport * vport,enum hnae3_port_base_vlan_state state,u16 vlan,u8 qos) hclge_get_port_base_vlan_state() argument
10477 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_vlan_filter() local
10536 struct hclge_vport *vport; hclge_clear_vf_vlan() local
10558 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vlan_filter() local
10619 struct hclge_vport *vport; hclge_sync_vlan_fltr_state() local
10655 struct hclge_vport *vport = &hdev->vport[i]; hclge_sync_vlan_filter() local
10703 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_mtu() local
10708 hclge_set_vport_mtu(struct hclge_vport * vport,int new_mtu) hclge_set_vport_mtu() argument
10825 struct hclge_vport *vport = hclge_get_vport(handle); hclge_reset_tqp_cmd() local
10879 struct hclge_vport *vport = hclge_get_vport(handle); hclge_reset_rcb() local
10920 struct hclge_vport *vport = hclge_get_vport(handle); hclge_reset_tqp() local
10939 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_fw_version() local
11026 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_pauseparam() local
11072 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_pauseparam() local
11108 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_ksettings_an_result() local
11124 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_media_type() local
11143 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_mdix_mode() local
11219 hclge_init_nic_client_instance(struct hnae3_ae_dev * ae_dev,struct hclge_vport * vport) hclge_init_nic_client_instance() argument
11263 hclge_init_roce_client_instance(struct hnae3_ae_dev * ae_dev,struct hclge_vport * vport) hclge_init_roce_client_instance() argument
11317 struct hclge_vport *vport = &hdev->vport[0]; hclge_init_client_instance() local
11370 struct hclge_vport *vport = &hdev->vport[0]; hclge_uninit_client_instance() local
11561 struct hclge_vport *vport = &hdev->vport[i]; hclge_clear_resetting_state() local
11609 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_wol_info() local
11702 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_wol() local
12001 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_spoofchk() local
12035 struct hclge_vport *vport = hdev->vport; hclge_reset_vport_spoofchk() local
12057 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_trust() local
12082 struct hclge_vport *vport = &hdev->vport[vf]; hclge_reset_vf_rate() local
12110 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_rate() local
12137 struct hclge_vport *vport; hclge_resume_vf_rate() local
12168 struct hclge_vport *vport = hdev->vport; hclge_reset_vport_state() local
12355 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_max_channels() local
12373 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_tqps_and_rss_info() local
12382 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_rss_tc_mode_cfg() local
12412 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_channels() local
12492 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_led_id() local
12510 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_link_mode() local
12522 struct hclge_vport *vport = hclge_get_vport(handle); hclge_gro_en() local
12535 hclge_sync_vport_promisc_mode(struct hclge_vport * vport) hclge_sync_vport_promisc_mode() argument
12590 struct hclge_vport *vport; hclge_sync_promisc_mode() local
12679 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_module_eeprom() local
12707 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_link_diagnosis_info() local
12730 hclge_clear_vport_vf_info(struct hclge_vport * vport,int vfid) hclge_clear_vport_vf_info() argument
12771 struct hclge_vport *vport; hclge_clean_vport_config() local
12784 struct hclge_vport *vport = hclge_get_vport(h); hclge_get_dscp_prio() local
[all...]
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_lib.c273 /* As IDPF_MIN_Q_VEC per default vport is put aside in the in idpf_req_rel_vector_indexes()
405 * vport in idpf_intr_req()
445 * @vport: main vport struct
449 static void idpf_del_all_flow_steer_filters(struct idpf_vport *vport) in idpf_del_all_flow_steer_filters() argument
454 vport_config = vport->adapter->vport_config[vport->idx]; in idpf_del_all_flow_steer_filters()
468 * @vconfig: Vport config structure
492 * @vport_config: Vport config structure
515 * @vport: Main vport structure
523 static int idpf_del_mac_filter(struct idpf_vport *vport, in idpf_del_mac_filter() argument
547 vport->default_mac_addr, in idpf_del_mac_filter()
[all …]
H A Dxdp.c48 const struct idpf_vport *vport = rxq->q_vector->vport; in __idpf_xdp_rxq_info_init() local
57 err = __xdp_rxq_info_reg(&rxq->xdp_rxq, vport->netdev, rxq->idx, in __idpf_xdp_rxq_info_init()
63 rsrc = &vport->dflt_qv_rsrc; in __idpf_xdp_rxq_info_init()
82 rxq->xdpsqs = &vport->txqs[rsrc->xdp_txq_offset]; in __idpf_xdp_rxq_info_init()
83 rxq->num_xdp_txq = vport->num_xdp_txq; in __idpf_xdp_rxq_info_init()
152 int idpf_xdpsqs_get(const struct idpf_vport *vport) in idpf_xdpsqs_get() argument
158 if (!idpf_xdp_enabled(vport)) in idpf_xdpsqs_get()
161 timers = kvzalloc_objs(*timers, vport->num_xdp_txq); in idpf_xdpsqs_get()
165 for (u32 i = 0; i < vport->num_xdp_txq; i++) { in idpf_xdpsqs_get()
176 dev = vport->netdev; in idpf_xdpsqs_get()
[all …]
H A Didpf_ethtool.c16 struct idpf_vport *vport; in idpf_get_rx_ring_count() local
20 vport = idpf_netdev_to_vport(netdev); in idpf_get_rx_ring_count()
21 num_rxq = vport->dflt_qv_rsrc.num_rxq; in idpf_get_rx_ring_count()
42 struct idpf_vport *vport; in idpf_get_rxnfc() local
47 vport = idpf_netdev_to_vport(netdev); in idpf_get_rxnfc()
54 cmd->data = idpf_fsteer_max_rules(vport); in idpf_get_rxnfc()
72 cmd->data = idpf_fsteer_max_rules(vport); in idpf_get_rxnfc()
178 struct idpf_vport *vport; in idpf_add_flow_steer() local
183 vport = idpf_netdev_to_vport(netdev); in idpf_add_flow_steer()
184 vport_config = vport->adapter->vport_config[np->vport_idx]; in idpf_add_flow_steer()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dqos.c75 [SCHED_NODE_TYPE_VPORT] = "vport",
78 [SCHED_NODE_TYPE_VPORT_TC] = "vport TC",
99 /* Valid only if this node is associated with a vport. */
100 struct mlx5_vport *vport; member
105 /* Valid only for a TC arbiter node or vport TC arbiter. */
150 struct mlx5_vport *vport = child->vport; in esw_qos_nodes_set_parent() local
152 if (vport) in esw_qos_nodes_set_parent()
153 vport->qos.sched_node->parent = parent; in esw_qos_nodes_set_parent()
159 void mlx5_esw_qos_vport_qos_free(struct mlx5_vport *vport) in mlx5_esw_qos_vport_qos_free() argument
161 if (vport->qos.sched_nodes) { in mlx5_esw_qos_vport_qos_free()
[all …]
H A Dipsec.c5 #include <linux/mlx5/vport.h>
43 int mlx5_esw_ipsec_vf_offload_get(struct mlx5_core_dev *dev, struct mlx5_vport *vport) in mlx5_esw_ipsec_vf_offload_get() argument
53 err = esw_ipsec_vf_query_generic(dev, vport->vport, &ipsec_enabled); in mlx5_esw_ipsec_vf_offload_get()
58 vport->info.ipsec_crypto_enabled = false; in mlx5_esw_ipsec_vf_offload_get()
59 vport->info.ipsec_packet_enabled = false; in mlx5_esw_ipsec_vf_offload_get()
67 err = mlx5_vport_get_other_func_cap(dev, vport->vport, query_cap, MLX5_CAP_IPSEC); in mlx5_esw_ipsec_vf_offload_get()
72 vport->info.ipsec_crypto_enabled = in mlx5_esw_ipsec_vf_offload_get()
74 vport in mlx5_esw_ipsec_vf_offload_get()
120 esw_ipsec_vf_set_bytype(struct mlx5_core_dev * dev,struct mlx5_vport * vport,bool enable,enum esw_vport_ipsec_offload type) esw_ipsec_vf_set_bytype() argument
206 esw_ipsec_vf_offload_set_bytype(struct mlx5_eswitch * esw,struct mlx5_vport * vport,bool enable,enum esw_vport_ipsec_offload type) esw_ipsec_vf_offload_set_bytype() argument
357 mlx5_esw_ipsec_vf_crypto_offload_set(struct mlx5_eswitch * esw,struct mlx5_vport * vport,bool enable) mlx5_esw_ipsec_vf_crypto_offload_set() argument
364 mlx5_esw_ipsec_vf_packet_offload_set(struct mlx5_eswitch * esw,struct mlx5_vport * vport,bool enable) mlx5_esw_ipsec_vf_packet_offload_set() argument
[all...]
/linux/drivers/scsi/elx/libefc/
H A Defc_nport.c18 * - a vport populates associated nport
24 * - the vport is removed
226 * If this is a vport, logout of the fabric in efc_nport_shutdown()
227 * controller so that it deletes the vport in efc_nport_shutdown()
236 efc_log_debug(efc, "[%s] nport shutdown vport, send logo\n", in efc_nport_shutdown()
258 struct efc_vport *vport; in efc_vport_link_down() local
260 /* Clear the nport reference in the vport specification */ in efc_vport_link_down()
261 list_for_each_entry(vport, &efc->vport_list, list_entry) { in efc_vport_link_down()
262 if (vport->nport == nport) { in efc_vport_link_down()
264 vport->nport = NULL; in efc_vport_link_down()
[all …]
/linux/sound/isa/
H A Dsc6000.c104 char __iomem *vport;
193 static int sc6000_wait_data(char __iomem *vport) in sc6000_wait_data()
199 val = ioread8(vport + DSP_DATAVAIL); in sc6000_read()
208 static int sc6000_read(char __iomem *vport) in sc6000_write()
210 if (sc6000_wait_data(vport)) in sc6000_write()
213 return ioread8(vport + DSP_READ); in sc6000_write()
217 static int sc6000_write(struct device *devptr, char __iomem *vport, int cmd) in sc6000_write()
223 val = ioread8(vport + DSP_STATUS); in sc6000_write()
228 iowrite8(cmd, vport + DSP_COMMAND);
240 char __iomem *vport, in in sc6000_dsp_get_answer()
183 sc6000_wait_data(char __iomem * vport) sc6000_wait_data() argument
198 sc6000_read(char __iomem * vport) sc6000_read() argument
207 sc6000_write(struct device * devptr,char __iomem * vport,int cmd) sc6000_write() argument
230 sc6000_dsp_get_answer(struct device * devptr,char __iomem * vport,int command,char * data,int data_len) sc6000_dsp_get_answer() argument
257 sc6000_dsp_reset(char __iomem * vport) sc6000_dsp_reset() argument
270 sc6000_hw_cfg_write(struct device * devptr,char __iomem * vport,const int * cfg) sc6000_hw_cfg_write() argument
297 sc6000_cfg_write(struct device * devptr,char __iomem * vport,unsigned char softcfg) sc6000_cfg_write() argument
312 sc6000_setup_board(struct device * devptr,char __iomem * vport,int config) sc6000_setup_board() argument
337 sc6000_init_mss(struct device * devptr,char __iomem * vport,int config,char __iomem * vmss_port,int mss_config) sc6000_init_mss() argument
357 sc6000_hw_cfg_encode(struct device * devptr,char __iomem * vport,int * cfg,long xport,long xmpu,long xmss_port,int joystick) sc6000_hw_cfg_encode() argument
380 sc6000_init_board(struct device * devptr,char __iomem * vport,char __iomem * vmss_port,int dev) sc6000_init_board() argument
541 char __iomem *vport = (char __force __iomem *)card->private_data; snd_sc6000_free() local
557 char __iomem *vport; __snd_sc6000_probe() local
[all...]
/linux/drivers/scsi/bfa/
H A Dbfa_fcs_lport.c156 /* If vport - send completion call back */ in bfa_fcs_lport_sm_init()
157 if (port->vport) in bfa_fcs_lport_sm_init()
158 bfa_fcs_vport_stop_comp(port->vport); in bfa_fcs_lport_sm_init()
193 /* If vport - send completion call back */ in bfa_fcs_lport_sm_online()
194 if (port->vport) in bfa_fcs_lport_sm_online()
195 bfa_fcs_vport_stop_comp(port->vport); in bfa_fcs_lport_sm_online()
251 /* If vport - send completion call back */ in bfa_fcs_lport_sm_offline()
252 if (port->vport) in bfa_fcs_lport_sm_offline()
253 bfa_fcs_vport_stop_comp(port->vport); in bfa_fcs_lport_sm_offline()
298 /* If vport - send completion call back */ in bfa_fcs_lport_sm_stopping()
[all …]

12345678