Home
last modified time | relevance | path

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

123456

/Linux-v5.4/net/openvswitch/
Dvport-netdev.c31 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()
51 ovs_vport_receive(vport, skb, skb_tunnel_info(skb)); in netdev_port_receive()
71 struct vport *local; in get_dpdev()
77 struct vport *ovs_netdev_link(struct vport *vport, const char *name) in ovs_netdev_link() argument
81 vport->dev = dev_get_by_name(ovs_dp_get_net(vport->dp), name); in ovs_netdev_link()
82 if (!vport->dev) { in ovs_netdev_link()
87 if (vport->dev->flags & IFF_LOOPBACK || in ovs_netdev_link()
88 (vport->dev->type != ARPHRD_ETHER && in ovs_netdev_link()
[all …]
Dvport.c94 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, bucket, hash_node) in ovs_vport_locate()
100 if (!strcmp(name, ovs_vport_name(vport)) && in ovs_vport_locate()
101 net_eq(ovs_dp_get_net(vport->dp), net)) in ovs_vport_locate()
102 return vport; in ovs_vport_locate()
118 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, in ovs_vport_alloc()
121 struct vport *vport; in ovs_vport_alloc() local
124 alloc_size = sizeof(struct vport); in ovs_vport_alloc()
130 vport = kzalloc(alloc_size, GFP_KERNEL); in ovs_vport_alloc()
[all …]
Dvport.h20 struct vport;
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_set_options(struct vport *, struct nlattr *options);
36 int ovs_vport_get_options(const struct vport *, struct sk_buff *);
38 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
39 int ovs_vport_get_upcall_portids(const struct vport *, struct sk_buff *);
40 u32 ovs_vport_find_upcall_portid(const struct vport *, struct sk_buff *);
[all …]
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
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()
79 return vport; in geneve_tnl_create()
81 geneve_port = geneve_vport(vport); in geneve_tnl_create()
[all …]
Dvport-internal_dev.c22 struct vport *vport; member
40 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit()
81 struct vport *vport = ovs_internal_dev_get_vport(dev); in internal_dev_destructor() local
83 ovs_vport_free(vport); in internal_dev_destructor()
156 static struct vport *internal_dev_create(const struct vport_parms *parms) in internal_dev_create()
158 struct vport *vport; in internal_dev_create() local
163 vport = ovs_vport_alloc(0, &ovs_internal_vport_ops, parms); in internal_dev_create()
164 if (IS_ERR(vport)) { in internal_dev_create()
165 err = PTR_ERR(vport); in internal_dev_create()
171 vport->dev = dev; in internal_dev_create()
[all …]
Dvport-vxlan.c22 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()
106 err = vxlan_configure_exts(vport, a, &conf); in vxlan_tnl_create()
108 ovs_vport_free(vport); in vxlan_tnl_create()
[all …]
Dvport-gre.c39 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()
67 return vport; in gre_tnl_create()
70 static struct vport *gre_create(const struct vport_parms *parms) in gre_create()
72 struct vport *vport; in gre_create() local
[all …]
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()
20 notify = ovs_vport_cmd_build_info(vport, ovs_dp_get_net(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
47 hlist_for_each_entry_safe(vport, n, &dp->ports[i], dp_hash_node) { in ovs_dp_notify_wq()
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
[all …]
Ddatapath.c123 static struct vport *new_vport(const struct vport_parms *);
136 struct vport *vport = ovs_vport_ovsl_rcu(dp, OVSP_LOCAL); in ovs_dp_name() local
137 return ovs_vport_name(vport); in ovs_dp_name()
142 struct vport *local; in get_dpifindex()
176 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no) in ovs_lookup_vport()
178 struct vport *vport; in ovs_lookup_vport() local
182 hlist_for_each_entry_rcu(vport, head, dp_hash_node) { in ovs_lookup_vport()
183 if (vport->port_no == port_no) in ovs_lookup_vport()
184 return vport; in ovs_lookup_vport()
190 static struct vport *new_vport(const struct vport_parms *parms) in new_vport()
[all …]
/Linux-v5.4/drivers/scsi/lpfc/
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()
144 pmb->vport = vport; in lpfc_vport_sparm()
148 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT | LOG_VPORT, in lpfc_vport_sparm()
157 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT | LOG_VPORT, in lpfc_vport_sparm()
169 memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm)); in lpfc_vport_sparm()
[all …]
Dlpfc_els.c53 static void lpfc_fabric_abort_vport(struct lpfc_vport *vport);
54 static int lpfc_issue_els_fdisc(struct lpfc_vport *vport,
84 lpfc_els_chk_latt(struct lpfc_vport *vport) in lpfc_els_chk_latt() argument
86 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_els_chk_latt()
87 struct lpfc_hba *phba = vport->phba; in lpfc_els_chk_latt()
90 if (vport->port_state >= LPFC_VPORT_READY || in lpfc_els_chk_latt()
103 lpfc_printf_vlog(vport, KERN_ERR, LOG_DISCOVERY, in lpfc_els_chk_latt()
115 vport->fc_flag |= FC_ABORT_DISCOVERY; in lpfc_els_chk_latt()
119 lpfc_issue_clear_la(phba, vport); in lpfc_els_chk_latt()
153 lpfc_prep_els_iocb(struct lpfc_vport *vport, uint8_t expectRsp, in lpfc_prep_els_iocb() argument
[all …]
Dlpfc_ct.c316 lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, in lpfc_gen_req() argument
323 struct lpfc_hba *phba = vport->phba; in lpfc_gen_req()
379 lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS, in lpfc_gen_req()
383 vport->port_state); in lpfc_gen_req()
386 geniocb->vport = vport; in lpfc_gen_req()
409 lpfc_ct_cmd(struct lpfc_vport *vport, struct lpfc_dmabuf *inmp, in lpfc_ct_cmd() argument
415 struct lpfc_hba *phba = vport->phba; in lpfc_ct_cmd()
434 status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp, 0, in lpfc_ct_cmd()
460 lpfc_prep_node_fc4type(struct lpfc_vport *vport, uint32_t Did, uint8_t fc4_type) in lpfc_prep_node_fc4type() argument
464 if ((vport->port_type != LPFC_NPIV_PORT) || in lpfc_prep_node_fc4type()
[all …]
Dlpfc_nportdisc.c54 lpfc_check_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_adisc() argument
75 lpfc_check_sparm(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_sparm() argument
78 volatile struct serv_parm *hsp = &vport->fc_sparam; in lpfc_check_sparm()
157 lpfc_printf_vlog(vport, KERN_ERR, LOG_DISCOVERY, in lpfc_check_sparm()
223 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, in lpfc_els_abort()
283 lpfc_rcv_plogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_rcv_plogi() argument
286 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_rcv_plogi()
287 struct lpfc_hba *phba = vport->phba; in lpfc_rcv_plogi()
304 lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS, in lpfc_rcv_plogi()
308 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, in lpfc_rcv_plogi()
[all …]
Dlpfc_hbadisc.c72 static void lpfc_disc_flush_list(struct lpfc_vport *vport);
96 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_RPORT, in lpfc_terminate_rport_io()
101 lpfc_sli_abort_iocb(ndlp->vport, in lpfc_terminate_rport_io()
115 struct lpfc_vport *vport; in lpfc_dev_loss_tmo_callbk() local
128 vport = ndlp->vport; in lpfc_dev_loss_tmo_callbk()
129 phba = vport->phba; in lpfc_dev_loss_tmo_callbk()
131 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT, in lpfc_dev_loss_tmo_callbk()
135 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE, in lpfc_dev_loss_tmo_callbk()
143 if (vport->load_flag & FC_UNLOADING) { in lpfc_dev_loss_tmo_callbk()
159 lpfc_printf_vlog(vport, KERN_ERR, LOG_NODE, in lpfc_dev_loss_tmo_callbk()
[all …]
Dlpfc_nvme.c219 struct lpfc_vport *vport; in lpfc_nvme_create_queue() local
227 vport = lport->vport; in lpfc_nvme_create_queue()
248 lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME, in lpfc_nvme_create_queue()
276 struct lpfc_vport *vport; in lpfc_nvme_delete_queue() local
282 vport = lport->vport; in lpfc_nvme_delete_queue()
284 lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME, in lpfc_nvme_delete_queue()
295 lpfc_printf_vlog(lport->vport, KERN_INFO, LOG_NVME, in lpfc_nvme_localport_delete()
300 if (lport->vport->localport) in lpfc_nvme_localport_delete()
319 struct lpfc_vport *vport; in lpfc_nvme_remoteport_delete() local
326 vport = ndlp->vport; in lpfc_nvme_remoteport_delete()
[all …]
Dlpfc_attr.c150 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_enable_fip_show() local
151 struct lpfc_hba *phba = vport->phba; in lpfc_enable_fip_show()
164 struct lpfc_vport *vport = shost_priv(shost); in lpfc_nvme_info_show() local
165 struct lpfc_hba *phba = vport->phba; in lpfc_nvme_info_show()
181 if (!(vport->cfg_enable_fc4_type & LPFC_ENABLE_NVME)) { in lpfc_nvme_info_show()
189 wwn_to_u64(vport->fc_portname.u.wwn)); in lpfc_nvme_info_show()
207 wwn_to_u64(vport->fc_portname.u.wwn), in lpfc_nvme_info_show()
208 wwn_to_u64(vport->fc_nodename.u.wwn), in lpfc_nvme_info_show()
339 localport = vport->localport; in lpfc_nvme_info_show()
343 wwn_to_u64(vport->fc_portname.u.wwn)); in lpfc_nvme_info_show()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c54 u16 vport; member
83 static int arm_vport_context_events_cmd(struct mlx5_core_dev *dev, u16 vport, in arm_vport_context_events_cmd() argument
93 MLX5_SET(modify_nic_vport_context_in, in, vport_number, vport); in arm_vport_context_events_cmd()
114 static int modify_esw_vport_context_cmd(struct mlx5_core_dev *dev, u16 vport, in modify_esw_vport_context_cmd() argument
121 MLX5_SET(modify_esw_vport_context_in, in, vport_number, vport); in modify_esw_vport_context_cmd()
126 int mlx5_eswitch_modify_esw_vport_context(struct mlx5_eswitch *esw, u16 vport, in mlx5_eswitch_modify_esw_vport_context() argument
129 return modify_esw_vport_context_cmd(esw->dev, vport, in, inlen); in mlx5_eswitch_modify_esw_vport_context()
132 static int query_esw_vport_context_cmd(struct mlx5_core_dev *dev, u16 vport, in query_esw_vport_context_cmd() argument
139 MLX5_SET(modify_esw_vport_context_in, in, vport_number, vport); in query_esw_vport_context_cmd()
144 int mlx5_eswitch_query_esw_vport_context(struct mlx5_eswitch *esw, u16 vport, in mlx5_eswitch_query_esw_vport_context() argument
[all …]
Deswitch.h114 int vport; member
253 struct mlx5_vport *vport);
255 struct mlx5_vport *vport);
257 struct mlx5_vport *vport);
259 struct mlx5_vport *vport);
261 struct mlx5_vport *vport);
263 struct mlx5_vport *vport);
265 struct mlx5_vport *vport);
275 u16 vport, u8 mac[ETH_ALEN]);
277 u16 vport, int link_state);
[all …]
Deswitch_offloads.c106 attr->in_rep->vport)); in mlx5_eswitch_set_rule_source_port()
117 MLX5_SET(fte_match_set_misc, misc, source_port, attr->in_rep->vport); in mlx5_eswitch_set_rule_source_port()
134 attr->in_rep->vport == MLX5_VPORT_UPLINK) in mlx5_eswitch_set_rule_source_port()
185 dest[i].vport.num = attr->dests[j].rep->vport; in mlx5_eswitch_add_offloaded_rule()
186 dest[i].vport.vhca_id = in mlx5_eswitch_add_offloaded_rule()
189 dest[i].vport.flags |= in mlx5_eswitch_add_offloaded_rule()
194 dest[i].vport.flags |= MLX5_FLOW_DEST_VPORT_REFORMAT_ID; in mlx5_eswitch_add_offloaded_rule()
195 dest[i].vport.pkt_reformat = in mlx5_eswitch_add_offloaded_rule()
272 dest[i].vport.num = attr->dests[i].rep->vport; in mlx5_eswitch_add_fwd_rule()
273 dest[i].vport.vhca_id = in mlx5_eswitch_add_fwd_rule()
[all …]
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mbx.c15 static int hclge_gen_resp_to_vf(struct hclge_vport *vport, in hclge_gen_resp_to_vf() argument
21 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf()
59 static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len, in hclge_send_mbx_msg() argument
63 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg()
86 int hclge_inform_reset_assert_to_vf(struct hclge_vport *vport) in hclge_inform_reset_assert_to_vf() argument
88 struct hclge_dev *hdev = vport->back; in hclge_inform_reset_assert_to_vf()
93 dest_vfid = (u8)vport->vport_id; in hclge_inform_reset_assert_to_vf()
105 return hclge_send_mbx_msg(vport, msg_data, sizeof(msg_data), in hclge_inform_reset_assert_to_vf()
135 struct hclge_vport *vport) in hclge_get_ring_chain_from_mbx() argument
150 hclge_get_queue_id(vport->nic.kinfo.tqp[req->msg[4]]); in hclge_get_ring_chain_from_mbx()
[all …]
Dhclge_tm.c514 static void hclge_tm_vport_tc_info_update(struct hclge_vport *vport) in hclge_tm_vport_tc_info_update() argument
516 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_tm_vport_tc_info_update()
517 struct hclge_dev *hdev = vport->back; in hclge_tm_vport_tc_info_update()
524 kinfo->num_tc = vport->vport_id ? 1 : in hclge_tm_vport_tc_info_update()
525 min_t(u16, vport->alloc_tqps, hdev->tm_info.num_tc); in hclge_tm_vport_tc_info_update()
526 vport->qs_offset = (vport->vport_id ? hdev->tm_info.num_tc : 0) + in hclge_tm_vport_tc_info_update()
527 (vport->vport_id ? (vport->vport_id - 1) : 0); in hclge_tm_vport_tc_info_update()
530 vport->alloc_tqps / kinfo->num_tc); in hclge_tm_vport_tc_info_update()
554 vport->dwrr = 100; /* 100 percent as init */ in hclge_tm_vport_tc_info_update()
555 vport->alloc_rss_size = kinfo->rss_size; in hclge_tm_vport_tc_info_update()
[all …]
Dhclge_main.c539 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_tqps_update_stats() local
540 struct hclge_dev *hdev = vport->back; in hclge_tqps_update_stats()
677 handle = &hdev->vport[0].nic; in hclge_update_stats_for_all()
696 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_update_stats() local
697 struct hclge_dev *hdev = vport->back; in hclge_update_stats()
725 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_sset_count() local
726 struct hclge_dev *hdev = vport->back; in hclge_get_sset_count()
800 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_stats() local
801 struct hclge_dev *hdev = vport->back; in hclge_get_stats()
812 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_mac_stat() local
[all …]
/Linux-v5.4/sound/isa/
Dsc6000.c186 static int sc6000_wait_data(char __iomem *vport) in sc6000_wait_data() argument
192 val = ioread8(vport + DSP_DATAVAIL); in sc6000_wait_data()
201 static int sc6000_read(char __iomem *vport) in sc6000_read() argument
203 if (sc6000_wait_data(vport)) in sc6000_read()
206 return ioread8(vport + DSP_READ); in sc6000_read()
210 static int sc6000_write(char __iomem *vport, int cmd) in sc6000_write() argument
216 val = ioread8(vport + DSP_STATUS); in sc6000_write()
221 iowrite8(cmd, vport + DSP_COMMAND); in sc6000_write()
232 static int sc6000_dsp_get_answer(char __iomem *vport, int command, in sc6000_dsp_get_answer() argument
237 if (sc6000_write(vport, command)) { in sc6000_dsp_get_answer()
[all …]
/Linux-v5.4/Documentation/scsi/
Dscsi_fc_transport.txt50 The FC transport is now recognizing a new object - a vport. A vport is
53 be specified for the vport, with FCP_Initiator being the primary role
57 to create vports. The transport will create the vport object within the
60 on the vport, resulting in a unique <H,C,T,L> namespace for the vport.
70 up to an administrative entity controlling the vport. For example,
72 utility would be responsible for creating wwpn/wwnn's for the vport,
82 transport creates the vport object and places it under the scsi_host
84 a new scsi_host for the vport and link its object under the vport.
87 allow the parent of the vport to be something other than the scsi_host.
89 device tree. If the vport's parent is not the physical port's scsi_host,
[all …]
/Linux-v5.4/drivers/scsi/libfc/
Dfc_npiv.c21 struct fc_lport *libfc_vport_create(struct fc_vport *vport, int privsize) in libfc_vport_create() argument
23 struct Scsi_Host *shost = vport_to_shost(vport); in libfc_vport_create()
31 vn_port->vport = vport; in libfc_vport_create()
32 vport->dd_data = vn_port; in libfc_vport_create()
94 struct fc_vport *vport = vn_port->vport; in __fc_vport_setlink() local
101 fc_vport_set_state(vport, FC_VPORT_INITIALIZING); in __fc_vport_setlink()
104 fc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP); in __fc_vport_setlink()
108 fc_vport_set_state(vport, FC_VPORT_LINKDOWN); in __fc_vport_setlink()
119 struct fc_vport *vport = vn_port->vport; in fc_vport_setlink() local
120 struct Scsi_Host *shost = vport_to_shost(vport); in fc_vport_setlink()

123456