Home
last modified time | relevance | path

Searched refs:vport (Results 26 – 50 of 186) sorted by relevance

12345678

/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_logmsg.h57 #define lpfc_vlog_msg(vport, level, mask, fmt, arg...) \ argument
59 dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \
60 fmt, (vport)->phba->brd_no, vport->vpi, ##arg); }
73 #define lpfc_printf_vlog(vport, level, mask, fmt, arg...) \ argument
76 if ((mask) & LOG_TRACE_EVENT && !(vport)->cfg_log_verbose) \
77 lpfc_dmp_dbg((vport)->phba); \
78 dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \
79 fmt, (vport)->phba->brd_no, vport->vpi, ##arg); \
80 } else if (!(vport)->cfg_log_verbose) \
81 lpfc_dbg_print((vport)->phba, "%d:(%d):" fmt, \
[all …]
H A Dlpfc_nvme.c95 vport = lport->vport; in lpfc_nvme_create_queue()
155 vport = lport->vport; in lpfc_nvme_delete_queue()
203 vport = ndlp->vport; in lpfc_nvme_remoteport_delete()
268 vport = axchg->ndlp->vport; in lpfc_nvme_handle_lsreq()
499 genwqe->vport = vport; in lpfc_nvme_gen_req()
676 vport = lport->vport; in lpfc_nvme_ls_req()
811 vport = lport->vport; in lpfc_nvme_ls_abort()
1316 pwqeq->vport = vport; in lpfc_nvme_prep_io_cmd()
1556 vport = lport->vport; in lpfc_nvme_fcp_io_submit()
1874 vport = lport->vport; in lpfc_nvme_fcp_abort()
[all …]
H A Dlpfc_attr.c510 localport = vport->localport; in lpfc_nvme_info_show()
1263 vport->fc_map_cnt + vport->fc_unmap_cnt); in lpfc_num_discovered_ports_show()
1306 if ((vport->fc_flag & FC_PT2PT) && (vport->fc_flag & FC_PT2PT_NO_NVME)) in lpfc_issue_lip()
2886 vport->cfg_##attr = val;\
2921 vport->cfg_##attr, vport->cfg_##attr, \
2923 vport->cfg_##attr = val;\
3740 vport->cfg_nodev_tmo = vport->cfg_devloss_tmo; in lpfc_nodev_tmo_init()
6652 pmboxq->vport = vport; in lpfc_get_stats()
6705 pmboxq->vport = vport; in lpfc_get_stats()
6792 pmboxq->vport = vport; in lpfc_reset_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dipsec.c53 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()
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->info.ipsec_packet_enabled = in mlx5_esw_ipsec_vf_offload_get()
138 ret = mlx5_vport_get_other_func_cap(dev, vport->vport, query_cap, MLX5_CAP_IPSEC); in esw_ipsec_vf_set_bytype()
160 MLX5_SET(set_hca_cap_in, hca_cap, function_id, vport->vport); in esw_ipsec_vf_set_bytype()
212 if (vport->vport == MLX5_VPORT_PF) in esw_ipsec_vf_offload_set_bytype()
216 err = esw_ipsec_vf_crypto_aux_caps_set(dev, vport->vport, enable); in esw_ipsec_vf_offload_set_bytype()
222 err = esw_ipsec_vf_set_generic(dev, vport->vport, enable); in esw_ipsec_vf_offload_set_bytype()
[all …]
H A Dlegacy.c220 struct mlx5_vport *vport; in esw_legacy_enable() local
294 dest.vport.num = MLX5_VPORT_UPLINK; in _mlx5_eswitch_set_vepa_locked()
354 if (mlx5_esw_is_manager_vport(esw, vport->vport)) in esw_legacy_vport_acl_setup()
375 if (mlx5_esw_is_manager_vport(esw, vport->vport)) in esw_legacy_vport_acl_cleanup()
383 struct mlx5_vport *vport, in mlx5_esw_query_vport_drop_stats() argument
395 if (!vport->enabled) in mlx5_esw_query_vport_drop_stats()
410 err = mlx5_query_vport_down_stats(dev, vport->vport, 1, in mlx5_esw_query_vport_drop_stats()
427 u16 vport, u16 vlan, u8 qos) in mlx5_eswitch_set_vport_vlan() argument
455 u16 vport, bool spoofchk) in mlx5_eswitch_set_vport_spoofchk() argument
476 evport->vport); in mlx5_eswitch_set_vport_spoofchk()
[all …]
H A Dindir_table.c38 u16 vport; member
233 dest.vport.num = e->vport; in mlx5_create_indir_fwd_group()
235 dest.vport.flags = MLX5_FLOW_DEST_VPORT_VHCA_ID; in mlx5_create_indir_fwd_group()
249 u16 vport, bool decap) in mlx5_esw_indir_table_entry_create() argument
276 e->vport = vport; in mlx5_esw_indir_table_entry_create()
294 vport << 16); in mlx5_esw_indir_table_entry_create()
314 u32 key = vport << 16; in mlx5_esw_indir_table_entry_lookup()
317 if (e->vport == vport) in mlx5_esw_indir_table_entry_lookup()
325 u16 vport, bool decap) in mlx5_esw_indir_table_get() argument
331 e = mlx5_esw_indir_table_entry_lookup(esw, vport); in mlx5_esw_indir_table_get()
[all …]
/openbmc/linux/drivers/scsi/elx/libefc/
H 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 …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/
H A Dqos_tracepoint.h14 TP_PROTO(const struct mlx5_vport *vport),
15 TP_ARGS(vport),
16 TP_STRUCT__entry(__string(devname, dev_name(vport->dev->device))
21 __entry->vport_id = vport->vport;
22 __entry->tsar_ix = vport->qos.esw_tsar_ix;
31 TP_ARGS(vport, bw_share, max_rate),
40 __entry->vport_id = vport->vport;
41 __entry->tsar_ix = vport->qos.esw_tsar_ix;
44 __entry->group = vport->qos.group;
54 TP_ARGS(vport, bw_share, max_rate)
[all …]
/openbmc/linux/drivers/scsi/libfc/
H A 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()
/openbmc/linux/Documentation/scsi/
H A Dscsi_fc_transport.rst57 The FC transport is now recognizing a new object - a vport. A vport is
67 on the vport, resulting in a unique <H,C,T,L> namespace for the vport.
93 a new scsi_host for the vport and link its object under the vport.
133 /sys/class/fc_vports/vport-17:0-0 the vport's fc_vport
222 Once a vport has been instantiated with the kernel/LLDD, a vport state
244 to create the vport. This state will persist until the vport is
354 vport Is the newly allocated vport object
440 vport Is vport to be enabled or disabled
457 When enabling a vport, the LLDD reinstantiates the vport on the FC
470 vport: Is vport to delete
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads.c986 dest.vport.num = rep->vport; in mlx5_eswitch_add_send_to_vport_rule()
998 dest.vport.num = rep->vport; in mlx5_eswitch_add_send_to_vport_rule()
1236 spec, vport->vport); in esw_add_fdb_peer_miss_rules()
1252 spec, vport->vport); in esw_add_fdb_peer_miss_rules()
1491 attr.vport = vport->vport; in esw_vport_tbl_put()
1507 attr.vport = vport->vport; in esw_vport_tbl_get()
2359 rep->vport = vport->vport; in mlx5_esw_offloads_rep_init()
3793 err_vport_num = vport->vport; in mlx5_esw_vports_inline_set()
3817 vport->vport, in mlx5_esw_vports_inline_set()
3825 vport->vport, in mlx5_esw_vports_inline_set()
[all …]
H A Deswitch.h181 struct mlx5_vport *vport; member
185 struct mlx5_vport *vport) in mlx5_devlink_port_init() argument
187 dl_port->vport = vport; in mlx5_devlink_port_init()
224 u16 vport; member
420 u16 vport, int link_state);
422 u16 vport, u16 vlan, u8 qos);
438 u16 vport,
530 u16 vport; member
711 vport, \
755 u16 vport; member
[all …]
H A Deswitch_offloads_termtbl.c29 hash = jhash((const void *)&dest->vport.num, in mlx5_eswitch_termtbl_hash()
30 sizeof(dest->vport.num), hash); in mlx5_eswitch_termtbl_hash()
31 hash = jhash((const void *)&dest->vport.vhca_id, in mlx5_eswitch_termtbl_hash()
32 sizeof(dest->vport.num), hash); in mlx5_eswitch_termtbl_hash()
49 dest1->vport.num != dest2->vport.num || in mlx5_eswitch_termtbl_cmp()
50 dest1->vport.vhca_id != dest2->vport.vhca_id || in mlx5_eswitch_termtbl_cmp()
142 tt->dest.vport.num = dest->vport.num; in mlx5_eswitch_termtbl_get_create()
143 tt->dest.vport.vhca_id = dest->vport.vhca_id; in mlx5_eswitch_termtbl_get_create()
144 tt->dest.vport.flags = dest->vport.flags; in mlx5_eswitch_termtbl_get_create()
326 dest[i].vport.num = tt->dest.vport.num; in mlx5_eswitch_add_termtbl_rule()
[all …]
/openbmc/linux/drivers/scsi/elx/efct/
H A Defct_xport.c392 vport->efct = efct; in efct_scsi_new_device()
875 struct efct *efct = vport ? vport->efct : NULL; in efct_issue_lip()
913 vport->efct = efct; in efct_scsi_new_vport()
914 vport->is_vport = true; in efct_scsi_new_vport()
946 vport->shost = shost; in efct_scsi_new_vport()
948 return vport; in efct_scsi_new_vport()
979 if (!vport) { in efct_vport_create()
987 fc_host_node_name(vport->shost) = vport->npiv_wwnn; in efct_vport_create()
988 fc_host_port_name(vport->shost) = vport->npiv_wwpn; in efct_vport_create()
1001 struct Scsi_Host *shost = vport ? vport->shost : NULL; in efct_vport_delete()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c1736 struct hclge_vport *vport = hdev->vport; in hclge_map_tqp() local
1800 hdev->vport = vport; in hclge_alloc_vport()
4849 struct hclge_vport *vport = hdev->vport; in hclge_init_rss_tc_mode() local
8368 vport = &hdev->vport[i]; in hclge_reset_umv_space()
9097 vport = &hdev->vport[i]; in hclge_uninit_mac_table()
9929 vport = &hdev->vport[i]; in hclge_init_vlan_filter()
9966 vport = &hdev->vport[i]; in hclge_init_vport_vlan_offload()
10112 vport = &hdev->vport[i]; in hclge_uninit_vport_vlan_table()
10459 vport = &hdev->vport[vf]; in hclge_clear_vf_vlan()
10538 vport = &hdev->vport[i]; in hclge_sync_vlan_fltr_state()
[all …]
H A Dhclge_tm.c750 struct hclge_vport *vport = hdev->vport; in hclge_tm_vport_info_update() local
975 struct hclge_vport *vport = hdev->vport; in hclge_tm_pri_q_qs_cfg_tc_base() local
1000 struct hclge_vport *vport = hdev->vport; in hclge_tm_pri_q_qs_cfg_vnet_base() local
1019 struct hclge_vport *vport = hdev->vport; in hclge_tm_pri_q_qs_cfg() local
1146 struct hclge_vport *vport = hdev->vport; in hclge_tm_pri_vnet_base_shaper_cfg() local
1185 struct hclge_vport *vport = hdev->vport; in hclge_tm_pri_tc_base_dwrr_cfg() local
1267 struct hclge_vport *vport = hdev->vport; in hclge_tm_pri_vnet_base_dwrr_cfg() local
1379 struct hclge_vport *vport = hdev->vport; in hclge_tm_schd_mode_tc_base_cfg() local
1434 struct hclge_vport *vport = hdev->vport; in hclge_tm_lvl34_schd_mode_cfg() local
1637 struct hclge_vport *vport = hdev->vport; in hclge_tm_prio_tc_info_update() local
[all …]
H A Dhclge_dcb.c72 struct hclge_dev *hdev = vport->back; in hclge_ieee_getets()
103 num_tc, hdev->vport[0].alloc_tqps); in hclge_dcb_common_validate()
256 struct hclge_dev *hdev = vport->back; in hclge_ieee_setets()
306 struct hclge_dev *hdev = vport->back; in hclge_ieee_getpfc()
330 struct hclge_dev *hdev = vport->back; in hclge_ieee_setpfc()
398 struct hclge_dev *hdev = vport->back; in hclge_ieee_setapp()
561 hdev->vport[0].alloc_tqps); in hclge_mqprio_qopt_check()
611 kinfo = &vport->nic.kinfo; in hclge_setup_tc()
667 struct hclge_vport *vport = hdev->vport; in hclge_dcb_ops_set() local
674 vport->vport_id != 0) in hclge_dcb_ops_set()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dhelper.h11 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size);
14 void esw_acl_egress_table_destroy(struct mlx5_vport *vport);
15 int esw_egress_acl_vlan_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
18 void esw_acl_egress_vlan_destroy(struct mlx5_vport *vport);
19 int esw_acl_egress_vlan_grp_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
20 void esw_acl_egress_vlan_grp_destroy(struct mlx5_vport *vport);
23 void esw_acl_ingress_table_destroy(struct mlx5_vport *vport);
24 void esw_acl_ingress_allow_rule_destroy(struct mlx5_vport *vport);
/openbmc/linux/net/openvswitch/
H A Dvport-netdev.h14 struct vport *ovs_netdev_get_vport(struct net_device *dev);
16 struct vport *ovs_netdev_link(struct vport *vport, const char *name);
17 void ovs_netdev_detach_dev(struct vport *);
22 void ovs_netdev_tunnel_destroy(struct vport *vport);
H A Ddatapath.c187 struct vport *vport; in ovs_lookup_vport() local
202 struct vport *vport; in new_vport() local
1632 struct vport *vport; in lookup_datapath() local
1789 struct vport *vport; in ovs_dp_cmd_new() local
2184 struct vport *vport; in lookup_vport() local
2219 struct vport *vport; in ovs_get_max_headroom() local
2238 struct vport *vport; in ovs_update_headroom() local
2255 struct vport *vport; in ovs_vport_cmd_new() local
2346 struct vport *vport; in ovs_vport_cmd_set() local
2401 struct vport *vport; in ovs_vport_cmd_del() local
[all …]
H A Ddatapath.h120 struct vport *input_vport;
203 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no);
205 static inline struct vport *ovs_vport_rcu(const struct datapath *dp, int port_no) in ovs_vport_rcu()
211 static inline struct vport *ovs_vport_ovsl_rcu(const struct datapath *dp, int port_no) in ovs_vport_ovsl_rcu()
217 static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_no) in ovs_vport_ovsl()
229 struct vport *vport = ovs_internal_dev_get_vport(dev); in get_dp_rcu() local
231 if (vport) in get_dp_rcu()
232 return vport->dp; in get_dp_rcu()
257 void ovs_dp_detach_port(struct vport *);
265 struct sk_buff *ovs_vport_cmd_build_info(struct vport *vport, struct net *net,
H A DMakefile17 vport.o \
18 vport-internal_dev.o \
19 vport-netdev.o
25 obj-$(CONFIG_OPENVSWITCH_VXLAN)+= vport-vxlan.o
26 obj-$(CONFIG_OPENVSWITCH_GENEVE)+= vport-geneve.o
27 obj-$(CONFIG_OPENVSWITCH_GRE) += vport-gre.o
/openbmc/linux/drivers/scsi/bfa/
H A Dbfa_fcs_lport.c1079 lport->vport = vport; in bfa_fcs_lport_attach()
1080 lport->lp_tag = (vport) ? vport->lps->bfa_tag : in bfa_fcs_lport_attach()
1096 struct bfa_fcs_vport_s *vport = lport->vport; in bfa_fcs_lport_init() local
1105 vport ? vport->vport_drv : NULL); in bfa_fcs_lport_init()
6061 bfa_trc(__vport_fcs(vport), __vport_pwwn(vport)); in bfa_fcs_vport_sm_uninit()
6082 bfa_trc(__vport_fcs(vport), __vport_pwwn(vport)); in bfa_fcs_vport_sm_created()
6127 bfa_trc(__vport_fcs(vport), __vport_pwwn(vport)); in bfa_fcs_vport_sm_offline()
6170 bfa_trc(__vport_fcs(vport), __vport_pwwn(vport)); in bfa_fcs_vport_sm_fdisc()
6511 bfa_lps_fdisc(vport->lps, vport, in bfa_fcs_vport_do_fdisc()
6513 __vport_pwwn(vport), __vport_nwwn(vport)); in bfa_fcs_vport_do_fdisc()
[all …]
/openbmc/linux/include/linux/mlx5/
H A Dvport.h58 u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport);
60 u16 vport, u8 other_vport, u8 state);
62 u16 vport, bool other, u8 *addr);
65 u16 vport, u8 *min_inline);
68 u16 vport, u8 min_inline);
70 u16 vport, const u8 *addr);
77 u16 vport, u64 node_guid);
95 u16 vport,
104 u16 vport,
118 int mlx5_query_vport_down_stats(struct mlx5_core_dev *mdev, u16 vport,
[all …]
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_netdev.c119 info->vport.oper_state = OPA_VNIC_STATE_FORWARDING; in opa_vnic_update_state()
120 info->vport.eth_link_status = OPA_VNIC_ETH_LINK_UP; in opa_vnic_update_state()
122 info->vport.oper_state = OPA_VNIC_STATE_DROP_ALL; in opa_vnic_update_state()
123 info->vport.eth_link_status = OPA_VNIC_ETH_LINK_DOWN; in opa_vnic_update_state()
145 ARRAY_SIZE(info->vport.base_mac_addr))) { in opa_vnic_process_vema_config()
148 memcpy(saddr.sa_data, info->vport.base_mac_addr, in opa_vnic_process_vema_config()
149 ARRAY_SIZE(info->vport.base_mac_addr)); in opa_vnic_process_vema_config()
153 info->vport.base_mac_addr, ETH_ALEN); in opa_vnic_process_vema_config()
217 adapter->info.vport.uc_macs_gen_count++; in opa_vnic_set_mac_addr()
239 adapter->info.vport.uc_macs_gen_count++; in opa_vnic_mac_send_event()
[all …]

12345678