Home
last modified time | relevance | path

Searched refs:vport (Results 1 – 25 of 167) sorted by relevance

1234567

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
A Dingress_ofld.c14 mlx5_eswitch_is_vf_vport(esw, vport->vport)); in esw_acl_ingress_prio_tag_enabled()
54 vport->vport, err); in esw_acl_ingress_prio_tag_create()
89 vport->vport, err); in esw_acl_ingress_mod_metadata_create()
102 vport->vport, err); in esw_acl_ingress_mod_metadata_create()
130 vport->vport, err); in esw_acl_ingress_ofld_rules_create()
140 vport->vport, err); in esw_acl_ingress_ofld_rules_create()
189 vport->vport, ret); in esw_acl_ingress_ofld_groups_create()
209 vport->vport, ret); in esw_acl_ingress_ofld_groups_create()
258 vport->ingress.acl = esw_acl_table_create(esw, vport, in esw_acl_ingress_ofld_setup()
272 "vport[%d] configure ingress rules\n", vport->vport); in esw_acl_ingress_ofld_setup()
[all …]
A Dingress_lgcy.c46 vport->vport, err); in esw_acl_ingress_lgcy_groups_create()
62 vport->vport, err); in esw_acl_ingress_lgcy_groups_create()
79 vport->vport, err); in esw_acl_ingress_lgcy_groups_create()
92 vport->vport, err); in esw_acl_ingress_lgcy_groups_create()
170 vport->vport); in esw_acl_ingress_lgcy_setup()
176 if (!vport->info.vlan && !vport->info.qos && !vport->info.spoofchk) { in esw_acl_ingress_lgcy_setup()
182 vport->ingress.acl = esw_acl_table_create(esw, vport, in esw_acl_ingress_lgcy_setup()
198 vport->vport, vport->info.vlan, vport->info.qos); in esw_acl_ingress_lgcy_setup()
206 if (vport->info.vlan || vport->info.qos) in esw_acl_ingress_lgcy_setup()
230 vport->vport, err); in esw_acl_ingress_lgcy_setup()
[all …]
A Degress_ofld.c28 struct mlx5_vport *vport, in esw_acl_egress_ofld_fwd2vport_create() argument
35 vport->vport, fwd_dest->vport.num); in esw_acl_egress_ofld_fwd2vport_create()
49 vport->vport, err); in esw_acl_egress_ofld_fwd2vport_create()
69 "vport[%d] configure prio tag egress rules\n", vport->vport); in esw_acl_egress_ofld_rules_create()
138 vport->vport, ret); in esw_acl_egress_ofld_groups_create()
181 if (!esw_acl_egress_needed(esw, vport->vport)) in esw_acl_egress_ofld_setup()
190 vport->egress.acl = esw_acl_table_create(esw, vport, in esw_acl_egress_ofld_setup()
194 vport->egress.acl = NULL; in esw_acl_egress_ofld_setup()
202 esw_debug(esw->dev, "vport[%d] configure egress rules\n", vport->vport); in esw_acl_egress_ofld_setup()
254 if (IS_ERR(vport)) in mlx5_esw_acl_egress_vport_unbond()
[all …]
A Degress_lgcy.c11 esw_acl_egress_vlan_destroy(vport); in esw_acl_egress_lgcy_rules_destroy()
43 vport->vport, err); in esw_acl_egress_lgcy_groups_create()
89 vport->vport, PTR_ERR(drop_counter)); in esw_acl_egress_lgcy_setup()
97 if (!vport->info.vlan && !vport->info.qos) { in esw_acl_egress_lgcy_setup()
102 if (!vport->egress.acl) { in esw_acl_egress_lgcy_setup()
103 vport->egress.acl = esw_acl_table_create(esw, vport, in esw_acl_egress_lgcy_setup()
108 vport->egress.acl = NULL; in esw_acl_egress_lgcy_setup()
119 vport->vport, vport->info.vlan, vport->info.qos); in esw_acl_egress_lgcy_setup()
122 err = esw_egress_acl_vlan_create(esw, vport, NULL, vport->info.vlan, in esw_acl_egress_lgcy_setup()
144 vport->vport, err); in esw_acl_egress_lgcy_setup()
[all …]
A Dhelper.c26 vport_num = vport->vport; in esw_acl_table_create()
49 struct mlx5_vport *vport, in esw_egress_acl_vlan_create() argument
57 if (vport->egress.allowed_vlan) in esw_egress_acl_vlan_create()
71 vport->egress.allowed_vlan = in esw_egress_acl_vlan_create()
78 vport->vport, err); in esw_egress_acl_vlan_create()
120 vport->vport, ret); in esw_acl_egress_vlan_grp_create()
134 vport->egress.vlan_grp = NULL; in esw_acl_egress_vlan_grp_destroy()
144 vport->egress.acl = NULL; in esw_acl_egress_table_destroy()
149 if (!vport->ingress.acl) in esw_acl_ingress_table_destroy()
153 vport->ingress.acl = NULL; in esw_acl_ingress_table_destroy()
[all …]
/linux/net/openvswitch/
A Dvport-netdev.c31 struct vport *vport; in netdev_port_receive() local
76 struct vport *ovs_netdev_link(struct vport *vport, const char *name) in ovs_netdev_link() argument
102 vport); in ovs_netdev_link()
111 return vport; in ovs_netdev_link()
114 netdev_upper_dev_unlink(vport->dev, get_dpdev(vport->dp)); in ovs_netdev_link()
127 struct vport *vport; in netdev_create() local
131 return vport; in netdev_create()
138 struct vport *vport = container_of(rcu, struct vport, rcu); in vport_netdev_free() local
145 void ovs_netdev_detach_dev(struct vport *vport) in ovs_netdev_detach_dev() argument
155 static void netdev_destroy(struct vport *vport) in netdev_destroy() argument
[all …]
A Dvport.c98 struct vport *vport; in ovs_vport_locate() local
125 struct vport *vport; in ovs_vport_alloc() local
135 if (!vport) in ovs_vport_alloc()
148 return vport; in ovs_vport_alloc()
162 void ovs_vport_free(struct vport *vport) in ovs_vport_free() argument
168 kfree(vport); in ovs_vport_free()
194 struct vport *vport; in ovs_vport_add() local
242 return vport->ops->set_options(vport, options); in ovs_vport_set_options()
253 void ovs_vport_del(struct vport *vport) in ovs_vport_del() argument
257 vport->ops->destroy(vport); in ovs_vport_del()
[all …]
A Dvport.h20 struct vport;
29 void ovs_vport_del(struct vport *);
70 struct vport { struct
126 void (*destroy)(struct vport *);
138 void ovs_vport_free(struct vport *);
151 static inline void *vport_priv(const struct vport *vport) in vport_priv() argument
153 return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN); in vport_priv()
168 return (struct vport *)((u8 *)priv - ALIGN(sizeof(struct vport), VPORT_ALIGN)); in vport_from_priv()
174 static inline const char *ovs_vport_name(struct vport *vport) in ovs_vport_name() argument
176 return vport->dev->name; in ovs_vport_name()
[all …]
A Dvport-internal_dev.c22 struct vport *vport; member
78 struct vport *vport = ovs_internal_dev_get_vport(dev); in internal_dev_destructor() local
80 ovs_vport_free(vport); in internal_dev_destructor()
125 struct vport *vport; in internal_dev_create() local
131 if (IS_ERR(vport)) { in internal_dev_create()
138 vport->dev = dev; in internal_dev_create()
139 if (!vport->dev) { in internal_dev_create()
149 dev_net_set(vport->dev, ovs_dp_get_net(vport->dp)); in internal_dev_create()
151 internal_dev->vport = vport; in internal_dev_create()
167 return vport; in internal_dev_create()
[all …]
A Dvport-geneve.c36 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
57 struct vport *vport; in geneve_tnl_create() local
78 if (IS_ERR(vport)) in geneve_tnl_create()
79 return vport; in geneve_tnl_create()
88 ovs_vport_free(vport); in geneve_tnl_create()
101 return vport; in geneve_tnl_create()
108 struct vport *vport; in geneve_create() local
111 if (IS_ERR(vport)) in geneve_create()
[all …]
A Dvport-vxlan.c22 static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb) in vxlan_get_options() argument
51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts() argument
76 struct vport *vport; in vxlan_tnl_create() local
101 if (IS_ERR(vport)) in vxlan_tnl_create()
102 return vport; in vxlan_tnl_create()
117 ovs_vport_free(vport); in vxlan_tnl_create()
125 ovs_vport_free(vport); in vxlan_tnl_create()
130 return vport; in vxlan_tnl_create()
137 struct vport *vport; in vxlan_create() local
140 if (IS_ERR(vport)) in vxlan_create()
[all …]
A Dvport-gre.c43 struct vport *vport; in gre_tnl_create() local
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()
67 return vport; in gre_tnl_create()
72 struct vport *vport; in gre_create() local
74 vport = gre_tnl_create(parms); in gre_create()
75 if (IS_ERR(vport)) in gre_create()
76 return vport; in gre_create()
[all …]
A Ddp_notify.c14 static void dp_detach_port_notify(struct vport *vport) in dp_detach_port_notify() argument
19 dp = vport->dp; in dp_detach_port_notify()
22 ovs_dp_detach_port(vport); in dp_detach_port_notify()
44 struct vport *vport; in ovs_dp_notify_wq() local
48 if (vport->ops->type == OVS_VPORT_TYPE_INTERNAL) in ovs_dp_notify_wq()
51 if (!(netif_is_ovs_port(vport->dev))) in ovs_dp_notify_wq()
52 dp_detach_port_notify(vport); in ovs_dp_notify_wq()
64 struct vport *vport = NULL; in dp_device_event() local
67 vport = ovs_netdev_get_vport(dev); in dp_device_event()
69 if (!vport) in dp_device_event()
[all …]
/linux/drivers/scsi/lpfc/
A Dlpfc_vport.c144 pmb->vport = vport; in lpfc_vport_sparm()
170 memcpy(&vport->fc_nodename, &vport->fc_sparam.nodeName, in lpfc_vport_sparm()
172 memcpy(&vport->fc_portname, &vport->fc_sparam.portName, in lpfc_vport_sparm()
269 vport->port_state, vport->fc_flag, in lpfc_discovery_wait()
279 vport->port_state, vport->fc_flag, in lpfc_discovery_wait()
290 vport->port_state, vport->fc_flag, in lpfc_discovery_wait()
346 if (!vport) { in lpfc_vport_create()
354 vport->vpi = vpi; in lpfc_vport_create()
376 memcpy(&vport->fc_sparam.portName, vport->fc_portname.u.wwn, 8); in lpfc_vport_create()
377 memcpy(&vport->fc_sparam.nodeName, vport->fc_nodename.u.wwn, 8); in lpfc_vport_create()
[all …]
A Dlpfc_els.c316 elsiocb->vport = vport; in lpfc_prep_els_iocb()
401 mbox->vport = vport; in lpfc_issue_fabric_reglogin()
422 mbox->vport = vport; in lpfc_issue_fabric_reglogin()
520 mboxq->vport = vport; in lpfc_issue_reg_vfi()
572 mboxq->vport = vport; in lpfc_issue_unreg_vfi()
939 mbox->vport = vport; in lpfc_cmpl_els_flogi_nport()
3214 mbox->vport = vport; in lpfc_reg_fab_ctrl_node()
4429 mbox->vport = vport; in lpfc_link_reset()
5262 mbox->vport = vport; in lpfc_cmpl_els_rsp()
8257 mbox->vport = vport; in lpfc_els_rcv_rls()
[all …]
A Dlpfc_hbadisc.c138 vport = ndlp->vport; in lpfc_terminate_rport_io()
163 vport = ndlp->vport; in lpfc_dev_loss_tmo_callbk()
401 vport = ndlp->vport; in lpfc_dev_loss_tmo_handler()
1222 mb->vport = vport; in lpfc_linkdown()
1237 mb->vport = vport; in lpfc_linkdown()
3209 mboxq->vport = vport; in lpfc_issue_init_vpi()
3954 mbox->vport = vport; in lpfc_mbx_unreg_vpi()
4968 ndlp->vport = vport; in lpfc_initialize_node()
5456 mbox->vport = vport; in lpfc_unreg_all_rpis()
5486 mbox->vport = vport; in lpfc_unreg_default_rpis()
[all …]
A Dlpfc_ct.c157 struct lpfc_vport *vport = ndlp->vport; in lpfc_ct_reject_event() local
250 cmdiocbq->vport = vport; in lpfc_ct_reject_event()
657 geniocb->vport = vport; in lpfc_gen_req()
939 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gid_ft() local
1009 vport->fc_flag, vport->fc_rscn_id_cnt); in lpfc_cmpl_ct_cmd_gid_ft()
1155 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gid_pt() local
1368 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gff_id() local
1516 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gft_id() local
1615 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct() local
1688 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_rft_id() local
[all …]
A Dlpfc_nportdisc.c377 vport->fc_flag); in lpfc_rcv_plogi()
499 link_mbox->vport = vport; in lpfc_rcv_plogi()
509 lpfc_can_disctmo(vport); in lpfc_rcv_plogi()
546 login_mbox->vport = vport; in lpfc_rcv_plogi()
656 vport = mboxq->vport; in lpfc_mbx_cmpl_resume_rpi()
1008 if (vport->cfg_use_adisc && ((vport->fc_flag & FC_RSCN_MODE) || in lpfc_disc_set_adisc()
1064 pmb->vport = vport; in lpfc_release_rpi()
1094 phba = vport->phba; in lpfc_disc_illegal()
1416 mbox->vport = vport; in lpfc_cmpl_plogi_plogi_issue()
1457 mbox->vport = vport; in lpfc_cmpl_plogi_plogi_issue()
[all …]
A Dlpfc_nvme.c95 vport = lport->vport; in lpfc_nvme_create_queue()
150 vport = lport->vport; in lpfc_nvme_delete_queue()
198 vport = ndlp->vport; in lpfc_nvme_remoteport_delete()
264 vport = axchg->ndlp->vport; in lpfc_nvme_handle_lsreq()
489 genwqe->vport = vport; in lpfc_nvme_gen_req()
664 vport = lport->vport; in lpfc_nvme_ls_req()
798 vport = lport->vport; in lpfc_nvme_ls_abort()
1271 pwqeq->vport = vport; in lpfc_nvme_prep_io_cmd()
1506 vport = lport->vport; in lpfc_nvme_fcp_io_submit()
1795 vport = lport->vport; in lpfc_nvme_fcp_abort()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_mbx.c35 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf()
126 dest_vfid = (u8)vport->vport_id; in hclge_inform_reset_assert_to_vf()
168 struct hclge_vport *vport) in hclge_get_ring_chain_from_mbx() argument
184 vport->nic.kinfo.rss_size - 1); in hclge_get_ring_chain_from_mbx()
375 vport->port_base_vlan_cfg.state; in hclge_set_vf_vlan_cfg()
392 ret = hclge_vport_start(vport); in hclge_set_vf_alive()
394 hclge_vport_stop(vport); in hclge_set_vf_alive()
700 struct hclge_vport *vport; in hclge_mbx_handler() local
729 vport = &hdev->vport[req->mbx_src_vfid]; in hclge_mbx_handler()
796 ret = hclge_reset_vf(vport); in hclge_mbx_handler()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Deswitch.c224 dest.vport.num = vport; in __esw_fdb_set_vport_rule()
285 u16 vport = vaddr->vport; in esw_add_uc_addr() local
317 u16 vport = vaddr->vport; in esw_del_uc_addr() local
356 vport_num = vport->vport; in update_allmulti_vports()
395 u16 vport = vaddr->vport; in esw_add_mc_addr() local
435 u16 vport = vaddr->vport; in esw_del_mc_addr() local
584 addr->vport = vport->vport; in esw_update_vport_addr_list()
619 mac, vport->vport); in esw_update_vport_mc_promisc()
622 addr->vport = vport->vport; in esw_update_vport_mc_promisc()
681 vport->vport, in esw_update_vport_rx_mode()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Ddevlink_port.c73 struct mlx5_vport *vport; in mlx5_esw_offloads_devlink_port_register() local
81 if (IS_ERR(vport)) in mlx5_esw_offloads_devlink_port_register()
82 return PTR_ERR(vport); in mlx5_esw_offloads_devlink_port_register()
98 vport->dl_port = dl_port; in mlx5_esw_offloads_devlink_port_register()
116 if (IS_ERR(vport)) in mlx5_esw_offloads_devlink_port_unregister()
126 vport->dl_port = NULL; in mlx5_esw_offloads_devlink_port_unregister()
134 return IS_ERR(vport) ? ERR_CAST(vport) : vport->dl_port; in mlx5_esw_offloads_devlink_port()
149 if (IS_ERR(vport)) in mlx5_esw_devlink_sf_port_register()
150 return PTR_ERR(vport); in mlx5_esw_devlink_sf_port_register()
180 if (IS_ERR(vport)) in mlx5_esw_devlink_sf_port_unregister()
[all …]
A Dqos.c84 MLX5_SET(vport_element, vport_elem, vport_number, vport->vport); in esw_qos_vport_config()
91 vport->vport, err); in esw_qos_vport_config()
317 if (!vport->enabled || !vport->qos.enabled || in esw_qos_set_group_max_rate()
318 vport->qos.group != group || vport->qos.max_rate) in esw_qos_set_group_max_rate()
345 MLX5_SET(vport_element, vport_elem, vport_number, vport->vport); in esw_qos_vport_create_sched_element()
356 vport->vport, err); in esw_qos_vport_create_sched_element()
400 vport->vport); in esw_qos_update_group_scheduling_element()
413 if (!vport->enabled) in esw_qos_vport_update_group()
638 WARN(vport->qos.group && vport->qos.group != esw->qos.group0, in mlx5_esw_qos_vport_disable()
646 vport->vport, err); in mlx5_esw_qos_vport_disable()
[all …]
/linux/sound/isa/
A Dsc6000.c200 if (sc6000_wait_data(vport)) in sc6000_read()
240 int val = sc6000_read(vport); in sc6000_dsp_get_answer()
320 if (sc6000_read(vport) < 0) { in sc6000_setup_board()
385 err = sc6000_dsp_reset(vport); in sc6000_init_board()
413 if (sc6000_read(vport) < 0) in sc6000_init_board()
431 sc6000_dsp_reset(vport); in sc6000_init_board()
435 sc6000_write(vport, 0x02); in sc6000_init_board()
436 sc6000_dsp_reset(vport); in sc6000_init_board()
536 if (vport) in snd_sc6000_free()
550 char __iomem *vport; in snd_sc6000_probe() local
[all …]
/linux/drivers/scsi/elx/libefc/
A Defc_nport.c604 nport = efc_nport_alloc(domain, vport->wwpn, vport->wwnn, vport->fc_id, in efc_vport_nport_alloc()
605 vport->enable_ini, vport->enable_tgt); in efc_vport_nport_alloc()
668 if (!vport) { in efc_nport_vport_new()
692 if (vport->wwpn == wwpn && vport->wwnn == wwnn) { in efc_nport_vport_del()
694 kfree(vport); in efc_nport_vport_del()
729 kfree(vport); in efc_vport_del_all()
759 vport = kzalloc(sizeof(*vport), GFP_ATOMIC); in efc_vport_create_spec()
760 if (!vport) { in efc_vport_create_spec()
765 vport->wwnn = wwnn; in efc_vport_create_spec()
766 vport->wwpn = wwpn; in efc_vport_create_spec()
[all …]

Completed in 104 milliseconds

1234567