Symbol: vport
arch/mips/include/asm/octeon/cvmx-iob-defs.h
700
uint64_t vport:6;
arch/mips/include/asm/octeon/cvmx-iob-defs.h
704
uint64_t vport:6;
drivers/infiniband/hw/mana/qp.c
37
req->vport = mpc->port_handle;
drivers/infiniband/hw/mana/qp.c
71
req->vport, default_rxobj);
drivers/infiniband/hw/mlx5/counters.c
363
dev->port[port_num].rep->vport == MLX5_VPORT_UPLINK)
drivers/infiniband/hw/mlx5/counters.c
373
dev->port[port_num].rep->vport);
drivers/infiniband/hw/mlx5/fs.c
1490
rep->vport));
drivers/infiniband/hw/mlx5/fs.c
1500
MLX5_SET(fte_match_set_misc, misc, source_port, rep->vport);
drivers/infiniband/hw/mlx5/fs.c
1875
u16 *vport,
drivers/infiniband/hw/mlx5/fs.c
1901
*vport = dev->port[ib_port - 1].rep->vport;
drivers/infiniband/hw/mlx5/fs.c
1921
u16 vport = 0;
drivers/infiniband/hw/mlx5/fs.c
1977
&vport_idx, &vport,
drivers/infiniband/hw/mlx5/fs.c
2042
ft_attr.vport = vport;
drivers/infiniband/hw/mlx5/ib_rep.c
136
if (rep->vport == MLX5_VPORT_UPLINK) {
drivers/infiniband/hw/mlx5/ib_rep.c
157
if (rep->vport == MLX5_VPORT_UPLINK && !new_uplink)
drivers/infiniband/hw/mlx5/ib_rep.c
189
rep->vport),
drivers/infiniband/hw/mlx5/ib_rep.c
237
if (rep->vport == MLX5_VPORT_UPLINK && !mlx5_lag_is_mpesw(mdev))
drivers/infiniband/hw/mlx5/ib_rep.c
256
if (rep->vport == MLX5_VPORT_UPLINK) {
drivers/infiniband/hw/mlx5/ib_rep.c
27
ndev = mlx5_ib_get_rep_netdev(rep->esw, rep->vport);
drivers/infiniband/hw/mlx5/ib_rep.c
39
return mlx5_lag_demux_rule_add(rep_dev, rep->vport, vport_index);
drivers/infiniband/hw/mlx5/main.c
147
if (upper == ndev && port->rep->vport == MLX5_VPORT_UPLINK) {
drivers/infiniband/hw/mlx5/main.c
152
if (upper && port->rep->vport == MLX5_VPORT_UPLINK)
drivers/infiniband/hw/mlx5/main.c
1628
u8 op_mod, u16 vport,
drivers/infiniband/hw/mlx5/main.c
1636
err = mlx5_query_vport_max_tx_speed(mdev, op_mod, vport, other_vport,
drivers/infiniband/hw/mlx5/main.c
1697
if (rep->vport == MLX5_VPORT_UPLINK) {
drivers/infiniband/hw/mlx5/main.c
1709
rep->vport, true, speed, dev,
drivers/infiniband/hw/mlx5/main.c
197
if (port->rep && port->rep->vport == MLX5_VPORT_UPLINK) {
drivers/infiniband/hw/mlx5/main.c
3678
if (port->rep && port->rep->vport ==
drivers/infiniband/hw/mlx5/main.c
893
u16 vport = mlx5_eswitch_manager_vport(mdev);
drivers/infiniband/hw/mlx5/main.c
896
vport);
drivers/infiniband/hw/mlx5/std_types.c
128
info->vport = rep->vport;
drivers/infiniband/hw/mlx5/std_types.c
131
if (rep->vport != MLX5_VPORT_UPLINK) {
drivers/infiniband/hw/mlx5/std_types.c
132
err = fill_vport_vhca_id(mdev, rep->vport, info);
drivers/infiniband/hw/mlx5/std_types.c
140
err = fill_vport_icm_addr(mdev, rep->vport, info);
drivers/infiniband/hw/mlx5/std_types.c
146
rep->esw, rep->vport);
drivers/infiniband/hw/mlx5/std_types.c
29
static int fill_vport_icm_addr(struct mlx5_core_dev *mdev, u16 vport,
drivers/infiniband/hw/mlx5/std_types.c
42
if (vport == MLX5_VPORT_UPLINK) {
drivers/infiniband/hw/mlx5/std_types.c
50
MLX5_SET(query_esw_vport_context_in, in, vport_number, vport);
drivers/infiniband/hw/mlx5/std_types.c
83
static int fill_vport_vhca_id(struct mlx5_core_dev *mdev, u16 vport,
drivers/infiniband/hw/mlx5/std_types.c
86
int err = mlx5_vport_get_vhca_id(mdev, vport, &info->vport_vhca_id);
drivers/net/ethernet/fungible/funeth/funeth_main.c
1193
unsigned int vport)
drivers/net/ethernet/fungible/funeth/funeth_main.c
1195
if (!ed->vport_info || vport >= ed->num_vports)
drivers/net/ethernet/fungible/funeth/funeth_main.c
1198
return ed->vport_info + vport;
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h
240
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
100
if (num_tc > hdev->vport[0].alloc_tqps) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
103
num_tc, hdev->vport[0].alloc_tqps);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
254
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
256
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
305
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
306
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
328
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
330
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
396
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
398
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
431
vport->nic.kinfo.tc_map_mode = HNAE3_TC_MAP_MODE_DSCP;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
442
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
444
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
474
vport->nic.kinfo.tc_map_mode = HNAE3_TC_MAP_MODE_PRIO;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
484
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
485
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
495
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
497
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
558
if (hdev->vport[0].alloc_tqps < queue_sum) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
561
hdev->vport[0].alloc_tqps);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
597
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
599
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
611
kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
669
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
676
vport->vport_id != 0)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
679
kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
71
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
72
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
1669
kinfo = &hdev->vport[0].nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
2593
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
2601
vport = &hdev->vport[func_id];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
2602
list = is_unicast ? &vport->uc_mac_list : &vport->mc_mac_list;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
2603
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
2613
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
2621
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
2632
vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
2634
i, vport->used_umv_num);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
3096
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
3098
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
817
for (index = 0; index < hdev->vport[0].alloc_tqps; index++) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_devlink.c
112
struct hnae3_handle *h = &hdev->vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_devlink.c
77
struct hnae3_handle *h = &hdev->vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
2905
ret = hclge_inform_reset_assert_to_vf(&hdev->vport[vf_id]);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
3383
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
3393
vport = hclge_get_vf_vport(hdev,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
3395
if (!vport) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
3403
ret = hclge_reset_tqp(&vport->nic);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
3410
ret = hclge_inform_vf_reset(vport, HNAE3_VF_FUNC_RESET);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1393
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1394
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1402
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1421
*vport_id = vf ? hdev->vport[vf].vport_id : vport->vport_id;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1422
tqps = hdev->vport[vf].nic.kinfo.num_tqps;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1440
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1441
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1500
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1501
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1574
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1575
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1604
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1605
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1819
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1821
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1881
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1882
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1981
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
1983
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
2040
struct hnae3_handle *handle = &hdev->vport[0].nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
2293
struct hnae3_handle *handle = &hdev->vport[0].nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
2430
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
2431
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
2489
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
2490
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
2582
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
2583
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
780
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
781
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10009
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10010
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10012
*alloc_tqps = vport->alloc_tqps;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10018
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10020
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10026
roundup_size = roundup_pow_of_two(vport->nic.kinfo.rss_size);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10037
tc_offset[i] = vport->nic.kinfo.rss_size * i;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10048
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10049
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10050
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10128
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10129
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10146
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10147
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10158
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10159
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10171
static int hclge_sync_vport_promisc_mode(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10173
struct hnae3_handle *handle = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10174
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10181
if (vport->last_promisc_flags != vport->overflow_promisc_flags) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10182
set_bit(HCLGE_VPORT_STATE_PROMISC_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10183
vport->last_promisc_flags = vport->overflow_promisc_flags;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10187
&vport->state))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10191
if (!vport->vport_id) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10192
tmp_flags = handle->netdev_flags | vport->last_promisc_flags;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10197
&vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10200
&vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10205
if (vport->vf_info.trusted) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10206
uc_en = vport->vf_info.request_uc_en > 0 ||
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10207
vport->overflow_promisc_flags & HNAE3_OVERFLOW_UPE;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10208
mc_en = vport->vf_info.request_mc_en > 0 ||
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10209
vport->overflow_promisc_flags & HNAE3_OVERFLOW_MPE;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10211
bc_en = vport->vf_info.request_bc_en > 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10213
ret = hclge_cmd_set_promisc_mode(hdev, vport->vport_id, uc_en,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10216
set_bit(HCLGE_VPORT_STATE_PROMISC_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10219
hclge_set_vport_vlan_fltr_change(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10226
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10231
vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10233
ret = hclge_sync_vport_promisc_mode(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10315
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10316
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10343
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10344
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10366
static void hclge_clear_vport_vf_info(struct hclge_vport *vport, int vfid)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10368
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10372
clear_bit(HCLGE_VPORT_STATE_INITED, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10373
clear_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10374
vport->need_notify = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10375
vport->mps = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10378
ret = hclge_tm_qs_shaper_cfg(vport, 0);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10387
ret = hclge_update_port_base_vlan_cfg(vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10395
ret = hclge_set_vf_spoofchk_hw(hdev, vport->vport_id, false);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10401
memset(&vport->vf_info, 0, sizeof(vport->vf_info));
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10407
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10411
vport = &hdev->vport[i + HCLGE_VF_VPORT_START_NUM];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10413
hclge_clear_vport_vf_info(vport, i);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10420
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10426
*tc_mode = vport->nic.kinfo.tc_map_mode;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10428
*priority = vport->nic.kinfo.dscp_prio[dscp] == HNAE3_PRIO_ID_INVALID ? 0 :
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10429
vport->nic.kinfo.dscp_prio[dscp];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1633
static int hclge_assign_tqp(struct hclge_vport *vport, u16 num_tqps)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1635
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1636
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1642
hdev->htqp[i].q.handle = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1651
vport->alloc_tqps = alloced;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1653
vport->alloc_tqps / hdev->tm_info.num_tc);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1662
static int hclge_knic_setup(struct hclge_vport *vport, u16 num_tqps,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1666
struct hnae3_handle *nic = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1668
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1682
ret = hclge_assign_tqp(vport, num_tqps);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1690
struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1692
struct hnae3_handle *nic = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1697
for (i = 0; i < vport->alloc_tqps; i++) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1703
is_pf = !(vport->vport_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1704
ret = hclge_map_tqps_to_func(hdev, vport->vport_id, q->index,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1715
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1722
ret = hclge_map_tqp_to_vport(hdev, vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1726
vport++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1732
static int hclge_vport_setup(struct hclge_vport *vport, u16 num_tqps)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1734
struct hnae3_handle *nic = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1735
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1744
ret = hclge_knic_setup(vport, num_tqps,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1755
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1774
vport = devm_kcalloc(&pdev->dev, num_vport, sizeof(struct hclge_vport),
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1776
if (!vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1779
hdev->vport = vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1786
vport->back = hdev;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1787
vport->vport_id = i;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1788
vport->vf_info.link_state = IFLA_VF_LINK_STATE_AUTO;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1789
vport->mps = HCLGE_MAC_DEFAULT_FRAME;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1790
vport->port_base_vlan_cfg.state = HNAE3_PORT_BASE_VLAN_DISABLE;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1791
vport->port_base_vlan_cfg.tbl_sta = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1792
vport->rxvlan_cfg.rx_vlan_offload_en = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1793
vport->req_vlan_fltr_en = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1794
INIT_LIST_HEAD(&vport->vlan_list);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1795
INIT_LIST_HEAD(&vport->uc_mac_list);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1796
INIT_LIST_HEAD(&vport->mc_mac_list);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1797
spin_lock_init(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1800
ret = hclge_vport_setup(vport, tqp_main_vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1802
ret = hclge_vport_setup(vport, tqp_per_vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
1810
vport++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2414
static int hclge_init_roce_base_info(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2416
struct hnae3_handle *roce = &vport->roce;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2417
struct hnae3_handle *nic = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2418
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2420
roce->rinfo.num_vectors = vport->back->num_roce_msi;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2578
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2579
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2620
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2621
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2642
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2643
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2654
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2655
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2668
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2669
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2814
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2815
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2858
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2859
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2879
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2880
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2996
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3001
vport = &hdev->vport[i + HCLGE_VF_VPORT_START_NUM];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3003
if (!test_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state) ||
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3004
vport->vf_info.link_state != IFLA_VF_LINK_STATE_AUTO)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3007
ret = hclge_push_vf_link_status(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3018
struct hnae3_handle *handle = &hdev->vport[0].nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3044
struct hnae3_handle *rhandle = &hdev->vport[0].roce;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3239
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3243
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3290
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3293
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3336
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3337
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3368
ret = hclge_get_phy_link_ksettings(&hdev->vport->nic, &cmd);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3392
return hclge_set_phy_link_ksettings(&hdev->vport->nic, &cmd);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3444
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3445
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3469
return &hdev->vport[vf];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3475
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3476
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3478
vport = hclge_get_vf_vport(hdev, vf);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3479
if (!vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3483
ivf->linkstate = vport->vf_info.link_state;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3484
ivf->spoofchk = vport->vf_info.spoofchk;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3485
ivf->trusted = vport->vf_info.trusted;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3487
ivf->max_tx_rate = vport->vf_info.max_tx_rate;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3488
ivf->vlan = vport->port_base_vlan_cfg.vlan_info.vlan_tag;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3489
ivf->vlan_proto = htons(vport->port_base_vlan_cfg.vlan_info.vlan_proto);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3490
ivf->qos = vport->port_base_vlan_cfg.vlan_info.qos;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3491
ether_addr_copy(ivf->mac, vport->vf_info.mac);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3499
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3500
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3504
vport = hclge_get_vf_vport(hdev, vf);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3505
if (!vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3508
link_state_old = vport->vf_info.link_state;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3509
vport->vf_info.link_state = link_state;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3514
if (!test_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3517
ret = hclge_push_vf_link_status(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3519
vport->vf_info.link_state = link_state_old;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3742
struct hnae3_handle *handle = &hdev->vport[0].nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3763
struct hnae3_handle *handle = &hdev->vport[0].roce;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3845
struct hclge_vport *vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3849
ret = hclge_set_vf_rst(hdev, vport->vport_id, reset);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3853
vport->vport_id - HCLGE_VF_VPORT_START_NUM,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3859
!test_bit(HCLGE_VPORT_STATE_INITED, &vport->state))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3862
if (!test_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state) &&
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3865
&vport->need_notify);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3873
ret = hclge_inform_reset_assert_to_vf(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3877
vport->vport_id - HCLGE_VF_VPORT_START_NUM,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3947
client->ops->process_hw_error(&hdev->vport[0].nic, type);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
3988
struct hnae3_handle *handle = &hdev->vport[0].nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4587
struct hclge_vport *vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4589
if (!test_bit(HCLGE_VPORT_STATE_INITED, &vport->state) ||
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4590
!test_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4592
if (time_after(jiffies, vport->last_active_jiffies +
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4594
clear_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4721
hdev->vector_status[idx] = hdev->vport[0].vport_id;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4728
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4730
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4768
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4769
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4788
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4789
struct hclge_comm_rss_cfg *rss_cfg = &vport->back->rss_cfg;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4803
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4804
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4826
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4827
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4844
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4850
ret = hclge_comm_get_rss_tuple(&vport->back->rss_cfg, nfc->flow_type,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4862
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4863
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4871
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4880
tc_info = &vport->nic.kinfo.tc_info;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4935
int hclge_bind_ring_with_vector(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4939
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4974
req->vfid = vport->vport_id;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5001
req->vfid = vport->vport_id;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5016
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5017
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5027
return hclge_bind_ring_with_vector(vport, vector_id, true, ring_chain);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5033
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5034
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5047
ret = hclge_bind_ring_with_vector(vport, vector_id, false, ring_chain);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5059
struct hclge_vport *vport = &hdev->vport[vf_id];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5060
struct hnae3_handle *handle = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5101
int hclge_set_vport_promisc_mode(struct hclge_vport *vport, bool en_uc_pmc,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5104
return hclge_cmd_set_promisc_mode(vport->back, vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5111
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5112
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5122
return hclge_set_vport_promisc_mode(vport, en_uc_pmc, en_mc_pmc,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5128
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5130
set_bit(HCLGE_VPORT_STATE_PROMISC_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5135
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5136
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5144
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5145
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5152
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5153
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5160
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5161
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
547
handle = &hdev->vport[0].nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5542
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5543
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5558
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5559
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5638
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5639
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5654
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5655
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
567
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5672
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5673
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
568
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5708
int hclge_vport_start(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5710
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5712
set_bit(HCLGE_VPORT_STATE_INITED, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5713
set_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5714
set_bit(HCLGE_VPORT_STATE_PROMISC_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5715
vport->last_active_jiffies = jiffies;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5716
vport->need_notify = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5718
if (test_bit(vport->vport_id, hdev->vport_config_block)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5719
if (vport->vport_id) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5720
hclge_restore_mac_table_common(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5721
hclge_restore_vport_vlan_table(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5727
clear_bit(vport->vport_id, hdev->vport_config_block);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5732
void hclge_vport_stop(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5734
clear_bit(HCLGE_VPORT_STATE_INITED, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5735
clear_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5736
vport->need_notify = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5741
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5743
return hclge_vport_start(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5748
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5750
hclge_vport_stop(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5753
static int hclge_get_mac_vlan_cmd_status(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5757
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5872
static int hclge_remove_mac_vlan_tbl(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5875
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5895
return hclge_get_mac_vlan_cmd_status(vport, retval, resp_code,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5899
static int hclge_lookup_mac_vlan_tbl(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5904
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5938
return hclge_get_mac_vlan_cmd_status(vport, retval, resp_code,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5942
static int hclge_add_mac_vlan_tbl(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5946
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5964
cfg_status = hclge_get_mac_vlan_cmd_status(vport, retval,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
597
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
598
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
5980
cfg_status = hclge_get_mac_vlan_cmd_status(vport, retval,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6046
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6050
vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6051
vport->used_umv_num = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6062
static bool hclge_is_umv_space_full(struct hclge_vport *vport, bool need_lock)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6064
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6070
is_full = (vport->used_umv_num >= hdev->priv_umv_size &&
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6079
static void hclge_update_umv_space(struct hclge_vport *vport, bool is_free)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6081
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6084
if (vport->used_umv_num > hdev->priv_umv_size)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6087
if (vport->used_umv_num > 0)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6088
vport->used_umv_num--;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6090
if (vport->used_umv_num >= hdev->priv_umv_size &&
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6093
vport->used_umv_num++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6138
int hclge_update_mac_list(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6144
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6149
&vport->uc_mac_list : &vport->mc_mac_list;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6151
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6160
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6161
set_bit(HCLGE_VPORT_STATE_MAC_TBL_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6167
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6177
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6181
set_bit(HCLGE_VPORT_STATE_MAC_TBL_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6187
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6195
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6197
return hclge_update_mac_list(vport, HCLGE_MAC_TO_ADD, HCLGE_MAC_ADDR_UC,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6201
int hclge_add_uc_addr_common(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6205
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6227
HCLGE_MAC_EPORT_VFID_S, vport->vport_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6237
ret = hclge_lookup_mac_vlan_tbl(vport, &req, &desc, false);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6240
if (!hclge_is_umv_space_full(vport, false)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6241
ret = hclge_add_mac_vlan_tbl(vport, &req, NULL);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6243
hclge_update_umv_space(vport, false);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6249
if (!(vport->overflow_promisc_flags & HNAE3_OVERFLOW_UPE))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6266
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6268
return hclge_update_mac_list(vport, HCLGE_MAC_TO_DEL, HCLGE_MAC_ADDR_UC,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6272
int hclge_rm_uc_addr_common(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6276
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6293
ret = hclge_remove_mac_vlan_tbl(vport, &req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6296
hclge_update_umv_space(vport, true);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6307
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6309
return hclge_update_mac_list(vport, HCLGE_MAC_TO_ADD, HCLGE_MAC_ADDR_MC,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6313
int hclge_add_mc_addr_common(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6317
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6333
status = hclge_lookup_mac_vlan_tbl(vport, &req, desc, true);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6347
status = hclge_update_desc_vfid(desc, vport->vport_id, false);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6350
status = hclge_add_mac_vlan_tbl(vport, &req, desc);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6360
if (!(vport->overflow_promisc_flags & HNAE3_OVERFLOW_MPE)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6361
vport->overflow_promisc_flags |= HNAE3_OVERFLOW_MPE;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6371
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6373
return hclge_update_mac_list(vport, HCLGE_MAC_TO_DEL, HCLGE_MAC_ADDR_MC,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6377
int hclge_rm_mc_addr_common(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6381
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6397
status = hclge_lookup_mac_vlan_tbl(vport, &req, desc, true);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6400
status = hclge_update_desc_vfid(desc, vport->vport_id, true);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6406
status = hclge_remove_mac_vlan_tbl(vport, &req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6411
status = hclge_add_mac_vlan_tbl(vport, &req, desc);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6420
static void hclge_sync_vport_mac_list(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6424
int (*sync)(struct hclge_vport *vport, const unsigned char *addr);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6434
ret = sync(vport, mac_node->mac_addr);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6439
&vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6456
static void hclge_unsync_vport_mac_list(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
646
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6460
int (*unsync)(struct hclge_vport *vport, const unsigned char *addr);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
647
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6470
ret = unsync(vport, mac_node->mac_addr);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6476
&vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6541
static void hclge_update_overflow_flags(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6547
vport->overflow_promisc_flags &= ~HNAE3_OVERFLOW_UPE;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6548
else if (hclge_is_umv_space_full(vport, true))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6549
vport->overflow_promisc_flags |= HNAE3_OVERFLOW_UPE;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6552
vport->overflow_promisc_flags &= ~HNAE3_OVERFLOW_MPE;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6554
vport->overflow_promisc_flags |= HNAE3_OVERFLOW_MPE;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6558
static void hclge_sync_vport_mac_table(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6573
&vport->uc_mac_list : &vport->mc_mac_list;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6575
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6596
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6599
hclge_unsync_vport_mac_list(vport, &tmp_del_list, mac_type);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6600
hclge_sync_vport_mac_list(vport, &tmp_add_list, mac_type);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6605
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6610
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6612
hclge_update_overflow_flags(vport, mac_type, all_added);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6615
static bool hclge_need_sync_mac_table(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6617
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6619
if (test_bit(vport->vport_id, hdev->vport_config_block))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6622
if (test_and_clear_bit(HCLGE_VPORT_STATE_MAC_TBL_CHANGE, &vport->state))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6633
struct hclge_vport *vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6635
if (!hclge_need_sync_mac_table(vport))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6638
hclge_sync_vport_mac_table(vport, HCLGE_MAC_ADDR_UC);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6639
hclge_sync_vport_mac_table(vport, HCLGE_MAC_ADDR_MC);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6665
static void hclge_unsync_del_list(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6666
int (*unsync)(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6675
ret = unsync(vport, mac_cfg->mac_addr);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6694
void hclge_rm_vport_all_mac_table(struct hclge_vport *vport, bool is_del_list,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6697
int (*unsync)(struct hclge_vport *vport, const unsigned char *addr);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6698
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6702
list = &vport->uc_mac_list;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6705
list = &vport->mc_mac_list;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6712
set_bit(vport->vport_id, hdev->vport_config_block);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6714
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6718
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6720
hclge_unsync_del_list(vport, unsync, is_del_list, &tmp_del_list);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6722
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6726
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6730
static void hclge_uninit_vport_mac_list(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6734
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6740
&vport->uc_mac_list : &vport->mc_mac_list;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6742
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6757
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6759
hclge_unsync_vport_mac_list(vport, &tmp_del_list, mac_type);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6765
vport->vport_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6775
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6779
vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6780
hclge_uninit_vport_mac_list(vport, HCLGE_MAC_ADDR_UC);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6781
hclge_uninit_vport_mac_list(vport, HCLGE_MAC_ADDR_MC);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
682
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
683
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6830
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6832
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6834
vport = hclge_get_vf_vport(hdev, vf);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6835
if (!vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6839
if (ether_addr_equal(mac_addr, vport->vf_info.mac)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6846
ether_addr_copy(vport->vf_info.mac, mac_addr);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6852
if (test_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6856
(void)hclge_inform_reset_assert_to_vf(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6911
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6912
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6917
int hclge_update_mac_node_for_dev_addr(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6920
struct list_head *list = &vport->uc_mac_list;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
694
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
695
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6956
set_bit(HCLGE_VPORT_STATE_MAC_TBL_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6965
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6967
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6993
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6994
ret = hclge_update_mac_node_for_dev_addr(vport, old_addr, new_addr);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7000
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7011
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7043
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7044
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7107
static int hclge_set_vport_vlan_filter(struct hclge_vport *vport, bool enable)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7109
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7116
enable, vport->vport_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7120
vport->vport_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7125
ret = hclge_set_port_vlan_filter_bypass(hdev, vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7127
} else if (!vport->vport_id) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7139
static bool hclge_need_enable_vport_vlan_filter(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7141
struct hnae3_handle *handle = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7143
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7145
if (vport->vport_id) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7146
if (vport->port_base_vlan_cfg.state !=
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7150
if (vport->vf_info.trusted && vport->vf_info.request_uc_en)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7156
if (!vport->req_vlan_fltr_en)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7163
list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7170
static int __hclge_enable_vport_vlan_filter(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7176
need_en = hclge_need_enable_vport_vlan_filter(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7177
if (need_en == vport->cur_vlan_fltr_en)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7180
ret = hclge_set_vport_vlan_filter(vport, need_en);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7184
vport->cur_vlan_fltr_en = need_en;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7189
int hclge_enable_vport_vlan_filter(struct hclge_vport *vport, bool request_en)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7191
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7195
vport->req_vlan_fltr_en = request_en;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7196
ret = __hclge_enable_vport_vlan_filter(vport, request_en);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7204
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7206
return hclge_enable_vport_vlan_filter(vport, enable);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7297
struct hclge_vport *vport = &hdev->vport[vfid];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7307
if (vport->vf_info.spoofchk && vlan) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7411
static int hclge_set_vlan_tx_offload_cfg(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7413
struct hclge_tx_vtag_cfg *vcfg = &vport->txvlan_cfg;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7415
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7441
req->vf_offset = vport->vport_id / HCLGE_VF_NUM_PER_CMD;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7442
bmap_index = vport->vport_id % HCLGE_VF_NUM_PER_CMD /
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7445
1U << (vport->vport_id % HCLGE_VF_NUM_PER_BYTE);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7456
static int hclge_set_vlan_rx_offload_cfg(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7458
struct hclge_rx_vtag_cfg *vcfg = &vport->rxvlan_cfg;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7460
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7481
req->vf_offset = vport->vport_id / HCLGE_VF_NUM_PER_CMD;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7482
bmap_index = vport->vport_id % HCLGE_VF_NUM_PER_CMD /
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7485
1U << (vport->vport_id % HCLGE_VF_NUM_PER_BYTE);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7496
static int hclge_vlan_offload_cfg(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7503
vport->txvlan_cfg.accept_tag1 = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7504
vport->txvlan_cfg.insert_tag1_en = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7505
vport->txvlan_cfg.default_tag1 = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7507
struct hnae3_ae_dev *ae_dev = pci_get_drvdata(vport->nic.pdev);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7509
vport->txvlan_cfg.accept_tag1 =
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7511
vport->txvlan_cfg.insert_tag1_en = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7512
vport->txvlan_cfg.default_tag1 = (qos << VLAN_PRIO_SHIFT) |
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7516
vport->txvlan_cfg.accept_untag1 = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7522
vport->txvlan_cfg.accept_tag2 = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7523
vport->txvlan_cfg.accept_untag2 = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7524
vport->txvlan_cfg.insert_tag2_en = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7525
vport->txvlan_cfg.default_tag2 = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7526
vport->txvlan_cfg.tag_shift_mode_en = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7529
vport->rxvlan_cfg.strip_tag1_en = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7530
vport->rxvlan_cfg.strip_tag2_en =
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7531
vport->rxvlan_cfg.rx_vlan_offload_en;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7532
vport->rxvlan_cfg.strip_tag2_discard_en = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7534
vport->rxvlan_cfg.strip_tag1_en =
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7535
vport->rxvlan_cfg.rx_vlan_offload_en;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7536
vport->rxvlan_cfg.strip_tag2_en = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7537
vport->rxvlan_cfg.strip_tag2_discard_en = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7540
vport->rxvlan_cfg.strip_tag1_discard_en = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7541
vport->rxvlan_cfg.vlan1_vlan_prionly = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7542
vport->rxvlan_cfg.vlan2_vlan_prionly = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7544
ret = hclge_set_vlan_tx_offload_cfg(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7548
return hclge_set_vlan_rx_offload_cfg(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7594
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7606
vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7609
vport->vport_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7612
vport->cur_vlan_fltr_en = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7638
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7643
vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7644
cfg = &vport->port_base_vlan_cfg;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7646
ret = hclge_vlan_offload_cfg(vport, cfg->state,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7657
struct hnae3_handle *handle = &hdev->vport[0].nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7675
static void hclge_add_vport_vlan_table(struct hclge_vport *vport, u16 vlan_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7679
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7683
list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7699
list_add_tail(&vlan->node, &vport->vlan_list);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7703
static int hclge_add_vport_all_vlan_table(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7706
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7711
list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7714
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7733
static void hclge_rm_vport_vlan_table(struct hclge_vport *vport, u16 vlan_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7737
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7739
list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7744
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7755
void hclge_rm_vport_all_vlan_table(struct hclge_vport *vport, bool is_del_list)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7758
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7762
list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7766
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7776
clear_bit(vport->vport_id, hdev->vf_vlan_full);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7783
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7789
vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7790
list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7802
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7811
vport = &hdev->vport[vf_id + HCLGE_VF_VPORT_START_NUM];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7812
vlan_info = vport->port_base_vlan_cfg.tbl_sta ?
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7813
&vport->port_base_vlan_cfg.vlan_info :
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7814
&vport->port_base_vlan_cfg.old_vlan_info;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7818
state = vport->port_base_vlan_cfg.state;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7821
clear_bit(vport->vport_id, hdev->vlan_table[vlan_id]);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7823
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7825
vport->port_base_vlan_cfg.tbl_sta = ret == 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7830
void hclge_restore_vport_vlan_table(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7833
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7838
if (vport->port_base_vlan_cfg.state == HNAE3_PORT_BASE_VLAN_DISABLE) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7839
list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7841
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7872
void hclge_restore_mac_table_common(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7874
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7876
hclge_mac_node_convert_for_reset(&vport->uc_mac_list);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7877
hclge_mac_node_convert_for_reset(&vport->mc_mac_list);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7878
set_bit(HCLGE_VPORT_STATE_MAC_TBL_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7880
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7885
struct hclge_vport *vport = &hdev->vport[0];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7886
struct hnae3_handle *handle = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7888
hclge_restore_mac_table_common(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7890
hclge_restore_vport_vlan_table(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7897
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7899
if (vport->port_base_vlan_cfg.state == HNAE3_PORT_BASE_VLAN_DISABLE) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7900
vport->rxvlan_cfg.strip_tag1_en = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7901
vport->rxvlan_cfg.strip_tag2_en = enable;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7902
vport->rxvlan_cfg.strip_tag2_discard_en = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7904
vport->rxvlan_cfg.strip_tag1_en = enable;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7905
vport->rxvlan_cfg.strip_tag2_en = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7906
vport->rxvlan_cfg.strip_tag2_discard_en = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7909
vport->rxvlan_cfg.strip_tag1_discard_en = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7910
vport->rxvlan_cfg.vlan1_vlan_prionly = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7911
vport->rxvlan_cfg.vlan2_vlan_prionly = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7912
vport->rxvlan_cfg.rx_vlan_offload_en = enable;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7914
return hclge_set_vlan_rx_offload_cfg(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7917
static void hclge_set_vport_vlan_fltr_change(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7919
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7922
set_bit(HCLGE_VPORT_STATE_VLAN_FLTR_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7925
static int hclge_update_vlan_filter_entries(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7930
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7934
hclge_rm_vport_all_vlan_table(vport, false);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7936
ret = hclge_set_vf_vlan_common(hdev, vport->vport_id, true, 0);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7941
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7946
vport->port_base_vlan_cfg.tbl_sta = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7949
ret = hclge_set_vf_vlan_common(hdev, vport->vport_id, false, 0);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7954
vport->vport_id, old_info->vlan_tag,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7959
return hclge_add_vport_all_vlan_table(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7974
static int hclge_modify_port_base_vlan_tag(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7978
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7983
vport->vport_id, new_info->vlan_tag,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7988
vport->port_base_vlan_cfg.tbl_sta = false;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7991
ret = hclge_set_vf_vlan_common(hdev, vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7995
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8000
vport->vport_id, old_info->vlan_tag, ret);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8005
int hclge_update_port_base_vlan_cfg(struct hclge_vport *vport, u16 state,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8008
struct hnae3_handle *nic = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8012
old_vlan_info = &vport->port_base_vlan_cfg.vlan_info;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8014
ret = hclge_vlan_offload_cfg(vport, state, vlan_info->vlan_tag,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8023
ret = hclge_modify_port_base_vlan_tag(vport, vlan_info,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8026
ret = hclge_update_vlan_filter_entries(vport, state, vlan_info,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8032
vport->port_base_vlan_cfg.state = state;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8038
vport->port_base_vlan_cfg.old_vlan_info = *old_vlan_info;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8039
vport->port_base_vlan_cfg.vlan_info = *vlan_info;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8040
vport->port_base_vlan_cfg.tbl_sta = true;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8041
hclge_set_vport_vlan_fltr_change(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8046
static u16 hclge_get_port_base_vlan_state(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8060
if (vport->port_base_vlan_cfg.vlan_info.vlan_tag == vlan &&
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8061
vport->port_base_vlan_cfg.vlan_info.qos == qos)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8071
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8072
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8080
vport = hclge_get_vf_vport(hdev, vfid);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8081
if (!vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8090
state = hclge_get_port_base_vlan_state(vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8091
vport->port_base_vlan_cfg.state,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8100
ret = hclge_update_port_base_vlan_cfg(vport, state, &vlan_info);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8115
if (test_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8116
(void)hclge_push_vf_port_base_vlan_info(&hdev->vport[0],
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8117
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8122
&vport->need_notify);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8130
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8136
vport = &hdev->vport[vf];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8137
vlan_info = &vport->port_base_vlan_cfg.vlan_info;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8140
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8152
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8153
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8167
set_bit(vlan_id, vport->vlan_del_fail_bmap);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8170
} else if (!is_kill && test_bit(vlan_id, vport->vlan_del_fail_bmap)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8171
clear_bit(vlan_id, vport->vlan_del_fail_bmap);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8182
ret = hclge_set_vlan_filter_hw(hdev, proto, vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8189
hclge_add_vport_vlan_table(vport, vlan_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8193
hclge_rm_vport_vlan_table(vport, vlan_id, false);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8202
set_bit(vlan_id, vport->vlan_del_fail_bmap);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8206
hclge_set_vport_vlan_fltr_change(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8213
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8218
vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8220
&vport->state))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8224
ret = __hclge_enable_vport_vlan_filter(vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8225
vport->req_vlan_fltr_en);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8229
vport->vport_id, ret);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8231
&vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8249
struct hclge_vport *vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8251
vlan_id = find_first_bit(vport->vlan_del_fail_bmap,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8255
vport->vport_id, vlan_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8262
clear_bit(vlan_id, vport->vlan_del_fail_bmap);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8263
hclge_rm_vport_vlan_table(vport, vlan_id, false);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8264
hclge_set_vport_vlan_fltr_change(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8272
vlan_id = find_first_bit(vport->vlan_del_fail_bmap,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8297
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8299
return hclge_set_vport_mtu(vport, new_mtu);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8302
int hclge_set_vport_mtu(struct hclge_vport *vport, int new_mtu)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8304
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8316
if (vport->vport_id && (u32)max_frm_size > hdev->mps) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8319
} else if (vport->vport_id) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8320
vport->mps = max_frm_size;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8327
if ((u32)max_frm_size < hdev->vport[i].mps) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8330
i, hdev->vport[i].mps);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8345
vport->mps = max_frm_size;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8419
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8420
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8473
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8474
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8514
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8515
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8519
if (!vport->vport_id) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8533
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8534
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8620
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8621
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8666
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8667
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8702
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8703
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8718
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8719
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
873
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8737
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8738
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
874
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8786
struct hnae3_handle *handle = &hdev->vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8813
struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8815
struct hnae3_client *client = vport->nic.client;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8820
ret = client->ops->init_instance(&vport->nic);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8841
if (netif_msg_drv(&hdev->vport->nic))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8851
client->ops->uninit_instance(&vport->nic, 0);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8857
struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8869
ret = hclge_init_roce_base_info(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8874
ret = client->ops->init_instance(&vport->roce);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8902
hdev->roce_client->ops->uninit_instance(&vport->roce, 0);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8911
struct hclge_vport *vport = &hdev->vport[0];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8917
vport->nic.client = client;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8918
ret = hclge_init_nic_client_instance(ae_dev, vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8922
ret = hclge_init_roce_client_instance(ae_dev, vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8930
vport->roce.client = client;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8933
ret = hclge_init_roce_client_instance(ae_dev, vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8946
vport->nic.client = NULL;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8950
vport->roce.client = NULL;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8964
struct hclge_vport *vport = &hdev->vport[0];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8971
hdev->roce_client->ops->uninit_instance(&vport->roce, 0);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8973
vport->roce.client = NULL;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8982
client->ops->uninit_instance(&vport->nic, 0);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8984
vport->nic.client = NULL;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9155
struct hclge_vport *vport = &hdev->vport[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9159
ret = hclge_set_vf_rst(hdev, vport->vport_id, false);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9163
vport->vport_id, ret);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9203
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9205
return &vport->back->hw.mac.wol;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9296
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9312
ret = hclge_set_wol_cfg(vport->back, wol_info);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9467
ret = hclge_comm_rss_init_cfg(&hdev->vport->nic, hdev->ae_dev,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9630
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9631
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9638
vport = hclge_get_vf_vport(hdev, vf);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9639
if (!vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9642
if (vport->vf_info.spoofchk == new_spoofchk)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9645
if (enable && test_bit(vport->vport_id, hdev->vf_vlan_full))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9649
else if (enable && hclge_is_umv_space_full(vport, true))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9654
ret = hclge_set_vf_spoofchk_hw(hdev, vport->vport_id, enable);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9658
vport->vf_info.spoofchk = new_spoofchk;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9664
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9673
ret = hclge_set_vf_spoofchk_hw(hdev, vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9674
vport->vf_info.spoofchk);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9678
vport++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9686
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9687
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9690
vport = hclge_get_vf_vport(hdev, vf);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9691
if (!vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9694
if (vport->vf_info.trusted == new_trusted)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9697
vport->vf_info.trusted = new_trusted;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9698
set_bit(HCLGE_VPORT_STATE_PROMISC_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9711
struct hclge_vport *vport = &hdev->vport[vf];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9713
vport->vf_info.max_tx_rate = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9714
ret = hclge_tm_qs_shaper_cfg(vport, vport->vf_info.max_tx_rate);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9739
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9740
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9747
vport = hclge_get_vf_vport(hdev, vf);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9748
if (!vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9751
if (!force && (u32)max_tx_rate == vport->vf_info.max_tx_rate)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9754
ret = hclge_tm_qs_shaper_cfg(vport, max_tx_rate);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9758
vport->vf_info.max_tx_rate = max_tx_rate;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9765
struct hnae3_handle *handle = &hdev->vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9766
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9772
vport = hclge_get_vf_vport(hdev, vf);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9773
if (!vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9779
if (!vport->vf_info.max_tx_rate)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9783
vport->vf_info.max_tx_rate, true);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9787
vf, vport->vf_info.max_tx_rate, ret);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9797
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9801
clear_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9802
vport++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9991
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9992
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
9994
return min_t(u32, hdev->pf_rss_size_max, vport->alloc_tqps);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1110
int hclge_set_vport_promisc_mode(struct hclge_vport *vport, bool en_uc_pmc,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1112
int hclge_add_uc_addr_common(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1114
int hclge_rm_uc_addr_common(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1116
int hclge_add_mc_addr_common(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1118
int hclge_rm_mc_addr_common(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1122
int hclge_bind_ring_with_vector(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1134
int hclge_inform_reset_assert_to_vf(struct hclge_vport *vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1147
int hclge_vport_start(struct hclge_vport *vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1148
void hclge_vport_stop(struct hclge_vport *vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1149
int hclge_set_vport_mtu(struct hclge_vport *vport, int new_mtu);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1155
int hclge_update_mac_list(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1159
int hclge_update_mac_node_for_dev_addr(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1161
void hclge_rm_vport_all_mac_table(struct hclge_vport *vport, bool is_del_list,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1163
void hclge_rm_vport_all_vlan_table(struct hclge_vport *vport, bool is_del_list);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1165
void hclge_restore_mac_table_common(struct hclge_vport *vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1167
void hclge_restore_vport_vlan_table(struct hclge_vport *vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1168
int hclge_update_port_base_vlan_cfg(struct hclge_vport *vport, u16 state,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1170
int hclge_push_vf_port_base_vlan_info(struct hclge_vport *vport, u8 vfid,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1177
int hclge_push_vf_link_status(struct hclge_vport *vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1178
int hclge_enable_vport_vlan_filter(struct hclge_vport *vport, bool request_en);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
1181
int hclge_inform_vf_reset(struct hclge_vport *vport, u16 reset_type);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
939
struct hclge_vport *vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1005
hclge_rm_vport_all_mac_table(param->vport, true,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1007
hclge_rm_vport_all_mac_table(param->vport, true,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1009
hclge_rm_vport_all_vlan_table(param->vport, true);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1010
param->vport->mps = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1016
hclge_get_vf_media_type(param->vport, param->resp_msg);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1022
hclge_handle_link_change_event(param->vport->back, param->req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1028
hclge_get_vf_mac_addr(param->vport, param->resp_msg);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1034
hclge_handle_ncsi_error(param->vport->back);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1040
hclge_handle_vf_tbl(param->vport, param->req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1079
hdev = param->vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1101
hclge_gen_resp_to_vf(param->vport, param->req, param->resp_msg);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
1144
param.vport = &hdev->vport[req->mbx_src_vfid];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
127
int hclge_inform_vf_reset(struct hclge_vport *vport, u16 reset_type)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
132
dest_vfid = (u8)vport->vport_id;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
136
return hclge_send_mbx_msg(vport, (u8 *)&msg_data, sizeof(msg_data),
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
140
int hclge_inform_reset_assert_to_vf(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
142
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
154
return hclge_inform_vf_reset(vport, reset_type);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
183
struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
186
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
196
if (req->msg.param[i].tqp_index >= vport->nic.kinfo.num_tqps) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
199
vport->nic.kinfo.num_tqps - 1U);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
207
hclge_get_queue_id(vport->nic.kinfo.tqp
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
223
hclge_get_queue_id(vport->nic.kinfo.tqp
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
240
static int hclge_map_unmap_ring_to_vf_vector(struct hclge_vport *vport, bool en,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
248
ret = hclge_get_ring_chain_from_mbx(req, &ring_chain, vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
252
ret = hclge_bind_ring_with_vector(vport, vector_id, en, &ring_chain);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
259
static int hclge_query_ring_vector_map(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
265
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
277
req->vfid = vport->vport_id;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
288
static int hclge_get_vf_ring_vector_map(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
309
ret = hclge_get_ring_chain_from_mbx(req, &ring_chain, vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
31
static int hclge_gen_resp_to_vf(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
313
ret = hclge_query_ring_vector_map(vport, &ring_chain, &desc);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
334
static void hclge_set_vf_promisc_mode(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
337
struct hnae3_handle *handle = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
338
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
340
vport->vf_info.request_uc_en = req->msg.en_uc;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
341
vport->vf_info.request_mc_en = req->msg.en_mc;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
342
vport->vf_info.request_bc_en = req->msg.en_bc;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
350
set_bit(HCLGE_VPORT_STATE_PROMISC_CHANGE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
354
static int hclge_set_vf_uc_mac_addr(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
36
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
360
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
370
if (!is_zero_ether_addr(vport->vf_info.mac) &&
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
371
!ether_addr_equal(mac_addr, vport->vf_info.mac))
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
377
spin_lock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
378
status = hclge_update_mac_node_for_dev_addr(vport, old_addr,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
380
spin_unlock_bh(&vport->mac_list_lock);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
383
status = hclge_update_mac_list(vport, HCLGE_MAC_TO_ADD,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
386
status = hclge_update_mac_list(vport, HCLGE_MAC_TO_DEL,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
398
static int hclge_set_vf_mc_mac_addr(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
402
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
405
hclge_update_mac_list(vport, HCLGE_MAC_TO_ADD,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
408
hclge_update_mac_list(vport, HCLGE_MAC_TO_DEL,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
420
int hclge_push_vf_port_base_vlan_info(struct hclge_vport *vport, u8 vfid,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
431
return hclge_send_mbx_msg(vport, (u8 *)&base_vlan, sizeof(base_vlan),
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
435
static int hclge_set_vf_vlan_cfg(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
442
struct hnae3_handle *handle = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
443
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
466
vport->port_base_vlan_cfg.state;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
470
return hclge_enable_vport_vlan_filter(vport, msg_cmd->enable);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
476
static int hclge_set_vf_alive(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
483
ret = hclge_vport_start(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
485
hclge_vport_stop(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
490
static void hclge_get_basic_info(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
493
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
494
struct hnae3_ae_dev *ae_dev = vport->back->ae_dev;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
511
static void hclge_get_vf_queue_info(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
517
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
521
queue_info->num_tqps = cpu_to_le16(vport->alloc_tqps);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
522
queue_info->rss_size = cpu_to_le16(vport->nic.kinfo.rss_size);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
527
static void hclge_get_vf_mac_addr(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
530
ether_addr_copy(resp_msg->data, vport->vf_info.mac);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
534
static void hclge_get_vf_queue_depth(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
540
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
550
static void hclge_get_vf_media_type(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
557
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
566
int hclge_push_vf_link_status(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
572
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
576
switch (vport->vf_info.link_state) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
595
return hclge_send_mbx_msg(vport, (u8 *)&link_info, sizeof(link_info),
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
596
HCLGE_MBX_LINK_STAT_CHANGE, vport->vport_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
599
static void hclge_get_link_mode(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
604
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
618
hclge_send_mbx_msg(vport, (u8 *)&link_mode, sizeof(link_mode),
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
622
static int hclge_mbx_reset_vf_queue(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
627
struct hnae3_handle *handle = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
628
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
645
vport->vport_id - HCLGE_VF_VPORT_START_NUM, ret);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
650
static int hclge_reset_vf(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
652
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
655
vport->vport_id - HCLGE_VF_VPORT_START_NUM);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
657
return hclge_func_reset_cmd(hdev, vport->vport_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
660
static void hclge_notify_vf_config(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
662
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
667
hclge_push_vf_link_status(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
668
if (test_bit(HCLGE_VPORT_NEED_NOTIFY_RESET, &vport->need_notify)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
669
ret = hclge_inform_vf_reset(vport, HNAE3_VF_PF_FUNC_RESET);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
673
vport->vport_id - HCLGE_VF_VPORT_START_NUM);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
676
vport->need_notify = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
681
test_bit(HCLGE_VPORT_NEED_NOTIFY_VF_VLAN, &vport->need_notify)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
682
vlan_cfg = &vport->port_base_vlan_cfg;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
683
ret = hclge_push_vf_port_base_vlan_info(&hdev->vport[0],
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
684
vport->vport_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
690
vport->vport_id - HCLGE_VF_VPORT_START_NUM);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
693
clear_bit(HCLGE_VPORT_NEED_NOTIFY_VF_VLAN, &vport->need_notify);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
697
static void hclge_vf_keep_alive(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
699
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
701
vport->last_active_jiffies = jiffies;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
703
if (test_bit(HCLGE_VPORT_STATE_INITED, &vport->state) &&
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
704
!test_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
705
set_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
707
vport->vport_id - HCLGE_VF_VPORT_START_NUM);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
708
hclge_notify_vf_config(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
712
static int hclge_set_vf_mtu(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
721
return hclge_set_vport_mtu(vport, mtu);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
724
static int hclge_get_queue_id_in_pf(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
728
struct hnae3_handle *handle = &vport->nic;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
729
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
739
qid_in_pf = hclge_covert_handle_qid_global(&vport->nic, queue_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
745
static int hclge_get_rss_key(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
750
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
818
static void hclge_handle_vf_tbl(struct hclge_vport *vport,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
821
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
826
hclge_rm_vport_all_mac_table(vport, true, HCLGE_MAC_ADDR_UC);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
827
hclge_rm_vport_all_mac_table(vport, true, HCLGE_MAC_ADDR_MC);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
828
hclge_rm_vport_all_vlan_table(vport, true);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
838
return hclge_map_unmap_ring_to_vf_vector(param->vport, true,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
845
return hclge_map_unmap_ring_to_vf_vector(param->vport, false,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
854
ret = hclge_get_vf_ring_vector_map(param->vport, param->req,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
857
dev_err(&param->vport->back->pdev->dev,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
865
hclge_set_vf_promisc_mode(param->vport, param->req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
873
ret = hclge_set_vf_uc_mac_addr(param->vport, param->req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
875
dev_err(&param->vport->back->pdev->dev,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
885
ret = hclge_set_vf_mc_mac_addr(param->vport, param->req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
887
dev_err(&param->vport->back->pdev->dev,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
897
ret = hclge_set_vf_vlan_cfg(param->vport, param->req, param->resp_msg);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
899
dev_err(&param->vport->back->pdev->dev,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
909
ret = hclge_set_vf_alive(param->vport, param->req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
91
static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
911
dev_err(&param->vport->back->pdev->dev,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
919
hclge_get_vf_queue_info(param->vport, param->resp_msg);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
925
hclge_get_vf_queue_depth(param->vport, param->resp_msg);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
931
hclge_get_basic_info(param->vport, param->resp_msg);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
939
ret = hclge_push_vf_link_status(param->vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
941
dev_err(&param->vport->back->pdev->dev,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
949
return hclge_mbx_reset_vf_queue(param->vport, param->req,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
95
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
955
return hclge_reset_vf(param->vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
960
hclge_vf_keep_alive(param->vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
968
ret = hclge_set_vf_mtu(param->vport, param->req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
970
dev_err(&param->vport->back->pdev->dev,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
977
return hclge_get_queue_id_in_pf(param->vport, param->req,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
983
return hclge_get_rss_key(param->vport, param->req, param->resp_msg);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
988
hclge_get_link_mode(param->vport, param->req);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
995
hclge_rm_vport_all_mac_table(param->vport, false,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
997
hclge_rm_vport_all_mac_table(param->vport, false,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
999
hclge_rm_vport_all_vlan_table(param->vport, false);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
178
struct hclge_vport *vport = hclge_get_vport(h);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
179
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
204
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
205
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
206
struct net_device *netdev = hdev->vport[0].nic.netdev;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
244
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
245
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
268
struct net_device *netdev = hdev->vport[0].nic.netdev;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
109
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
110
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
210
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
211
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
370
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
371
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
391
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
392
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
58
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
59
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_regs.c
586
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_regs.c
590
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_regs.c
626
struct hclge_vport *vport = hclge_get_vport(handle);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_regs.c
627
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1000
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1008
vport[k].qs_offset + i,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1019
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1035
ret = hclge_vport_q_to_qs_map(hdev, vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1039
vport++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1089
static int hclge_tm_pri_vnet_base_shaper_pri_cfg(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1091
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1096
ret = hclge_shaper_para_calc(vport->bw_limit, HCLGE_SHAPER_LVL_VF,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1106
vport->vport_id, shaper_para,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1107
vport->bw_limit);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1116
vport->vport_id, shaper_para,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1117
vport->bw_limit);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1124
static int hclge_tm_pri_vnet_base_shaper_qs_cfg(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1126
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1127
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1146
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1152
ret = hclge_tm_pri_vnet_base_shaper_pri_cfg(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1156
ret = hclge_tm_pri_vnet_base_shaper_qs_cfg(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1160
vport++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1185
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1201
struct hnae3_knic_private_info *kinfo = &vport[k].nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1206
dwrr = i < kinfo->tc_info.num_tc ? vport[k].dwrr : 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1208
hdev, vport[k].qs_offset + i,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1241
static int hclge_tm_pri_vnet_base_dwrr_pri_cfg(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1243
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1244
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1249
ret = hclge_tm_pri_weight_cfg(hdev, vport->vport_id, vport->dwrr);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1256
hdev, vport->qs_offset + i,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1267
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1272
ret = hclge_tm_pri_vnet_base_dwrr_pri_cfg(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1276
vport++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1320
if (hdev->vport[0].nic.kinfo.tc_map_mode == HNAE3_TC_MAP_MODE_DSCP) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1379
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1389
struct hnae3_knic_private_info *kinfo = &vport[i].nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1397
vport[i].qs_offset + pri_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1406
static int hclge_tm_schd_mode_vnet_base_cfg(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1408
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1409
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1413
if (vport->vport_id >= HNAE3_MAX_TC)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1416
ret = hclge_tm_pri_schd_mode_cfg(hdev, vport->vport_id);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1423
ret = hclge_tm_qs_schd_mode_cfg(hdev, vport->qs_offset + i,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1434
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1446
ret = hclge_tm_schd_mode_vnet_base_cfg(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1450
vport++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1537
struct hclge_vport *vport = &hdev->vport[k];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1538
u16 qs_id = vport->qs_offset + tc;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1637
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1645
kinfo = &vport[k].nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1708
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1711
hclge_tm_vport_tc_info_update(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1713
ret = hclge_vport_q_to_qs_map(hdev, vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
2149
struct hclge_vport *vport = &hdev->vport[0];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
2152
kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
273
hdev->vport[0].nic.kinfo.tc_map_mode = HNAE3_TC_MAP_MODE_PRIO;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
274
hdev->vport[0].nic.kinfo.dscp_app_cnt = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
276
hdev->vport[0].nic.kinfo.dscp_prio[i] = HNAE3_PRIO_ID_INVALID;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
292
pri_id = hdev->vport[0].nic.kinfo.dscp_prio[i];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
301
pri_id = hdev->vport[0].nic.kinfo.dscp_prio[j];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
587
int hclge_tm_qs_shaper_cfg(struct hclge_vport *vport, int max_tx_rate)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
589
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
592
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
616
shap_cfg_cmd->qs_id = cpu_to_le16(vport->qs_offset + i);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
626
vport->vport_id, shap_cfg_cmd->qs_id,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
635
static u16 hclge_vport_get_max_rss_size(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
637
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
639
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
644
return vport->alloc_tqps / tc_info->num_tc;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
656
static u16 hclge_vport_get_tqp_num(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
658
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
660
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
675
static void hclge_tm_update_kinfo_rss_size(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
677
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
678
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
685
if (vport->vport_id) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
688
vport->qs_offset = HNAE3_MAX_TC +
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
689
vport->vport_id - HCLGE_VF_VPORT_START_NUM;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
694
min_t(u16, vport->alloc_tqps, hdev->tm_info.num_tc);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
695
vport->qs_offset = 0;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
700
hclge_vport_get_max_rss_size(vport));
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
715
static void hclge_tm_vport_tc_info_update(struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
717
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
718
struct hclge_dev *hdev = vport->back;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
721
hclge_tm_update_kinfo_rss_size(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
722
kinfo->num_tqps = hclge_vport_get_tqp_num(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
723
vport->dwrr = 100; /* 100 percent as init */
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
724
vport->bw_limit = hdev->tm_info.pg_info[0].bw_limit;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
726
if (vport->vport_id == PF_VPORT_ID)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
750
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
754
hclge_tm_vport_tc_info_update(vport);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
756
vport++;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
950
struct hclge_vport *vport)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
952
struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
964
vport->qs_offset + i);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
975
struct hclge_vport *vport = hdev->vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
981
struct hnae3_knic_private_info *kinfo = &vport[k].nic.kinfo;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
988
vport[k].qs_offset + i,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h
251
int hclge_tm_qs_shaper_cfg(struct hclge_vport *vport, int max_tx_rate);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_trace.h
28
__string(devname, hdev->vport[0].nic.kinfo.netdev->name)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_trace.h
60
__string(devname, hdev->vport[0].nic.kinfo.netdev->name)
drivers/net/ethernet/intel/idpf/idpf.h
1053
int idpf_initiate_soft_reset(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf.h
1064
u8 idpf_vport_get_hsplit(const struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/idpf.h
1065
bool idpf_vport_set_hsplit(const struct idpf_vport *vport, u8 val);
drivers/net/ethernet/intel/idpf/idpf.h
159
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf.h
206
int (*intr_reg_init)(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf.h
752
static inline bool idpf_xdp_enabled(const struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf.h
754
return vport->adapter && vport->xdp_prog;
drivers/net/ethernet/intel/idpf/idpf.h
975
return np->vport;
drivers/net/ethernet/intel/idpf/idpf.h
996
static inline bool idpf_is_feature_ena(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf.h
999
return vport->netdev->features & feature;
drivers/net/ethernet/intel/idpf/idpf_dev.c
75
static int idpf_intr_reg_init(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_dev.c
78
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_dev.c
85
total_vecs = idpf_get_reserved_vecs(vport->adapter);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1082
static void idpf_add_port_stats(struct idpf_vport *vport, u64 **data)
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1089
start = u64_stats_fetch_begin(&vport->port_stats.stats_sync);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1091
idpf_add_one_ethtool_stat(&(*data)[i], vport,
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1093
} while (u64_stats_fetch_retry(&vport->port_stats.stats_sync, start));
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1103
static void idpf_collect_queue_stats(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1105
struct idpf_port_stats *pstats = &vport->port_stats;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1106
struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1211
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1217
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1227
idpf_collect_queue_stats(vport);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1228
idpf_add_port_stats(vport, &data);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1230
rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1246
vport_config = vport->adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1298
struct idpf_q_vector *idpf_find_rxq_vec(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1301
const struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1320
struct idpf_q_vector *idpf_find_txq_vec(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1323
const struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1327
return vport->txqs[q_num]->q_vector;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1369
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1373
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1378
rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1385
__idpf_get_q_coalesce(ec, idpf_find_rxq_vec(vport, q_num),
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1389
__idpf_get_q_coalesce(ec, idpf_find_txq_vec(vport, q_num),
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1460
netdev_err(qv->vport->netdev, "Cannot set coalesce usecs if adaptive enabled\n");
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1469
netdev_err(qv->vport->netdev,
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1478
netdev_info(qv->vport->netdev,
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1523
static int idpf_set_q_coalesce(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1530
qv = is_rxq ? idpf_find_rxq_vec(vport, q_num) :
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1531
idpf_find_txq_vec(vport, q_num);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1557
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1563
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1568
rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1571
err = idpf_set_q_coalesce(vport, q_coal, ec, i, false);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1578
err = idpf_set_q_coalesce(vport, q_coal, ec, i, true);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
16
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1603
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1607
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1611
err = idpf_set_q_coalesce(vport, q_coal, ec, q_num, false);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1618
err = idpf_set_q_coalesce(vport, q_coal, ec, q_num, true);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1686
static void idpf_get_timestamp_filters(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1695
if (!vport->tx_tstamp_caps ||
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1696
vport->adapter->ptp->tx_tstamp_access == IDPF_PTP_NONE)
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1716
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1722
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1724
if (!vport->adapter->ptp) {
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1729
if (idpf_is_cap_ena(vport->adapter, IDPF_OTHER_CAPS, VIRTCHNL2_CAP_PTP) &&
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1730
vport->adapter->ptp->clock) {
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1731
info->phc_index = ptp_clock_index(vport->adapter->ptp->clock);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1732
idpf_get_timestamp_filters(vport, info);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1734
pci_dbg(vport->adapter->pdev, "PTP clock not detected\n");
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1758
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1762
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1764
start = u64_stats_fetch_begin(&vport->tstamp_stats.stats_sync);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1765
ts_stats->pkts = u64_stats_read(&vport->tstamp_stats.packets);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1766
ts_stats->lost = u64_stats_read(&vport->tstamp_stats.flushed);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1767
ts_stats->err = u64_stats_read(&vport->tstamp_stats.discarded);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1768
} while (u64_stats_fetch_retry(&vport->tstamp_stats.stats_sync, start));
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
1773
rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
178
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
183
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
184
vport_config = vport->adapter->vport_config[np->vport_idx];
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
192
if (!idpf_sideband_action_ena(vport, fsp) ||
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
193
!idpf_sideband_flow_type_ena(vport, flow_type))
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
196
if (user_config->num_fsteer_fltrs > idpf_fsteer_max_rules(vport))
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
20
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
21
num_rxq = vport->dflt_qv_rsrc.num_rxq;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
230
rule->vport_id = cpu_to_le32(vport->vport_id);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
258
err = idpf_add_del_fsteer_filters(vport->adapter, rule,
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
303
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
306
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
307
vport_config = vport->adapter->vport_config[np->vport_idx];
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
314
rule->vport_id = cpu_to_le32(vport->vport_id);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
319
err = idpf_add_del_fsteer_filters(vport->adapter, rule,
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
42
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
422
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
428
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
439
rxhash_ena = idpf_is_feature_ena(vport, NETIF_F_RXHASH);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
47
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
472
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
477
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
479
adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
486
rss_data = &adapter->vport_config[vport->idx]->user_config.rss_data;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
503
err = idpf_config_rss(vport, rss_data);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
54
cmd->data = idpf_fsteer_max_rules(vport);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
562
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
574
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
576
idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
577
vport_config = vport->adapter->vport_config[idx];
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
585
dev = &vport->adapter->pdev->dev;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
609
err = idpf_initiate_soft_reset(vport, IDPF_SR_Q_CHANGE);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
637
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
640
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
644
ring->rx_pending = vport->dflt_qv_rsrc.rxq_desc_count;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
645
ring->tx_pending = vport->dflt_qv_rsrc.txq_desc_count;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
647
kring->tcp_data_split = idpf_vport_get_hsplit(vport);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
670
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
675
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
677
idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
705
rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
708
kring->tcp_data_split == idpf_vport_get_hsplit(vport))
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
711
if (!idpf_vport_set_hsplit(vport, kring->tcp_data_split)) {
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
719
config_data = &vport->adapter->vport_config[idx]->user_config;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
72
cmd->data = idpf_fsteer_max_rules(vport);
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
731
err = idpf_initiate_soft_reset(vport, IDPF_SR_Q_DESC_CHANGE);
drivers/net/ethernet/intel/idpf/idpf_idc.c
112
static int idpf_idc_init_aux_vport_dev(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_idc.c
114
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_idc.c
121
adapter->vport_params_recvd[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_idc.c
126
vport->vdev_info = kzalloc_obj(*vdev_info);
drivers/net/ethernet/intel/idpf/idpf_idc.c
127
if (!vport->vdev_info)
drivers/net/ethernet/intel/idpf/idpf_idc.c
130
cdev_info = vport->adapter->cdev_info;
drivers/net/ethernet/intel/idpf/idpf_idc.c
132
vdev_info = vport->vdev_info;
drivers/net/ethernet/intel/idpf/idpf_idc.c
133
vdev_info->vport_id = vport->vport_id;
drivers/net/ethernet/intel/idpf/idpf_idc.c
134
vdev_info->netdev = vport->netdev;
drivers/net/ethernet/intel/idpf/idpf_idc.c
139
vport->vdev_info = NULL;
drivers/net/ethernet/intel/idpf/idpf_idc.c
305
struct idpf_vport *vport = adapter->vports[i];
drivers/net/ethernet/intel/idpf/idpf_idc.c
307
if (!vport)
drivers/net/ethernet/intel/idpf/idpf_idc.c
310
if (!vport->vdev_info)
drivers/net/ethernet/intel/idpf/idpf_idc.c
311
err = idpf_idc_init_aux_vport_dev(vport);
drivers/net/ethernet/intel/idpf/idpf_idc.c
313
err = idpf_plug_vport_aux_dev(vport->adapter->cdev_info,
drivers/net/ethernet/intel/idpf/idpf_idc.c
314
vport->vdev_info);
drivers/net/ethernet/intel/idpf/idpf_idc.c
329
struct idpf_vport *vport = adapter->vports[i];
drivers/net/ethernet/intel/idpf/idpf_idc.c
331
if (!vport || !vport->vdev_info)
drivers/net/ethernet/intel/idpf/idpf_idc.c
334
idpf_unplug_aux_dev(vport->vdev_info->adev);
drivers/net/ethernet/intel/idpf/idpf_idc.c
335
vport->vdev_info->adev = NULL;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1006
if (test_and_clear_bit(IDPF_VPORT_DEL_QUEUES, vport->flags))
drivers/net/ethernet/intel/idpf/idpf_lib.c
1009
idpf_remove_features(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1011
vport->link_up = false;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1012
idpf_vport_intr_deinit(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1014
idpf_vport_queues_rel(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1035
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1041
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1043
idpf_vport_stop(vport, false);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1054
static void idpf_decfg_netdev(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1056
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1057
u16 idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1061
unregister_netdev(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1062
free_netdev(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1064
vport->netdev = NULL;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1073
static void idpf_vport_rel(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1075
struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1076
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1081
u16 idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1083
vport_config = adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
1089
idpf_send_destroy_vport_msg(adapter, vport->vport_id);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1101
vec_info.default_vport = vport->default_vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1115
kfree(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1125
static void idpf_vport_dealloc(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1127
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1128
unsigned int i = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1130
idpf_idc_deinit_vport_aux_device(vport->vdev_info);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1132
idpf_deinit_mac_addr(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1135
idpf_vport_stop(vport, true);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1136
idpf_decfg_netdev(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1139
idpf_del_all_mac_filters(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1140
idpf_del_all_flow_steer_filters(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1146
np->vport = NULL;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1149
idpf_vport_rel(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1161
static bool idpf_is_hsplit_supported(const struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1163
return idpf_is_queue_model_split(vport->dflt_qv_rsrc.rxq_model) &&
drivers/net/ethernet/intel/idpf/idpf_lib.c
1164
idpf_is_cap_ena_all(vport->adapter, IDPF_HSPLIT_CAPS,
drivers/net/ethernet/intel/idpf/idpf_lib.c
1176
u8 idpf_vport_get_hsplit(const struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1180
if (!idpf_is_hsplit_supported(vport))
drivers/net/ethernet/intel/idpf/idpf_lib.c
1183
config = &vport->adapter->vport_config[vport->idx]->user_config;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1197
bool idpf_vport_set_hsplit(const struct idpf_vport *vport, u8 val)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1201
if (!idpf_is_hsplit_supported(vport))
drivers/net/ethernet/intel/idpf/idpf_lib.c
1204
config = &vport->adapter->vport_config[vport->idx]->user_config;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1233
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1240
vport = kzalloc_obj(*vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1241
if (!vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1242
return vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1251
kfree(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1259
kfree(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1274
vport->idx = idx;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1275
vport->adapter = adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1276
vport->compln_clean_budget = IDPF_TX_COMPLQ_CLEAN_BUDGET;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1277
vport->default_vport = adapter->num_alloc_vports <
drivers/net/ethernet/intel/idpf/idpf_lib.c
1280
rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1286
err = idpf_vport_init(vport, max_q);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1305
err = idpf_init_rss_lut(vport, rss_data);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1310
adapter->vports[idx] = vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1311
adapter->vport_ids[idx] = idpf_get_vport_id(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1317
return vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1327
kfree(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1359
struct idpf_vport *vport = adapter->vports[i];
drivers/net/ethernet/intel/idpf/idpf_lib.c
1361
if (vport && !test_bit(IDPF_HR_RESET_IN_PROG, adapter->flags))
drivers/net/ethernet/intel/idpf/idpf_lib.c
1362
idpf_send_get_stats_msg(netdev_priv(vport->netdev),
drivers/net/ethernet/intel/idpf/idpf_lib.c
1363
&vport->port_stats);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1418
static void idpf_restore_features(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1420
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1423
idpf_restore_mac_filters(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1432
static int idpf_set_real_num_queues(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1434
int err, txq = vport->dflt_qv_rsrc.num_txq - vport->num_xdp_txq;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1436
err = netif_set_real_num_rx_queues(vport->netdev,
drivers/net/ethernet/intel/idpf/idpf_lib.c
1437
vport->dflt_qv_rsrc.num_rxq);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1441
return netif_set_real_num_tx_queues(vport->netdev, txq);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1448
static void idpf_up_complete(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1450
struct idpf_netdev_priv *np = netdev_priv(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1452
if (vport->link_up && !netif_carrier_ok(vport->netdev)) {
drivers/net/ethernet/intel/idpf/idpf_lib.c
1453
netif_carrier_on(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1454
netif_tx_start_all_queues(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1492
static int idpf_vport_open(struct idpf_vport *vport, bool rtnl)
drivers/net/ethernet/intel/idpf/idpf_lib.c
1494
struct idpf_netdev_priv *np = netdev_priv(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1495
struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1496
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1500
u32 vport_id = vport->vport_id;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1510
netif_carrier_off(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1512
err = idpf_vport_intr_alloc(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1515
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1519
err = idpf_vport_queues_alloc(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1523
vport_config = adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
1526
err = idpf_vport_queue_ids_init(vport, rsrc, chunks);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1529
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1533
err = idpf_vport_intr_init(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1536
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1540
err = idpf_queue_reg_init(vport, rsrc, chunks);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1543
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1547
err = idpf_rx_bufs_init_all(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1550
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1558
netdev_err(vport->netdev,
drivers/net/ethernet/intel/idpf/idpf_lib.c
1560
vport->vport_id, ERR_PTR(err));
drivers/net/ethernet/intel/idpf/idpf_lib.c
1564
idpf_vport_intr_ena(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1569
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1577
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1581
err = idpf_send_enable_queues_msg(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1584
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1591
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1596
idpf_restore_features(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1599
err = idpf_config_rss(vport, rss_data);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1602
vport->vport_id, err);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1606
idpf_up_complete(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1616
idpf_send_disable_queues_msg(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1622
idpf_vport_intr_deinit(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1624
idpf_vport_queues_rel(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1650
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1675
vport = idpf_vport_alloc(adapter, &max_q);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1676
if (!vport) {
drivers/net/ethernet/intel/idpf/idpf_lib.c
1684
index = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_lib.c
1693
err = idpf_check_supported_desc_ids(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1699
if (idpf_cfg_netdev(vport))
drivers/net/ethernet/intel/idpf/idpf_lib.c
2004
int idpf_initiate_soft_reset(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_lib.c
2007
struct idpf_netdev_priv *np = netdev_priv(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2009
struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2010
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2013
u32 vport_id = vport->vport_id;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2029
new_vport = kzalloc_obj(*vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2038
memcpy(new_vport, vport, offsetof(struct idpf_vport, link_up));
drivers/net/ethernet/intel/idpf/idpf_lib.c
2054
idpf_idc_vdev_mtu_event(vport->vdev_info,
drivers/net/ethernet/intel/idpf/idpf_lib.c
2065
vport_config = adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
2071
set_bit(IDPF_VPORT_DEL_QUEUES, vport->flags);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2072
idpf_vport_stop(vport, false);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2083
memcpy(vport, new_vport, offsetof(struct idpf_vport, link_up));
drivers/net/ethernet/intel/idpf/idpf_lib.c
2086
idpf_vport_alloc_vec_indexes(vport, &vport->dflt_qv_rsrc);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2088
err = idpf_set_real_num_queues(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2093
!netif_is_rxfh_configured(vport->netdev)) {
drivers/net/ethernet/intel/idpf/idpf_lib.c
2097
idpf_fill_dflt_rss_lut(vport, rss_data);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2101
err = idpf_vport_open(vport, false);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2111
idpf_vport_open(vport, false);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2117
idpf_idc_vdev_mtu_event(vport->vdev_info,
drivers/net/ethernet/intel/idpf/idpf_lib.c
2140
return idpf_add_mac_filter(np->vport, np, addr, true);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2168
idpf_del_mac_filter(np->vport, np, addr, true);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2252
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2256
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2258
adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2279
vport_config = adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
2281
err = idpf_config_rss(vport, rss_data);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2289
err = idpf_initiate_soft_reset(vport, IDPF_SR_RSC_CHANGE);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2298
loopback_ena = idpf_is_feature_ena(vport, NETIF_F_LOOPBACK);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2300
err = idpf_send_ena_dis_loopback_msg(adapter, vport->vport_id,
drivers/net/ethernet/intel/idpf/idpf_lib.c
2324
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2328
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2330
err = idpf_set_real_num_queues(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2334
err = idpf_vport_open(vport, false);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2351
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2355
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2359
err = idpf_initiate_soft_reset(vport, IDPF_SR_MTU_CHANGE);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2529
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2533
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2535
if (!idpf_is_cap_ena(vport->adapter, IDPF_OTHER_CAPS,
drivers/net/ethernet/intel/idpf/idpf_lib.c
2537
dev_info(&vport->adapter->pdev->dev, "Setting MAC address is not supported\n");
drivers/net/ethernet/intel/idpf/idpf_lib.c
2543
dev_info(&vport->adapter->pdev->dev, "Invalid MAC address: %pM\n",
drivers/net/ethernet/intel/idpf/idpf_lib.c
2552
ether_addr_copy(old_mac_addr, vport->default_mac_addr);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2553
ether_addr_copy(vport->default_mac_addr, addr->sa_data);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2554
vport_config = vport->adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
2555
err = idpf_add_mac_filter(vport, np, addr->sa_data, false);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2558
ether_addr_copy(vport->default_mac_addr, netdev->dev_addr);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2615
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2619
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2621
if (!vport->link_up) {
drivers/net/ethernet/intel/idpf/idpf_lib.c
2626
if (!idpf_ptp_is_vport_tx_tstamp_ena(vport) &&
drivers/net/ethernet/intel/idpf/idpf_lib.c
2627
!idpf_ptp_is_vport_rx_tstamp_ena(vport)) {
drivers/net/ethernet/intel/idpf/idpf_lib.c
2632
err = idpf_ptp_set_timestamp_mode(vport, config);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2642
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
2645
vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
2647
if (!vport->link_up) {
drivers/net/ethernet/intel/idpf/idpf_lib.c
2652
if (!idpf_ptp_is_vport_tx_tstamp_ena(vport) &&
drivers/net/ethernet/intel/idpf/idpf_lib.c
2653
!idpf_ptp_is_vport_rx_tstamp_ena(vport)) {
drivers/net/ethernet/intel/idpf/idpf_lib.c
2658
*config = vport->tstamp_config;
drivers/net/ethernet/intel/idpf/idpf_lib.c
449
static void idpf_del_all_flow_steer_filters(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
454
vport_config = vport->adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
523
static int idpf_del_mac_filter(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_lib.c
547
vport->default_mac_addr,
drivers/net/ethernet/intel/idpf/idpf_lib.c
604
static int idpf_add_mac_filter(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_lib.c
618
vport->default_mac_addr,
drivers/net/ethernet/intel/idpf/idpf_lib.c
630
static void idpf_del_all_mac_filters(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
635
vport_config = vport->adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
654
static void idpf_restore_mac_filters(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
659
vport_config = vport->adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
667
idpf_add_del_mac_filters(vport->adapter, vport_config,
drivers/net/ethernet/intel/idpf/idpf_lib.c
668
vport->default_mac_addr, vport->vport_id,
drivers/net/ethernet/intel/idpf/idpf_lib.c
679
static void idpf_remove_mac_filters(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
684
vport_config = vport->adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
692
idpf_add_del_mac_filters(vport->adapter, vport_config,
drivers/net/ethernet/intel/idpf/idpf_lib.c
693
vport->default_mac_addr, vport->vport_id,
drivers/net/ethernet/intel/idpf/idpf_lib.c
701
static void idpf_deinit_mac_addr(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
706
vport_config = vport->adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
710
f = idpf_find_mac_filter(vport_config, vport->default_mac_addr);
drivers/net/ethernet/intel/idpf/idpf_lib.c
724
static int idpf_init_mac_addr(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_lib.c
728
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
731
if (is_valid_ether_addr(vport->default_mac_addr)) {
drivers/net/ethernet/intel/idpf/idpf_lib.c
732
eth_hw_addr_set(netdev, vport->default_mac_addr);
drivers/net/ethernet/intel/idpf/idpf_lib.c
733
ether_addr_copy(netdev->perm_addr, vport->default_mac_addr);
drivers/net/ethernet/intel/idpf/idpf_lib.c
735
return idpf_add_mac_filter(vport, np, vport->default_mac_addr,
drivers/net/ethernet/intel/idpf/idpf_lib.c
748
err = idpf_add_mac_filter(vport, np, netdev->dev_addr, false);
drivers/net/ethernet/intel/idpf/idpf_lib.c
753
vport->default_mac_addr, netdev->dev_addr);
drivers/net/ethernet/intel/idpf/idpf_lib.c
754
ether_addr_copy(vport->default_mac_addr, netdev->dev_addr);
drivers/net/ethernet/intel/idpf/idpf_lib.c
790
struct idpf_vport *vport = adapter->vports[i];
drivers/net/ethernet/intel/idpf/idpf_lib.c
798
if (!vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
808
vport_config = adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_lib.c
824
static int idpf_cfg_netdev(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
826
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
834
u16 idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_lib.c
845
np->vport = vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
846
np->vport_idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_lib.c
847
np->vport_id = vport->vport_id;
drivers/net/ethernet/intel/idpf/idpf_lib.c
849
vport->netdev = netdev;
drivers/net/ethernet/intel/idpf/idpf_lib.c
851
return idpf_init_mac_addr(vport, netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
860
vport->netdev = netdev;
drivers/net/ethernet/intel/idpf/idpf_lib.c
862
np->vport = vport;
drivers/net/ethernet/intel/idpf/idpf_lib.c
864
np->vport_idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_lib.c
865
np->vport_id = vport->vport_id;
drivers/net/ethernet/intel/idpf/idpf_lib.c
871
err = idpf_init_mac_addr(vport, netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
873
free_netdev(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
874
vport->netdev = NULL;
drivers/net/ethernet/intel/idpf/idpf_lib.c
889
netdev->max_mtu = vport->max_mtu;
drivers/net/ethernet/intel/idpf/idpf_lib.c
898
idpf_vport_is_cap_ena(vport, VIRTCHNL2_VPORT_SIDEBAND_FLOW_STEER))
drivers/net/ethernet/intel/idpf/idpf_lib.c
926
idpf_xdp_set_features(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
966
static void idpf_remove_features(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_lib.c
968
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
971
idpf_remove_mac_filters(vport);
drivers/net/ethernet/intel/idpf/idpf_lib.c
979
static void idpf_vport_stop(struct idpf_vport *vport, bool rtnl)
drivers/net/ethernet/intel/idpf/idpf_lib.c
981
struct idpf_netdev_priv *np = netdev_priv(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
982
struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_lib.c
983
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_lib.c
985
u32 vport_id = vport->vport_id;
drivers/net/ethernet/intel/idpf/idpf_lib.c
993
netif_carrier_off(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
994
netif_tx_disable(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_lib.c
996
chunks = &adapter->vport_config[vport->idx]->qid_reg_info;
drivers/net/ethernet/intel/idpf/idpf_lib.c
999
idpf_send_disable_queues_msg(vport);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
386
idpf_for_each_vport(adapter, vport) {
drivers/net/ethernet/intel/idpf/idpf_ptp.c
390
if (!vport || !vport->dflt_qv_rsrc.rxq_grps)
drivers/net/ethernet/intel/idpf/idpf_ptp.c
393
rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
616
u64 idpf_ptp_extend_ts(struct idpf_vport *vport, u64 in_tstamp)
drivers/net/ethernet/intel/idpf/idpf_ptp.c
618
struct idpf_ptp *ptp = vport->adapter->ptp;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
624
u64_stats_update_begin(&vport->tstamp_stats.stats_sync);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
625
u64_stats_inc(&vport->tstamp_stats.discarded);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
626
u64_stats_update_end(&vport->tstamp_stats.stats_sync);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
684
static void idpf_ptp_set_rx_tstamp(struct idpf_vport *vport, int rx_filter)
drivers/net/ethernet/intel/idpf/idpf_ptp.c
686
struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
693
vport->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
695
vport->tstamp_config.rx_filter = HWTSTAMP_FILTER_ALL;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
729
int idpf_ptp_set_timestamp_mode(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_ptp.c
736
if (!idpf_ptp_is_vport_tx_tstamp_ena(vport))
drivers/net/ethernet/intel/idpf/idpf_ptp.c
743
vport->tstamp_config.tx_type = config->tx_type;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
744
idpf_ptp_set_rx_tstamp(vport, config->rx_filter);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
745
*config = vport->tstamp_config;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
756
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
758
vport = container_of(work, struct idpf_vport, tstamp_task);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
760
idpf_ptp_get_tx_tstamp(vport);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
846
static void idpf_ptp_release_vport_tstamp(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_ptp.c
851
cancel_work_sync(&vport->tstamp_task);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
854
spin_lock_bh(&vport->tx_tstamp_caps->latches_lock);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
856
head = &vport->tx_tstamp_caps->latches_free;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
863
head = &vport->tx_tstamp_caps->latches_in_use;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
864
u64_stats_update_begin(&vport->tstamp_stats.stats_sync);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
866
u64_stats_inc(&vport->tstamp_stats.flushed);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
874
u64_stats_update_end(&vport->tstamp_stats.stats_sync);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
876
spin_unlock_bh(&vport->tx_tstamp_caps->latches_lock);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
878
kfree(vport->tx_tstamp_caps);
drivers/net/ethernet/intel/idpf/idpf_ptp.c
879
vport->tx_tstamp_caps = NULL;
drivers/net/ethernet/intel/idpf/idpf_ptp.c
890
idpf_for_each_vport(adapter, vport) {
drivers/net/ethernet/intel/idpf/idpf_ptp.c
891
if (!idpf_ptp_is_vport_tx_tstamp_ena(vport))
drivers/net/ethernet/intel/idpf/idpf_ptp.c
894
idpf_ptp_release_vport_tstamp(vport);
drivers/net/ethernet/intel/idpf/idpf_ptp.h
238
static inline bool idpf_ptp_is_vport_tx_tstamp_ena(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_ptp.h
240
if (!vport->tx_tstamp_caps)
drivers/net/ethernet/intel/idpf/idpf_ptp.h
258
static inline bool idpf_ptp_is_vport_rx_tstamp_ena(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_ptp.h
260
if (!vport->adapter->ptp ||
drivers/net/ethernet/intel/idpf/idpf_ptp.h
261
vport->adapter->ptp->get_dev_clk_time_access == IDPF_PTP_NONE)
drivers/net/ethernet/intel/idpf/idpf_ptp.h
280
int idpf_ptp_get_vport_tstamps_caps(struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/idpf_ptp.h
281
int idpf_ptp_get_tx_tstamp(struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/idpf_ptp.h
282
int idpf_ptp_set_timestamp_mode(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_ptp.h
284
u64 idpf_ptp_extend_ts(struct idpf_vport *vport, u64 in_tstamp);
drivers/net/ethernet/intel/idpf/idpf_ptp.h
343
static inline int idpf_ptp_get_vport_tstamps_caps(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_ptp.h
348
static inline int idpf_ptp_get_tx_tstamp(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_ptp.h
354
idpf_ptp_set_timestamp_mode(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_ptp.h
360
static inline u64 idpf_ptp_extend_ts(struct idpf_vport *vport, u32 in_tstamp)
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1021
err = idpf_tx_desc_alloc(vport, q->txq);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1024
err = idpf_compl_desc_alloc(vport, q->complq);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1080
itr = qv->vport->tx_itr_profile[qv->tx_dim.profile_ix];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1091
itr = qv->vport->rx_itr_profile[qv->rx_dim.profile_ix];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1117
u32 xdp_txq_offset = qv->vport->dflt_qv_rsrc.xdp_txq_offset;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1119
struct idpf_vport *vport = qv->vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1128
qs = idpf_alloc_queue_set(vport->adapter, &vport->dflt_qv_rsrc,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1129
vport->vport_id, num);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1163
qs->qs[num++].txq = vport->txqs[idx];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1166
qs->qs[num++].complq = vport->txqs[idx]->complq;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1187
static int idpf_qp_enable(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1190
const struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1194
q_vector = idpf_find_rxq_vec(vport, qid);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1196
err = idpf_init_queue_set(vport, qs);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1198
netdev_err(vport->netdev, "Could not initialize queues in pair %u: %pe\n",
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1229
netdev_err(vport->netdev, "Could not configure queues in pair %u: %pe\n",
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1236
netdev_err(vport->netdev, "Could not enable queues in pair %u: %pe\n",
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1244
netif_start_subqueue(vport->netdev, qid);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1249
static int idpf_qp_disable(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1255
q_vector = idpf_find_rxq_vec(vport, qid);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1256
netif_stop_subqueue(vport->netdev, qid);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1263
netdev_err(vport->netdev, "Could not disable queues in pair %u: %pe\n",
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1284
int idpf_qp_switch(struct idpf_vport *vport, u32 qid, bool en)
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1286
struct idpf_q_vector *q_vector = idpf_find_rxq_vec(vport, qid);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1289
if (idpf_find_txq_vec(vport, qid) != q_vector)
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1296
return en ? idpf_qp_enable(vport, qs, qid) :
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1297
idpf_qp_disable(vport, qs, qid);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1413
void idpf_vport_queues_rel(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1421
idpf_xdpsqs_put(vport);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1424
kfree(vport->txqs);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1425
vport->txqs = NULL;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1439
static int idpf_vport_init_fast_path_txqs(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1442
struct idpf_ptp_vport_tx_tstamp_caps *caps = vport->tx_tstamp_caps;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1443
struct work_struct *tstamp_task = &vport->tstamp_task;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1446
vport->txqs = kzalloc_objs(*vport->txqs, rsrc->num_txq);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1447
if (!vport->txqs)
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1450
vport->num_txq = rsrc->num_txq;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1455
vport->txqs[k] = tx_grp->txqs[j];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1456
vport->txqs[k]->idx = k;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1461
vport->txqs[k]->cached_tstamp_caps = caps;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1462
vport->txqs[k]->tstamp_task = tstamp_task;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1475
void idpf_vport_init_num_qs(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1480
u16 idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1482
config_data = &vport->adapter->vport_config[idx]->user_config;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1498
vport->xdp_prog = config_data->xdp_prog;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1499
if (idpf_xdp_enabled(vport)) {
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1501
vport->num_xdp_txq = le16_to_cpu(vport_msg->num_tx_q) -
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1503
vport->xdpsq_share = libeth_xdpsq_shared(vport->num_xdp_txq);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1506
vport->num_xdp_txq = 0;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1507
vport->xdpsq_share = false;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1525
void idpf_vport_calc_num_q_desc(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1531
u16 idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1533
config_data = &vport->adapter->vport_config[idx]->user_config;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1711
static int idpf_txq_group_alloc(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1722
flow_sch_en = !idpf_is_cap_ena(vport->adapter, IDPF_OTHER_CAPS,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1727
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1729
tx_qgrp->vport = vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1745
q->netdev = vport->netdev;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1750
q->clean_budget = vport->compln_clean_budget;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1752
vport->crc_enable);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1778
tx_qgrp->complq->netdev = vport->netdev;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1779
tx_qgrp->complq->clean_budget = vport->compln_clean_budget;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1801
static int idpf_rxq_group_alloc(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1805
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1813
hs = idpf_vport_get_hsplit(vport) == ETHTOOL_TCP_DATA_SPLIT_ENABLED;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1814
rsc = idpf_is_feature_ena(vport, NETIF_F_GRO_HW);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1819
rx_qgrp->vport = vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1912
q->rx_max_pkt_size = vport->netdev->mtu +
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1932
static int idpf_vport_queue_grp_alloc_all(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1940
err = idpf_txq_group_alloc(vport, rsrc, num_txq);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1944
err = idpf_rxq_group_alloc(vport, rsrc, num_rxq);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1965
int idpf_vport_queues_alloc(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1970
err = idpf_vport_queue_grp_alloc_all(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1974
err = idpf_vport_init_fast_path_txqs(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1978
err = idpf_xdpsqs_get(vport);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1982
err = idpf_tx_desc_alloc_all(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1986
err = idpf_rx_desc_alloc_all(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
1993
idpf_vport_queues_rel(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
200
static int idpf_tx_desc_alloc(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
228
idpf_xsk_setup_queue(vport, tx_q, VIRTCHNL2_QUEUE_TYPE_TX);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
270
static int idpf_compl_desc_alloc(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
289
idpf_xsk_setup_queue(vport, complq,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
302
static int idpf_tx_desc_alloc_all(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
314
err = idpf_tx_desc_alloc(vport, txq);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3146
const struct idpf_vport *vport = idpf_netdev_to_vport(netdev);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3150
vport->num_txq - vport->num_xdp_txq)) {
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3156
tx_q = vport->txqs[skb_get_queue_mapping(skb)];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
316
pci_err(vport->adapter->pdev,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3167
if (idpf_is_queue_model_split(vport->dflt_qv_rsrc.txq_model))
drivers/net/ethernet/intel/idpf/idpf_txrx.c
327
err = idpf_compl_desc_alloc(vport, rsrc->txq_grps[i].complq);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
329
pci_err(vport->adapter->pdev,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3841
struct net_device *dev = q_vector->vport->netdev;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3857
static void idpf_vport_intr_rel_irq(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3860
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4038
static int idpf_vport_intr_req_irq(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4041
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4046
if_name = netdev_name(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4070
netdev_err(vport->netdev,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4115
static void idpf_vport_intr_ena_irq_all(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4127
itr = vport->tx_itr_profile[qv->tx_dim.profile_ix];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4135
itr = vport->rx_itr_profile[qv->rx_dim.profile_ix];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4153
void idpf_vport_intr_deinit(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4159
idpf_vport_intr_rel_irq(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4169
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4175
vport = q_vector->vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4177
if (dim->profile_ix >= ARRAY_SIZE(vport->tx_itr_profile))
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4178
dim->profile_ix = ARRAY_SIZE(vport->tx_itr_profile) - 1;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4181
itr = vport->tx_itr_profile[dim->profile_ix];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4195
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4201
vport = q_vector->vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4203
if (dim->profile_ix >= ARRAY_SIZE(vport->rx_itr_profile))
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4204
dim->profile_ix = ARRAY_SIZE(vport->rx_itr_profile) - 1;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4207
itr = vport->rx_itr_profile[dim->profile_ix];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4370
static void idpf_vport_intr_map_vector_to_qs(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4373
u16 num_txq_grp = rsrc->num_txq_grp - vport->num_xdp_txq;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4451
for (unsigned int i = 0; i < vport->num_xdp_txq; i++) {
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4455
xdpsq = vport->txqs[rsrc->xdp_txq_offset + i];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4459
qv = idpf_find_rxq_vec(vport, i);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4476
static int idpf_vport_intr_init_vec_idx(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4479
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4516
static void idpf_vport_intr_napi_add_all(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4532
irq_num = vport->adapter->msix_entries[qv_idx].vector;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4534
netif_napi_add_config(vport->netdev, &q_vector->napi,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4549
int idpf_vport_intr_alloc(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4557
u16 idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4559
user_config = &vport->adapter->vport_config[idx]->user_config;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4579
q_vector->vport = vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4633
int idpf_vport_intr_init(struct idpf_vport *vport, struct idpf_q_vec_rsrc *rsrc)
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4637
err = idpf_vport_intr_init_vec_idx(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4641
idpf_vport_intr_map_vector_to_qs(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4642
idpf_vport_intr_napi_add_all(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4644
err = vport->adapter->dev_ops.reg_ops.intr_reg_init(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4648
err = idpf_vport_intr_req_irq(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4660
void idpf_vport_intr_ena(struct idpf_vport *vport, struct idpf_q_vec_rsrc *rsrc)
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4663
idpf_vport_intr_ena_irq_all(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4673
int idpf_config_rss(struct idpf_vport *vport, struct idpf_rss_data *rss_data)
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4675
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4676
u32 vport_id = vport->vport_id;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4691
void idpf_fill_dflt_rss_lut(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4694
u16 num_active_rxq = vport->dflt_qv_rsrc.num_rxq;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4708
int idpf_init_rss_lut(struct idpf_vport *vport, struct idpf_rss_data *rss_data)
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4720
idpf_fill_dflt_rss_lut(vport, rss_data);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
558
.xdp = idpf_xdp_enabled(bufq->q_vector->vport),
drivers/net/ethernet/intel/idpf/idpf_txrx.c
760
.xdp = idpf_xdp_enabled(bufq->q_vector->vport),
drivers/net/ethernet/intel/idpf/idpf_txrx.c
787
int idpf_rx_bufs_init_all(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
793
idpf_xdp_copy_prog_to_rqs(rsrc, vport->xdp_prog);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
843
static int idpf_rx_desc_alloc(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
846
struct device *dev = &vport->adapter->pdev->dev;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
865
idpf_xsk_setup_queue(vport, rxq, VIRTCHNL2_QUEUE_TYPE_RX);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
877
static int idpf_bufq_desc_alloc(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
880
struct device *dev = &vport->adapter->pdev->dev;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
894
idpf_xsk_setup_queue(vport, bufq, VIRTCHNL2_QUEUE_TYPE_RX_BUFFER);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
906
static int idpf_rx_desc_alloc_all(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
928
err = idpf_rx_desc_alloc(vport, q);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
930
pci_err(vport->adapter->pdev,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
945
err = idpf_bufq_desc_alloc(vport, q);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
947
pci_err(vport->adapter->pdev,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
963
static int idpf_init_queue_set(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
977
err = idpf_rx_desc_alloc(vport, q->rxq);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
992
err = idpf_bufq_desc_alloc(vport, bufq);
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1078
void idpf_vport_init_num_qs(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1081
void idpf_vport_calc_num_q_desc(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1087
int idpf_vport_queues_alloc(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1089
void idpf_vport_queues_rel(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1092
int idpf_vport_intr_alloc(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1095
void idpf_vport_intr_deinit(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1097
int idpf_vport_intr_init(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1099
void idpf_vport_intr_ena(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1101
void idpf_fill_dflt_rss_lut(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1103
int idpf_config_rss(struct idpf_vport *vport, struct idpf_rss_data *rss_data);
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1104
int idpf_init_rss_lut(struct idpf_vport *vport, struct idpf_rss_data *rss_data);
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1106
int idpf_rx_bufs_init_all(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1109
struct idpf_q_vector *idpf_find_rxq_vec(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1111
struct idpf_q_vector *idpf_find_txq_vec(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_txrx.h
1113
int idpf_qp_switch(struct idpf_vport *vport, u32 qid, bool en);
drivers/net/ethernet/intel/idpf/idpf_txrx.h
396
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.h
939
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_txrx.h
970
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
74
static int idpf_vf_intr_reg_init(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
77
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_vf_dev.c
84
total_vecs = idpf_get_reserved_vecs(vport->adapter);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1413
static int __idpf_queue_reg_init(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1417
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1473
int idpf_queue_reg_init(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1494
num_regs = __idpf_queue_reg_init(vport, rsrc, reg_vals, num_regs,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1513
num_regs = __idpf_queue_reg_init(vport, rsrc, reg_vals, num_regs,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1528
num_regs = __idpf_queue_reg_init(vport, rsrc, reg_vals, num_regs,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1627
int idpf_check_supported_desc_ids(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1629
struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1630
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
1634
vport_msg = adapter->vport_params_recvd[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2516
int idpf_send_enable_queues_msg(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2518
return idpf_send_ena_dis_queues_msg(vport->adapter,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2519
&vport->dflt_qv_rsrc,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2520
vport->vport_id, true);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2530
int idpf_send_disable_queues_msg(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2534
err = idpf_send_ena_dis_queues_msg(vport->adapter,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2535
&vport->dflt_qv_rsrc,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2536
vport->vport_id, false);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2540
return idpf_wait_for_marker_event(vport);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2874
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2879
vport = idpf_vid_to_vport(adapter, vport_id);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2880
if (!vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2883
rxhash_ena = idpf_is_feature_ena(vport, NETIF_F_RXHASH);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3711
int idpf_vport_alloc_vec_indexes(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3723
req = max(rsrc->num_txq - vport->num_xdp_txq, rsrc->num_rxq) +
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3727
vec_info.default_vport = vport->default_vport;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3728
vec_info.index = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3730
num_alloc_vecs = idpf_req_rel_vector_indexes(vport->adapter,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3734
dev_err(&vport->adapter->pdev->dev, "Vector distribution failed: %d\n",
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3753
int idpf_vport_init(struct idpf_vport *vport, struct idpf_vport_max_q *max_q)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3755
struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3756
struct idpf_adapter *adapter = vport->adapter;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3762
u16 idx = vport->idx;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3781
vport->vport_type = le16_to_cpu(vport_msg->vport_type);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3782
vport->vport_id = le32_to_cpu(vport_msg->vport_id);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3788
ether_addr_copy(vport->default_mac_addr, vport_msg->default_mac_addr);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3789
vport->max_mtu = le16_to_cpu(vport_msg->max_mtu) - LIBETH_RX_LL_LEN;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3792
memcpy(vport->rx_itr_profile, rx_itr, IDPF_DIM_PROFILE_SLOTS);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3793
memcpy(vport->tx_itr_profile, tx_itr, IDPF_DIM_PROFILE_SLOTS);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3795
idpf_vport_set_hsplit(vport, ETHTOOL_TCP_DATA_SPLIT_ENABLED);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3797
idpf_vport_init_num_qs(vport, vport_msg, rsrc);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3798
idpf_vport_calc_num_q_desc(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3800
idpf_vport_alloc_vec_indexes(vport, rsrc);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3802
vport->crc_enable = adapter->crc_enable;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3808
err = idpf_ptp_get_vport_tstamps_caps(vport);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3811
pci_dbg(vport->adapter->pdev, "Tx timestamping not supported\n");
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3815
INIT_WORK(&vport->tstamp_task, idpf_tstamp_task);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3917
static int __idpf_vport_queue_ids_init(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3992
int idpf_vport_queue_ids_init(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4011
num_ids = __idpf_vport_queue_ids_init(vport, rsrc, qids, num_ids,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4025
num_ids = __idpf_vport_queue_ids_init(vport, rsrc, qids, num_ids,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4041
num_ids = __idpf_vport_queue_ids_init(vport, rsrc, qids,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4058
num_ids = __idpf_vport_queue_ids_init(vport, rsrc, qids,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4076
int idpf_vport_adjust_qs(struct idpf_vport *vport, struct idpf_q_vec_rsrc *rsrc)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4083
err = idpf_vport_calc_total_qs(vport->adapter, vport->idx, &vport_msg,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4088
idpf_vport_init_num_qs(vport, &vport_msg, rsrc);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4130
bool idpf_vport_is_cap_ena(struct idpf_vport *vport, u16 flag)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4134
vport_msg = vport->adapter->vport_params_recvd[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4146
bool idpf_sideband_flow_type_ena(struct idpf_vport *vport, u32 flow_type)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4151
vport_msg = vport->adapter->vport_params_recvd[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4171
bool idpf_sideband_action_ena(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4177
vport_msg = vport->adapter->vport_params_recvd[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4188
unsigned int idpf_fsteer_max_rules(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4192
vport_msg = vport->adapter->vport_params_recvd[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4202
u32 idpf_get_vport_id(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4206
vport_msg = vport->adapter->vport_params_recvd[vport->idx];
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4242
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4261
vport = idpf_vid_to_vport(adapter, le32_to_cpu(ma_list->vport_id));
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
4262
if (!vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
54
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
56
vport = idpf_vid_to_vport(adapter, le32_to_cpu(v2e->vport_id));
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
57
if (!vport) {
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
62
np = netdev_priv(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
66
if (vport->link_up == v2e->link_status)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
69
vport->link_up = v2e->link_status;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
74
if (vport->link_up) {
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
75
netif_tx_start_all_queues(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
76
netif_carrier_on(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
78
netif_tx_stop_all_queues(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
79
netif_carrier_off(vport->netdev);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
858
static int idpf_wait_for_marker_event(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
862
qs = idpf_alloc_queue_set(vport->adapter, &vport->dflt_qv_rsrc,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
863
vport->vport_id, vport->num_txq);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
869
qs->qs[i].txq = vport->txqs[i];
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
108
int idpf_queue_reg_init(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
111
int idpf_vport_queue_ids_init(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
121
bool idpf_vport_is_cap_ena(struct idpf_vport *vport, u16 flag);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
122
bool idpf_sideband_flow_type_ena(struct idpf_vport *vport, u32 flow_type);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
123
bool idpf_sideband_action_ena(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
125
unsigned int idpf_fsteer_max_rules(struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
158
int idpf_send_disable_queues_msg(struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
159
int idpf_send_enable_queues_msg(struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
164
int idpf_vport_init(struct idpf_vport *vport, struct idpf_vport_max_q *max_q);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
165
u32 idpf_get_vport_id(struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
172
int idpf_vport_adjust_qs(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
186
int idpf_vport_alloc_vec_indexes(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h
205
int idpf_check_supported_desc_ids(struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
326
int idpf_ptp_get_vport_tstamps_caps(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
341
struct idpf_ptp *ptp = vport->adapter->ptp;
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
360
send_tx_tstamp_caps.vport_id = cpu_to_le32(vport->vport_id);
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
363
reply_sz = idpf_vc_xn_exec(vport->adapter, &xn_params);
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
422
vport->tx_tstamp_caps = tstamp_caps;
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
492
idpf_ptp_get_tstamp_value(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
502
tx_tstamp_caps = vport->tx_tstamp_caps;
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
515
tstamp = idpf_ptp_extend_ts(vport, ptp_tx_tstamp->tstamp);
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
524
u64_stats_update_begin(&vport->tstamp_stats.stats_sync);
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
525
u64_stats_inc(&vport->tstamp_stats.packets);
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
526
u64_stats_update_end(&vport->tstamp_stats.stats_sync);
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
561
idpf_for_each_vport(adapter, vport) {
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
562
if (!vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
565
if (vport->vport_id == vport_id) {
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
566
tstamp_vport = vport;
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
620
int idpf_ptp_get_tx_tstamp(struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
636
tx_tstamp_caps = vport->tx_tstamp_caps;
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
663
send_tx_tstamp_msg->vport_id = cpu_to_le32(vport->vport_id);
drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c
668
reply_sz = idpf_vc_xn_exec(vport->adapter, &xn_params);
drivers/net/ethernet/intel/idpf/xdp.c
152
int idpf_xdpsqs_get(const struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/xdp.c
158
if (!idpf_xdp_enabled(vport))
drivers/net/ethernet/intel/idpf/xdp.c
161
timers = kvzalloc_objs(*timers, vport->num_xdp_txq);
drivers/net/ethernet/intel/idpf/xdp.c
165
for (u32 i = 0; i < vport->num_xdp_txq; i++) {
drivers/net/ethernet/intel/idpf/xdp.c
176
dev = vport->netdev;
drivers/net/ethernet/intel/idpf/xdp.c
177
sqs = vport->dflt_qv_rsrc.xdp_txq_offset;
drivers/net/ethernet/intel/idpf/xdp.c
179
for (u32 i = sqs; i < vport->num_txq; i++) {
drivers/net/ethernet/intel/idpf/xdp.c
180
struct idpf_tx_queue *xdpsq = vport->txqs[i];
drivers/net/ethernet/intel/idpf/xdp.c
193
libeth_xdpsq_get(&xdpsq->xdp_lock, dev, vport->xdpsq_share);
drivers/net/ethernet/intel/idpf/xdp.c
205
void idpf_xdpsqs_put(const struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/xdp.c
210
if (!idpf_xdp_enabled(vport))
drivers/net/ethernet/intel/idpf/xdp.c
213
dev = vport->netdev;
drivers/net/ethernet/intel/idpf/xdp.c
214
sqs = vport->dflt_qv_rsrc.xdp_txq_offset;
drivers/net/ethernet/intel/idpf/xdp.c
216
for (u32 i = sqs; i < vport->num_txq; i++) {
drivers/net/ethernet/intel/idpf/xdp.c
217
struct idpf_tx_queue *xdpsq = vport->txqs[i];
drivers/net/ethernet/intel/idpf/xdp.c
369
const struct idpf_vport *vport = np->vport;
drivers/net/ethernet/intel/idpf/xdp.c
372
if (unlikely(!netif_carrier_ok(dev) || !vport->link_up))
drivers/net/ethernet/intel/idpf/xdp.c
375
xdp_txq_offset = vport->dflt_qv_rsrc.xdp_txq_offset;
drivers/net/ethernet/intel/idpf/xdp.c
378
&vport->txqs[xdp_txq_offset],
drivers/net/ethernet/intel/idpf/xdp.c
379
vport->num_xdp_txq,
drivers/net/ethernet/intel/idpf/xdp.c
440
void idpf_xdp_set_features(const struct idpf_vport *vport)
drivers/net/ethernet/intel/idpf/xdp.c
442
if (!idpf_is_queue_model_split(vport->dflt_qv_rsrc.rxq_model))
drivers/net/ethernet/intel/idpf/xdp.c
445
libeth_xdp_set_features_noredir(vport->netdev, &idpf_xdpmo,
drivers/net/ethernet/intel/idpf/xdp.c
446
idpf_get_max_tx_bufs(vport->adapter),
drivers/net/ethernet/intel/idpf/xdp.c
450
static int idpf_xdp_setup_prog(struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/xdp.c
453
const struct idpf_netdev_priv *np = netdev_priv(vport->netdev);
drivers/net/ethernet/intel/idpf/xdp.c
454
const struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/xdp.c
459
cfg = vport->adapter->vport_config[vport->idx];
drivers/net/ethernet/intel/idpf/xdp.c
461
if (test_bit(IDPF_REMOVE_IN_PROG, vport->adapter->flags) ||
drivers/net/ethernet/intel/idpf/xdp.c
463
!!vport->xdp_prog == !!prog) {
drivers/net/ethernet/intel/idpf/xdp.c
467
old = xchg(&vport->xdp_prog, prog);
drivers/net/ethernet/intel/idpf/xdp.c
476
if (!vport->num_xdp_txq && vport->num_txq == cfg->max_q.max_txq) {
drivers/net/ethernet/intel/idpf/xdp.c
48
const struct idpf_vport *vport = rxq->q_vector->vport;
drivers/net/ethernet/intel/idpf/xdp.c
485
ret = idpf_initiate_soft_reset(vport, IDPF_SR_Q_CHANGE);
drivers/net/ethernet/intel/idpf/xdp.c
497
libeth_xdp_set_redirect(vport->netdev, vport->xdp_prog);
drivers/net/ethernet/intel/idpf/xdp.c
504
struct idpf_vport *vport;
drivers/net/ethernet/intel/idpf/xdp.c
508
vport = idpf_netdev_to_vport(dev);
drivers/net/ethernet/intel/idpf/xdp.c
510
if (!idpf_is_queue_model_split(vport->dflt_qv_rsrc.txq_model))
drivers/net/ethernet/intel/idpf/xdp.c
515
ret = idpf_xdp_setup_prog(vport, xdp);
drivers/net/ethernet/intel/idpf/xdp.c
518
ret = idpf_xsk_pool_setup(vport, xdp);
drivers/net/ethernet/intel/idpf/xdp.c
57
err = __xdp_rxq_info_reg(&rxq->xdp_rxq, vport->netdev, rxq->idx,
drivers/net/ethernet/intel/idpf/xdp.c
63
rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/xdp.c
82
rxq->xdpsqs = &vport->txqs[rsrc->xdp_txq_offset];
drivers/net/ethernet/intel/idpf/xdp.c
83
rxq->num_xdp_txq = vport->num_xdp_txq;
drivers/net/ethernet/intel/idpf/xdp.h
18
int idpf_xdpsqs_get(const struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/xdp.h
189
void idpf_xdp_set_features(const struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/xdp.h
19
void idpf_xdpsqs_put(const struct idpf_vport *vport);
drivers/net/ethernet/intel/idpf/xsk.c
100
void idpf_xsk_setup_queue(const struct idpf_vport *vport, void *q,
drivers/net/ethernet/intel/idpf/xsk.c
103
if (!idpf_xdp_enabled(vport))
drivers/net/ethernet/intel/idpf/xsk.c
108
idpf_xsk_setup_rxq(vport, q);
drivers/net/ethernet/intel/idpf/xsk.c
111
idpf_xsk_setup_bufq(vport, q);
drivers/net/ethernet/intel/idpf/xsk.c
114
idpf_xsk_setup_txq(vport, q);
drivers/net/ethernet/intel/idpf/xsk.c
117
idpf_xsk_setup_complq(vport, q);
drivers/net/ethernet/intel/idpf/xsk.c
12
static void idpf_xsk_setup_rxq(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/xsk.c
17
pool = xsk_get_pool_from_qid(vport->netdev, rxq->idx);
drivers/net/ethernet/intel/idpf/xsk.c
26
static void idpf_xsk_setup_bufq(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/xsk.c
29
const struct idpf_q_vec_rsrc *rsrc = &vport->dflt_qv_rsrc;
drivers/net/ethernet/intel/idpf/xsk.c
45
pool = xsk_get_pool_from_qid(vport->netdev, qid);
drivers/net/ethernet/intel/idpf/xsk.c
54
static void idpf_xsk_setup_txq(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/xsk.c
554
int idpf_xsk_pool_setup(struct idpf_vport *vport, struct netdev_bpf *bpf)
drivers/net/ethernet/intel/idpf/xsk.c
565
netdev_name(vport->netdev),
drivers/net/ethernet/intel/idpf/xsk.c
571
restart = idpf_xdp_enabled(vport) && netif_running(vport->netdev);
drivers/net/ethernet/intel/idpf/xsk.c
575
ret = idpf_qp_switch(vport, qid, false);
drivers/net/ethernet/intel/idpf/xsk.c
579
netdev_name(vport->netdev), qid,
drivers/net/ethernet/intel/idpf/xsk.c
585
ret = libeth_xsk_setup_pool(vport->netdev, qid, pool);
drivers/net/ethernet/intel/idpf/xsk.c
589
netdev_name(vport->netdev), qid,
drivers/net/ethernet/intel/idpf/xsk.c
597
ret = idpf_qp_switch(vport, qid, true);
drivers/net/ethernet/intel/idpf/xsk.c
601
netdev_name(vport->netdev), qid,
drivers/net/ethernet/intel/idpf/xsk.c
609
libeth_xsk_setup_pool(vport->netdev, qid, false);
drivers/net/ethernet/intel/idpf/xsk.c
617
const struct idpf_vport *vport = np->vport;
drivers/net/ethernet/intel/idpf/xsk.c
623
if (unlikely(!vport->link_up))
drivers/net/ethernet/intel/idpf/xsk.c
626
if (unlikely(!vport->num_xdp_txq))
drivers/net/ethernet/intel/idpf/xsk.c
629
q_vector = idpf_find_rxq_vec(vport, qid);
drivers/net/ethernet/intel/idpf/xsk.c
65
qid = txq->idx - vport->dflt_qv_rsrc.xdp_txq_offset;
drivers/net/ethernet/intel/idpf/xsk.c
67
pool = xsk_get_pool_from_qid(vport->netdev, qid);
drivers/net/ethernet/intel/idpf/xsk.c
79
static void idpf_xsk_setup_complq(const struct idpf_vport *vport,
drivers/net/ethernet/intel/idpf/xsk.c
91
vport->dflt_qv_rsrc.xdp_txq_offset;
drivers/net/ethernet/intel/idpf/xsk.c
93
pool = xsk_get_pool_from_qid(vport->netdev, qid);
drivers/net/ethernet/intel/idpf/xsk.h
18
void idpf_xsk_setup_queue(const struct idpf_vport *vport, void *q,
drivers/net/ethernet/intel/idpf/xsk.h
30
int idpf_xsk_pool_setup(struct idpf_vport *vport, struct netdev_bpf *xdp);
drivers/net/ethernet/mellanox/mlx4/cmd.c
1851
vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
1852
vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
2009
vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
2010
vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
2070
vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
2413
admin_vport = &vf_admin->vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
2414
oper_vport = &vf_oper->vport[port].state;
drivers/net/ethernet/mellanox/mlx4/cmd.c
2423
vf_oper->vport[port].vlan_idx = NO_INDX;
drivers/net/ethernet/mellanox/mlx4/cmd.c
2424
vf_oper->vport[port].mac_idx = NO_INDX;
drivers/net/ethernet/mellanox/mlx4/cmd.c
2986
s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
3040
vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
3041
vf_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
3095
vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
3148
vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
3177
s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
3204
s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/cmd.c
3266
s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/eq.c
625
s_info = &priv->mfunc.master.vf_oper[i].vport[port].state;
drivers/net/ethernet/mellanox/mlx4/eq.c
667
s_info = &priv->mfunc.master.vf_oper[i].vport[port].state;
drivers/net/ethernet/mellanox/mlx4/fw.c
1442
def_mac = priv->mfunc.master.vf_oper[slave].vport[vhcr->in_modifier].state.mac;
drivers/net/ethernet/mellanox/mlx4/fw.c
1454
admin_link_state = priv->mfunc.master.vf_oper[slave].vport[vhcr->in_modifier].state.link_state;
drivers/net/ethernet/mellanox/mlx4/fw.c
265
vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/fw.c
266
vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/fw.c
297
vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/fw.c
298
vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/fw.c
438
vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
drivers/net/ethernet/mellanox/mlx4/fw_qos.c
221
int mlx4_SET_VPORT_QOS_get(struct mlx4_dev *dev, u8 port, u8 vport,
drivers/net/ethernet/mellanox/mlx4/fw_qos.c
235
err = mlx4_cmd_box(dev, 0, mailbox->dma, (vport << 8) | port,
drivers/net/ethernet/mellanox/mlx4/fw_qos.c
258
int mlx4_SET_VPORT_QOS_set(struct mlx4_dev *dev, u8 port, u8 vport,
drivers/net/ethernet/mellanox/mlx4/fw_qos.c
280
err = mlx4_cmd(dev, mailbox->dma, (vport << 8) | port,
drivers/net/ethernet/mellanox/mlx4/fw_qos.h
127
int mlx4_SET_VPORT_QOS_get(struct mlx4_dev *dev, u8 port, u8 vport,
drivers/net/ethernet/mellanox/mlx4/fw_qos.h
142
int mlx4_SET_VPORT_QOS_set(struct mlx4_dev *dev, u8 port, u8 vport,
drivers/net/ethernet/mellanox/mlx4/main.c
2693
priv->mfunc.master.vf_admin[entry].vport[port].guid = guid;
drivers/net/ethernet/mellanox/mlx4/main.c
2701
return priv->mfunc.master.vf_admin[entry].vport[port].guid;
drivers/net/ethernet/mellanox/mlx4/main.c
2717
priv->mfunc.master.vf_admin[entry].vport[port].guid = guid;
drivers/net/ethernet/mellanox/mlx4/mlx4.h
522
struct mlx4_vport_state vport[MLX4_MAX_PORTS + 1];
drivers/net/ethernet/mellanox/mlx4/mlx4.h
533
struct mlx4_vport_oper_state vport[MLX4_MAX_PORTS + 1];
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
755
vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
253
trace_seq_printf(p, "vport=%u\n", dst->vport.num);
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c
123
err = mlx5_esw_acl_ingress_vport_metadata_update(esw, rpriv->rep->vport,
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c
131
rpriv->rep->vport, lag_dev->name, mdata->metadata_reg_c_0);
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c
170
mlx5_esw_acl_ingress_vport_metadata_update(esw, rpriv->rep->vport, 0);
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c
171
mlx5_esw_acl_egress_vport_unbond(esw, rpriv->rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c
177
rpriv->rep->vport, lag_dev->name, mdata->metadata_reg_c_0);
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c
210
fwd_vport_num = rpriv->rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c
222
acl_vport_num = rpriv->rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c
260
info->linking ? "en" : "un", rpriv->rep->vport, lag_dev->name);
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.c
76
*vport_num = rpriv->rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.c
304
rpriv->rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/mirred.c
274
esw_attr->dests[esw_attr->out_count].vport = rpriv->rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c
360
per_vport_tbl_attr.vport = esw_attr->in_rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c
417
tbl_attr.vport = esw_attr->in_rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c
95
dest.vport.num = esw->manager_vport;
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c
1074
esw_attr->dests[out_index].vport = rpriv->rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1329
dest.vport.num = MLX5_VPORT_UPLINK;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
4109
struct mlx5e_vport_stats *vstats = &priv->stats.vport;
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1003
if (rep->vport != MLX5_VPORT_UPLINK) {
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1036
if (rep->vport != MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1052
flow_rule = mlx5_eswitch_create_vport_rx_rule(esw, rep->vport, &dest);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1232
if (rpriv->rep->vport == MLX5_VPORT_UPLINK) {
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1245
if (rpriv->rep->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1259
if (rpriv->rep->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1290
if (rep->vport != MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1405
&MLX5E_STATS_GRP(vport),
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1436
mlx5_reporter_vnic_diagnose_counters(rep->esw->dev, fmsg, rep->vport,
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1570
rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1590
rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1595
rpriv->rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1605
rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1637
if (rep->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
1664
if (rep->vport == MLX5_VPORT_UPLINK) {
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
214
err = mlx5_core_query_vport_counter(esw->dev, 1, rep->vport - 1, 0, out);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
217
rep->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
279
static int mlx5e_rep_query_aggr_q_counter(struct mlx5_core_dev *dev, int vport, void *out)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
285
MLX5_SET(query_q_counter_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
303
err = mlx5e_rep_query_aggr_q_counter(priv->mdev, rep->vport, out);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
306
rep->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
650
flow_rule = mlx5_eswitch_add_send_to_vport_meta_rule(esw, rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
694
rep->vport, 1,
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
713
rep->vport, 1,
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
732
return (rep->vport == MLX5_VPORT_UPLINK);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
790
rep->vport, 1, MLX5_VPORT_ADMIN_STATE_UP);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
796
rep->vport, 1, MLX5_VPORT_ADMIN_STATE_DOWN);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
856
if (rep->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
881
if (rep->vport != MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
981
if (rep->vport != MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2720
MLX5E_DEFINE_STATS_GRP(vport, MLX5E_NDO_UPDATE_STATS);
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
2740
&MLX5E_STATS_GRP(vport),
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
785
static MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS(vport)
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
791
static MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS(vport)
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
802
static MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS(vport)
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
809
MLX5E_READ_CTR64_BE(priv->stats.vport.query_vport_out,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
815
MLX5E_READ_CTR64_BE(priv->stats.vport.query_vport_out,
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
819
static MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS(vport)
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
821
u32 *out = (u32 *)priv->stats.vport.query_vport_out;
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
501
struct mlx5e_vport_stats vport;
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
524
extern MLX5E_DECLARE_STATS_GRP(vport);
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
1676
int mlx5e_tc_query_route_vport(struct net_device *out_dev, struct net_device *route_dev, u16 *vport)
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
1691
err = mlx5_eswitch_vhca_id_to_vport(esw, vhca_id, vport);
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
1701
err = mlx5_eswitch_vhca_id_to_vport(esw, vhca_id, vport);
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
1770
if (esw_attr->dests[i].vport == MLX5_VPORT_UPLINK &&
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
1958
esw_attr->in_rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
3176
if (rep->vport != MLX5_VPORT_UPLINK &&
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
4379
bool is_rep_ingress = esw_attr->in_rep->vport != MLX5_VPORT_UPLINK &&
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
4626
if (attr->in_rep->vport == MLX5_VPORT_UPLINK && !mlx5_lag_is_mpesw(priv->mdev))
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
4811
return netif_is_lag_port(dev) && rpriv && rpriv->rep->vport != MLX5_VPORT_UPLINK;
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
5063
vport_num = rpriv->rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h
325
u16 *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
100
esw_acl_egress_lgcy_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
104
if (!vport->egress.acl) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
105
vport->egress.acl = esw_acl_table_create(esw, vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
108
if (IS_ERR(vport->egress.acl)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
109
err = PTR_ERR(vport->egress.acl);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
11
esw_acl_egress_vlan_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
110
vport->egress.acl = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
114
err = esw_acl_egress_lgcy_groups_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
12
if (!IS_ERR_OR_NULL(vport->egress.legacy.drop_rule)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
121
vport->vport, vport->info.vlan, vport->info.qos);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
127
err = esw_egress_acl_vlan_create(esw, vport, NULL, vport->info.vlan,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
13
mlx5_del_flow_rules(vport->egress.legacy.drop_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
14
vport->egress.legacy.drop_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
142
vport->egress.legacy.drop_rule =
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
143
mlx5_add_flow_rules(vport->egress.acl, NULL,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
145
if (IS_ERR(vport->egress.legacy.drop_rule)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
146
err = PTR_ERR(vport->egress.legacy.drop_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
149
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
150
vport->egress.legacy.drop_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
157
esw_acl_egress_lgcy_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
162
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
164
if (IS_ERR_OR_NULL(vport->egress.acl))
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
167
esw_debug(esw->dev, "Destroy vport[%d] E-Switch egress ACL\n", vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
169
esw_acl_egress_lgcy_rules_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
170
esw_acl_egress_lgcy_groups_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
171
esw_acl_egress_table_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
174
if (vport->egress.legacy.drop_counter) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
175
mlx5_fc_destroy(esw->dev, vport->egress.legacy.drop_counter);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
176
vport->egress.legacy.drop_counter = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
19
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
27
err = esw_acl_egress_vlan_grp_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
39
drop_grp = mlx5_create_flow_group(vport->egress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
43
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
47
vport->egress.legacy.drop_grp = drop_grp;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
54
esw_acl_egress_vlan_grp_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
58
static void esw_acl_egress_lgcy_groups_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
60
if (!IS_ERR_OR_NULL(vport->egress.legacy.drop_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
61
mlx5_destroy_flow_group(vport->egress.legacy.drop_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
62
vport->egress.legacy.drop_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
64
esw_acl_egress_vlan_grp_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
68
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
84
if (vport->egress.legacy.drop_counter) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
85
drop_counter = vport->egress.legacy.drop_counter;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
9
static void esw_acl_egress_lgcy_rules_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
91
vport->vport, drop_counter);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
94
vport->egress.legacy.drop_counter = drop_counter;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
97
esw_acl_egress_lgcy_rules_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c
99
if (!vport->info.vlan && !vport->info.qos) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
104
esw_acl_egress_vlan_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
109
static void esw_acl_egress_ofld_rules_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
11
if (!vport->egress.offloads.fwd_rule)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
111
esw_acl_egress_vlan_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
112
esw_acl_egress_ofld_fwd2vport_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
113
esw_acl_egress_ofld_bounce_rules_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
117
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
126
ret = esw_acl_egress_vlan_grp_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
14
mlx5_del_flow_rules(vport->egress.offloads.fwd_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
147
fwd_grp = mlx5_create_flow_group(vport->egress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
15
vport->egress.offloads.fwd_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
152
vport->vport, ret);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
156
vport->egress.offloads.fwd_grp = fwd_grp;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
161
esw_acl_egress_vlan_grp_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
166
static void esw_acl_egress_ofld_groups_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
168
if (!IS_ERR_OR_NULL(vport->egress.offloads.fwd_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
169
mlx5_destroy_flow_group(vport->egress.offloads.fwd_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
170
vport->egress.offloads.fwd_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
173
if (!IS_ERR_OR_NULL(vport->egress.offloads.bounce_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
174
mlx5_destroy_flow_group(vport->egress.offloads.bounce_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
175
vport->egress.offloads.bounce_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
178
esw_acl_egress_vlan_grp_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
18
void esw_acl_egress_ofld_bounce_rule_destroy(struct mlx5_vport *vport, int rule_index)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
186
int esw_acl_egress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
195
if (!esw_acl_egress_needed(esw, vport->vport))
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
198
esw_acl_egress_ofld_rules_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
204
vport->egress.acl = esw_acl_table_create(esw, vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
206
if (IS_ERR(vport->egress.acl)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
207
err = PTR_ERR(vport->egress.acl);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
208
vport->egress.acl = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
21
xa_load(&vport->egress.offloads.bounce_rules, rule_index);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
211
vport->egress.type = VPORT_EGRESS_ACL_TYPE_DEFAULT;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
213
err = esw_acl_egress_ofld_groups_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
217
esw_debug(esw->dev, "vport[%d] configure egress rules\n", vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
219
err = esw_acl_egress_ofld_rules_create(esw, vport, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
226
esw_acl_egress_ofld_groups_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
228
esw_acl_egress_table_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
232
void esw_acl_egress_ofld_cleanup(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
234
esw_acl_egress_ofld_rules_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
235
esw_acl_egress_ofld_groups_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
236
esw_acl_egress_table_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
258
fwd_dest.vport.num = active_vport_num;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
259
fwd_dest.vport.vhca_id = MLX5_CAP_GEN(esw->dev, vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
260
fwd_dest.vport.flags = MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
267
struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
269
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
27
xa_erase(&vport->egress.offloads.bounce_rules, rule_index);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
270
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
272
esw_acl_egress_ofld_rules_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
273
return esw_acl_egress_ofld_rules_create(esw, vport, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
30
static void esw_acl_egress_ofld_bounce_rules_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
35
xa_for_each(&vport->egress.offloads.bounce_rules, i, bounce_rule) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
37
xa_erase(&vport->egress.offloads.bounce_rules, i);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
42
struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
49
vport->vport, fwd_dest->vport.num);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
52
esw_acl_egress_ofld_fwd2vport_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
56
vport->egress.offloads.fwd_rule =
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
57
mlx5_add_flow_rules(vport->egress.acl, NULL,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
59
if (IS_ERR(vport->egress.offloads.fwd_rule)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
60
err = PTR_ERR(vport->egress.offloads.fwd_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
63
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
64
vport->egress.offloads.fwd_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
71
struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
83
"vport[%d] configure prio tag egress rules\n", vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
9
static void esw_acl_egress_ofld_fwd2vport_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
90
err = esw_egress_acl_vlan_create(esw, vport, fwd_dest, 0, action);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c
96
err = esw_acl_egress_ofld_fwd2vport_create(esw, vport, fwd_dest);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
116
vlan_grp = mlx5_create_flow_group(vport->egress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
121
vport->vport, ret);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
124
vport->egress.vlan_grp = vlan_grp;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
131
void esw_acl_egress_vlan_grp_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
133
if (!IS_ERR_OR_NULL(vport->egress.vlan_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
134
mlx5_destroy_flow_group(vport->egress.vlan_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
135
vport->egress.vlan_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
139
void esw_acl_egress_table_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
141
if (IS_ERR_OR_NULL(vport->egress.acl))
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
144
mlx5_destroy_flow_table(vport->egress.acl);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
145
vport->egress.acl = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
148
void esw_acl_ingress_table_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
150
if (!vport->ingress.acl)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
153
mlx5_destroy_flow_table(vport->ingress.acl);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
154
vport->ingress.acl = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
157
void esw_acl_ingress_allow_rule_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
159
if (!vport->ingress.allow_rule)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
162
mlx5_del_flow_rules(vport->ingress.allow_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
163
vport->ingress.allow_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
26
vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
30
root_ns = mlx5_get_flow_vport_namespace(dev, ns, vport->index);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
50
struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
58
if (vport->egress.allowed_vlan)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
72
vport->egress.allowed_vlan =
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
73
mlx5_add_flow_rules(vport->egress.acl, spec,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
75
if (IS_ERR(vport->egress.allowed_vlan)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
76
err = PTR_ERR(vport->egress.allowed_vlan);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
79
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
80
vport->egress.allowed_vlan = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
87
void esw_acl_egress_vlan_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
89
if (!IS_ERR_OR_NULL(vport->egress.allowed_vlan)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
9
esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
90
mlx5_del_flow_rules(vport->egress.allowed_vlan);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
91
vport->egress.allowed_vlan = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c
95
int esw_acl_egress_vlan_grp_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.h
11
esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.h
14
void esw_acl_egress_table_destroy(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.h
15
int esw_egress_acl_vlan_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.h
18
void esw_acl_egress_vlan_destroy(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.h
19
int esw_acl_egress_vlan_grp_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.h
20
void esw_acl_egress_vlan_grp_destroy(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.h
23
void esw_acl_ingress_table_destroy(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.h
24
void esw_acl_ingress_allow_rule_destroy(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
100
if (!IS_ERR_OR_NULL(vport->ingress.legacy.allow_spoofchk_only_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
101
mlx5_destroy_flow_group(vport->ingress.legacy.allow_spoofchk_only_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
102
vport->ingress.legacy.allow_spoofchk_only_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
105
if (!IS_ERR_OR_NULL(vport->ingress.legacy.allow_untagged_only_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
106
mlx5_destroy_flow_group(vport->ingress.legacy.allow_untagged_only_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
107
vport->ingress.legacy.allow_untagged_only_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
11
if (vport->ingress.legacy.drop_rule) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
110
if (!IS_ERR_OR_NULL(vport->ingress.legacy.allow_untagged_spoofchk_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
111
mlx5_destroy_flow_group(vport->ingress.legacy.allow_untagged_spoofchk_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
112
vport->ingress.legacy.allow_untagged_spoofchk_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
119
static void esw_acl_ingress_lgcy_groups_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
12
mlx5_del_flow_rules(vport->ingress.legacy.drop_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
121
if (vport->ingress.legacy.allow_spoofchk_only_grp) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
122
mlx5_destroy_flow_group(vport->ingress.legacy.allow_spoofchk_only_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
123
vport->ingress.legacy.allow_spoofchk_only_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
125
if (vport->ingress.legacy.allow_untagged_only_grp) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
126
mlx5_destroy_flow_group(vport->ingress.legacy.allow_untagged_only_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
127
vport->ingress.legacy.allow_untagged_only_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
129
if (vport->ingress.legacy.allow_untagged_spoofchk_grp) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
13
vport->ingress.legacy.drop_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
130
mlx5_destroy_flow_group(vport->ingress.legacy.allow_untagged_spoofchk_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
131
vport->ingress.legacy.allow_untagged_spoofchk_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
133
if (vport->ingress.legacy.drop_grp) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
134
mlx5_destroy_flow_group(vport->ingress.legacy.drop_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
135
vport->ingress.legacy.drop_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
140
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
15
esw_acl_ingress_allow_rule_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
164
esw_acl_ingress_lgcy_rules_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
166
if (vport->ingress.legacy.drop_counter) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
167
counter = vport->ingress.legacy.drop_counter;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
173
vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
176
vport->ingress.legacy.drop_counter = counter;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
179
if (!vport->info.vlan && !vport->info.qos && !vport->info.spoofchk) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
180
esw_acl_ingress_lgcy_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
184
if (!vport->ingress.acl) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
185
vport->ingress.acl = esw_acl_table_create(esw, vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
188
if (IS_ERR(vport->ingress.acl)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
189
err = PTR_ERR(vport->ingress.acl);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
19
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
190
vport->ingress.acl = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
194
err = esw_acl_ingress_lgcy_groups_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
201
vport->vport, vport->info.vlan, vport->info.qos);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
209
if ((vport->info.vlan || vport->info.qos)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
216
if (vst_check_cvlan || vport->info.spoofchk)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
223
flow_act.vlan[0].prio = vport->info.qos;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
224
flow_act.vlan[0].vid = vport->info.vlan;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
232
if (vport->info.spoofchk) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
240
ether_addr_copy(smac_v, vport->info.mac);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
243
vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
245
if (IS_ERR(vport->ingress.allow_rule)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
246
err = PTR_ERR(vport->ingress.allow_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
249
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
250
vport->ingress.allow_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
254
if (!vst_check_cvlan && !vport->info.spoofchk)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
267
vport->ingress.legacy.drop_rule =
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
268
mlx5_add_flow_rules(vport->ingress.acl, NULL,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
270
if (IS_ERR(vport->ingress.legacy.drop_rule)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
271
err = PTR_ERR(vport->ingress.legacy.drop_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
274
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
275
vport->ingress.legacy.drop_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
283
esw_acl_ingress_lgcy_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
289
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
291
if (IS_ERR_OR_NULL(vport->ingress.acl))
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
294
esw_debug(esw->dev, "Destroy vport[%d] E-Switch ingress ACL\n", vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
296
esw_acl_ingress_lgcy_rules_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
297
esw_acl_ingress_lgcy_groups_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
298
esw_acl_ingress_table_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
301
if (vport->ingress.legacy.drop_counter) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
302
mlx5_fc_destroy(esw->dev, vport->ingress.legacy.drop_counter);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
303
vport->ingress.legacy.drop_counter = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
42
g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
46
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
49
vport->ingress.legacy.allow_untagged_spoofchk_grp = g;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
58
g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
62
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
65
vport->ingress.legacy.allow_untagged_only_grp = g;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
75
g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
79
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
82
vport->ingress.legacy.allow_spoofchk_only_grp = g;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
88
g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
9
static void esw_acl_ingress_lgcy_rules_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
92
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c
95
vport->ingress.legacy.drop_grp = g;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
10
acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
100
mlx5_add_flow_rules(vport->ingress.acl,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
102
if (IS_ERR(vport->ingress.offloads.modify_metadata_rule)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
103
err = PTR_ERR(vport->ingress.offloads.modify_metadata_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
106
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
107
mlx5_modify_header_dealloc(esw->dev, vport->ingress.offloads.modify_metadata);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
108
vport->ingress.offloads.modify_metadata_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
114
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
116
if (!vport->ingress.offloads.modify_metadata_rule)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
119
mlx5_del_flow_rules(vport->ingress.offloads.modify_metadata_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
120
mlx5_modify_header_dealloc(esw->dev, vport->ingress.offloads.modify_metadata);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
121
vport->ingress.offloads.modify_metadata_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
125
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
132
if (!vport->ingress.acl) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
133
err = acl_ingress_ofld_setup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
14
const struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
140
flow_act.fg = vport->ingress.offloads.drop_grp;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
141
flow_rule = mlx5_add_flow_rules(vport->ingress.acl, NULL, &flow_act, NULL, 0);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
147
vport->ingress.offloads.drop_rule = flow_rule;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
153
esw_acl_ingress_ofld_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
158
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
160
if (!vport->ingress.offloads.drop_rule)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
163
mlx5_del_flow_rules(vport->ingress.offloads.drop_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
164
vport->ingress.offloads.drop_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
168
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
17
mlx5_eswitch_is_vf_vport(esw, vport->vport));
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
173
err = esw_acl_ingress_mod_metadata_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
177
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
182
if (esw_acl_ingress_prio_tag_enabled(esw, vport)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
183
err = esw_acl_ingress_prio_tag_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
187
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
195
esw_acl_ingress_mod_metadata_destroy(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
200
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
202
esw_acl_ingress_allow_rule_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
203
esw_acl_ingress_mod_metadata_destroy(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
204
esw_acl_ingress_src_port_drop_destroy(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
208
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
21
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
221
if (vport->vport == MLX5_VPORT_UPLINK) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
228
g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
232
vport->vport, ret);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
235
vport->ingress.offloads.drop_grp = g;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
239
if (esw_acl_ingress_prio_tag_enabled(esw, vport)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
252
g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
256
vport->vport, ret);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
259
vport->ingress.offloads.metadata_prio_tag_grp = g;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
272
g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
276
vport->vport, ret);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
279
vport->ingress.offloads.metadata_allmatch_grp = g;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
286
if (!IS_ERR_OR_NULL(vport->ingress.offloads.metadata_prio_tag_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
287
mlx5_destroy_flow_group(vport->ingress.offloads.metadata_prio_tag_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
288
vport->ingress.offloads.metadata_prio_tag_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
291
if (!IS_ERR_OR_NULL(vport->ingress.offloads.drop_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
292
mlx5_destroy_flow_group(vport->ingress.offloads.drop_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
293
vport->ingress.offloads.drop_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
300
static void esw_acl_ingress_ofld_groups_destroy(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
302
if (vport->ingress.offloads.metadata_allmatch_grp) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
303
mlx5_destroy_flow_group(vport->ingress.offloads.metadata_allmatch_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
304
vport->ingress.offloads.metadata_allmatch_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
307
if (vport->ingress.offloads.metadata_prio_tag_grp) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
308
mlx5_destroy_flow_group(vport->ingress.offloads.metadata_prio_tag_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
309
vport->ingress.offloads.metadata_prio_tag_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
312
if (vport->ingress.offloads.drop_grp) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
313
mlx5_destroy_flow_group(vport->ingress.offloads.drop_grp);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
314
vport->ingress.offloads.drop_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
319
acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
324
esw_acl_ingress_allow_rule_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
328
if (vport->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
330
if (esw_acl_ingress_prio_tag_enabled(esw, vport))
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
333
vport->ingress.acl = esw_acl_table_create(esw, vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
336
if (IS_ERR(vport->ingress.acl)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
337
err = PTR_ERR(vport->ingress.acl);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
338
vport->ingress.acl = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
342
err = esw_acl_ingress_ofld_groups_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
347
"vport[%d] configure ingress rules\n", vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
349
err = esw_acl_ingress_ofld_rules_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
356
esw_acl_ingress_ofld_groups_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
358
esw_acl_ingress_table_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
362
int esw_acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
365
!esw_acl_ingress_prio_tag_enabled(esw, vport))
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
368
return acl_ingress_ofld_setup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
372
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
374
esw_acl_ingress_ofld_rules_destroy(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
375
esw_acl_ingress_ofld_groups_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
376
esw_acl_ingress_table_destroy(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
383
struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
386
if (WARN_ON_ONCE(IS_ERR(vport))) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
388
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
391
esw_acl_ingress_ofld_rules_destroy(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
393
vport->metadata = metadata ? metadata : vport->default_metadata;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
396
err = esw_acl_ingress_ofld_rules_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
403
vport->metadata = vport->default_metadata;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
409
struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
411
if (IS_ERR(vport)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
413
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
416
return esw_acl_ingress_src_port_drop_create(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
421
struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
423
if (WARN_ON_ONCE(IS_ERR(vport))) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
428
esw_acl_ingress_src_port_drop_destroy(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
46
if (vport->ingress.offloads.modify_metadata_rule) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
48
flow_act.modify_hdr = vport->ingress.offloads.modify_metadata;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
51
vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec,
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
53
if (IS_ERR(vport->ingress.allow_rule)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
54
err = PTR_ERR(vport->ingress.allow_rule);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
57
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
58
vport->ingress.allow_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
66
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
73
key = mlx5_eswitch_get_vport_metadata_for_match(esw, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
85
vport->ingress.offloads.modify_metadata =
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
88
if (IS_ERR(vport->ingress.offloads.modify_metadata)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
89
err = PTR_ERR(vport->ingress.offloads.modify_metadata);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
92
vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
97
flow_act.modify_hdr = vport->ingress.offloads.modify_metadata;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
98
flow_act.fg = vport->ingress.offloads.metadata_allmatch_grp;
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
99
vport->ingress.offloads.modify_metadata_rule =
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/lgcy.h
10
int esw_acl_egress_lgcy_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/lgcy.h
11
void esw_acl_egress_lgcy_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/lgcy.h
14
int esw_acl_ingress_lgcy_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/lgcy.h
15
void esw_acl_ingress_lgcy_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ofld.h
11
int esw_acl_egress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ofld.h
12
void esw_acl_egress_ofld_cleanup(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ofld.h
13
void esw_acl_egress_ofld_bounce_rule_destroy(struct mlx5_vport *vport, int rule_index);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ofld.h
26
int esw_acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ofld.h
27
void esw_acl_ingress_ofld_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
100
vport->index);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
101
mlx5_esw_vport_free(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
108
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
110
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
113
vport_num, vport->vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
115
mlx5_esw_offloads_rep_remove(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
117
vport->index);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
119
vport->index);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
120
mlx5_esw_vport_free(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
130
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
136
mlx5_esw_for_each_vf_vport(esw, i, vport, U16_MAX) {
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
137
if (!vport->adjacent)
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
139
mlx5_esw_adj_vport_destroy(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
17
MLX5_SET(modify_vport_state_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
26
void mlx5_esw_destroy_esw_vport(struct mlx5_core_dev *dev, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
32
MLX5_SET(destroy_esw_vport_in, in, vport_num, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
58
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
7
int mlx5_esw_adj_vport_modify(struct mlx5_core_dev *dev, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
78
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
79
vport->adjacent = true;
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
80
vport->vhca_id = vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
82
vport->adj_info.parent_pci_devfn =
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
85
vport->adj_info.function_id =
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
88
mlx5_fs_vport_egress_acl_ns_add(esw->dev->priv.steering, vport->index);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
89
mlx5_fs_vport_ingress_acl_ns_add(esw->dev->priv.steering, vport->index);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
90
err = mlx5_esw_offloads_rep_add(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
98
vport->index);
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c
746
.vport.num = vport_num,
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c
797
dest.vport.flags = MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c
798
dest.vport.vhca_id = esw_owner_vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c
581
.vport.num = port->vport_num,
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c
612
dest.vport.flags = MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c
613
dest.vport.vhca_id = port->esw_owner_vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c
653
.vport.num = port->vport_num,
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c
664
dest.vport.flags = MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c
665
dest.vport.vhca_id = port->esw_owner_vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
103
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
105
if (!vport->dl_port)
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
108
kfree(vport->dl_port);
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
109
vport->dl_port = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
146
int mlx5_esw_offloads_sf_devlink_port_init(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
152
vport->dl_port = dl_port;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
153
mlx5_devlink_port_init(dl_port, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
157
void mlx5_esw_offloads_sf_devlink_port_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
159
vport->dl_port = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
218
int mlx5_esw_offloads_devlink_port_register(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
223
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
228
dl_port = vport->dl_port;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
245
err = devl_rate_leaf_create(&dl_port->dl_port, vport, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
262
void mlx5_esw_offloads_devlink_port_unregister(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
266
if (!vport->dl_port)
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
268
dl_port = vport->dl_port;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
271
mlx5_esw_qos_vport_update_parent(vport, NULL, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
279
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
281
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
282
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
283
return ERR_CAST(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
284
if (!vport->dl_port)
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
287
return &vport->dl_port->dl_port;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
29
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
49
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
52
if (vport->adjacent) {
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
53
func_id = vport->adj_info.function_id;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
54
pfnum = vport->adj_info.parent_pci_devfn;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
82
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
85
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
97
vport->dl_port = dl_port;
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
98
mlx5_devlink_port_init(dl_port, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
15
TP_PROTO(const struct mlx5_core_dev *dev, const struct mlx5_vport *vport),
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
16
TP_ARGS(dev, vport),
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
22
__entry->vport_id = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
23
__entry->sched_elem_ix = mlx5_esw_qos_vport_get_sched_elem_ix(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
31
TP_PROTO(const struct mlx5_core_dev *dev, const struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
33
TP_ARGS(dev, vport, bw_share, max_rate),
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
42
__entry->vport_id = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
43
__entry->sched_elem_ix = mlx5_esw_qos_vport_get_sched_elem_ix(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
46
__entry->parent = mlx5_esw_qos_vport_get_parent(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
55
TP_PROTO(const struct mlx5_core_dev *dev, const struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
57
TP_ARGS(dev, vport, bw_share, max_rate)
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
61
TP_PROTO(const struct mlx5_core_dev *dev, const struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h
63
TP_ARGS(dev, vport, bw_share, max_rate)
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
233
dest.vport.num = e->vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
234
dest.vport.vhca_id = MLX5_CAP_GEN(esw->dev, vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
235
dest.vport.flags = MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
249
u16 vport, bool decap)
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
276
e->vport = vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
294
vport << 16);
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
311
mlx5_esw_indir_table_entry_lookup(struct mlx5_eswitch *esw, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
314
u32 key = vport << 16;
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
317
if (e->vport == vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
325
u16 vport, bool decap)
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
331
e = mlx5_esw_indir_table_entry_lookup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
341
e = mlx5_esw_indir_table_entry_create(esw, attr, vport, decap);
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
357
u16 vport, bool decap)
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
362
e = mlx5_esw_indir_table_entry_lookup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
38
u16 vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c
81
return esw_attr->in_rep->vport == MLX5_VPORT_UPLINK &&
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h
16
u16 vport, bool decap);
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h
18
u16 vport, bool decap);
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h
45
u16 vport, bool decap)
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h
52
u16 vport, bool decap)
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
107
static int esw_ipsec_vf_set_bytype(struct mlx5_core_dev *dev, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
121
ret = mlx5_vport_get_other_func_cap(dev, vport->vport, query_cap, MLX5_CAP_IPSEC);
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
139
ret = mlx5_vport_set_other_func_cap(dev, hca_caps, vport->vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
171
static int esw_ipsec_vf_offload_set_bytype(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
177
if (!mlx5_eswitch_is_vf_vport(esw, vport->vport))
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
181
err = esw_ipsec_vf_crypto_aux_caps_set(dev, vport->vport, enable);
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
187
err = esw_ipsec_vf_set_generic(dev, vport->vport, enable);
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
190
err = esw_ipsec_vf_set_bytype(dev, vport, enable, type);
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
194
err = esw_ipsec_vf_set_bytype(dev, vport, enable, type);
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
197
err = mlx5_esw_ipsec_vf_offload_get(dev, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
204
if (!vport->info.ipsec_crypto_enabled &&
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
205
!vport->info.ipsec_packet_enabled) {
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
206
err = esw_ipsec_vf_set_generic(dev, vport->vport, enable);
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
214
vport->info.ipsec_crypto_enabled = enable;
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
217
vport->info.ipsec_packet_enabled = enable;
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
322
int mlx5_esw_ipsec_vf_crypto_offload_set(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
325
return esw_ipsec_vf_offload_set_bytype(esw, vport, enable,
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
329
int mlx5_esw_ipsec_vf_packet_offload_set(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
332
return esw_ipsec_vf_offload_set_bytype(esw, vport, enable,
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
43
int mlx5_esw_ipsec_vf_offload_get(struct mlx5_core_dev *dev, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
53
err = esw_ipsec_vf_query_generic(dev, vport->vport, &ipsec_enabled);
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
58
vport->info.ipsec_crypto_enabled = false;
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
59
vport->info.ipsec_packet_enabled = false;
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
67
err = mlx5_vport_get_other_func_cap(dev, vport->vport, query_cap, MLX5_CAP_IPSEC);
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
72
vport->info.ipsec_crypto_enabled =
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec.c
74
vport->info.ipsec_packet_enabled =
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
209
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
217
mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs)
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
218
vport->info.link_state = MLX5_VPORT_ADMIN_STATE_AUTO;
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
290
dest.vport.num = MLX5_VPORT_UPLINK;
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
347
int esw_legacy_vport_acl_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
352
if (mlx5_esw_is_manager_vport(esw, vport->vport))
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
355
ret = esw_acl_ingress_lgcy_setup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
359
ret = esw_acl_egress_lgcy_setup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
366
esw_acl_ingress_lgcy_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
371
void esw_legacy_vport_acl_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
373
if (mlx5_esw_is_manager_vport(esw, vport->vport))
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
376
esw_acl_egress_lgcy_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
377
esw_acl_ingress_lgcy_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
381
struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
393
if (!vport->enabled)
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
396
if (!IS_ERR_OR_NULL(vport->egress.legacy.drop_counter))
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
397
mlx5_fc_query(dev, vport->egress.legacy.drop_counter,
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
400
if (vport->ingress.legacy.drop_counter)
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
401
mlx5_fc_query(dev, vport->ingress.legacy.drop_counter,
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
408
err = mlx5_query_vport_down_stats(dev, vport->vport, 1,
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
425
u16 vport, u16 vlan, u8 qos)
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
445
err = __mlx5_eswitch_set_vport_vlan(esw, vport, vlan, qos, set_flags);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
453
u16 vport, bool spoofchk)
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
455
struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
474
evport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
486
u16 vport, bool setting)
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
488
struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
510
int mlx5_eswitch_set_vport_rate(struct mlx5_eswitch *esw, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
513
struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.h
16
int esw_legacy_vport_acl_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.h
17
void esw_legacy_vport_acl_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.h
20
struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
100
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1007
static void esw_qos_vport_tc_disable(struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1010
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1013
esw_qos_destroy_vport_tc_sched_elements(vport, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1021
static int esw_qos_set_vport_tcs_min_rate(struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1025
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1029
err = esw_qos_set_node_min_rate(vport->qos.sched_nodes[i],
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1039
esw_qos_set_node_min_rate(vport->qos.sched_nodes[i],
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1045
static void esw_qos_vport_disable(struct mlx5_vport *vport, struct netlink_ext_ack *extack)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1047
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1053
esw_qos_vport_tc_disable(vport, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1060
trace_mlx5_esw_vport_qos_destroy(vport_node->esw->dev, vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1063
static int esw_qos_vport_enable(struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1068
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1071
esw_assert_qos_lock_held(vport->dev->priv.eswitch);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1077
err = esw_qos_vport_tc_enable(vport, type, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1083
trace_mlx5_esw_vport_qos_create(vport->dev, vport, vport_node->max_rate,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1089
static int mlx5_esw_qos_vport_enable(struct mlx5_vport *vport, enum sched_node_type type,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1093
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1114
sched_node->vport = vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1115
vport->qos.sched_node = sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1116
err = esw_qos_vport_enable(vport, type, parent, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1120
vport->qos.sched_node = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1126
static void mlx5_esw_qos_vport_disable_locked(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1128
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1131
if (!vport->qos.sched_node)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1134
esw_qos_vport_disable(vport, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1135
mlx5_esw_qos_vport_qos_free(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1139
void mlx5_esw_qos_vport_disable(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1141
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1146
if (!vport->qos.sched_node)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1149
parent = vport->qos.sched_node->parent;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1152
mlx5_esw_qos_vport_disable_locked(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1157
static int mlx5_esw_qos_set_vport_max_rate(struct mlx5_vport *vport, u32 max_rate,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1160
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1162
esw_assert_qos_lock_held(vport->dev->priv.eswitch);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1165
return mlx5_esw_qos_vport_enable(vport, SCHED_NODE_TYPE_VPORT, NULL, max_rate, 0,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1172
static int mlx5_esw_qos_set_vport_min_rate(struct mlx5_vport *vport, u32 min_rate,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1175
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1177
esw_assert_qos_lock_held(vport->dev->priv.eswitch);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1180
return mlx5_esw_qos_vport_enable(vport, SCHED_NODE_TYPE_VPORT, NULL, 0, min_rate,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1183
return esw_qos_set_vport_tcs_min_rate(vport, min_rate, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1188
int mlx5_esw_qos_set_vport_rate(struct mlx5_vport *vport, u32 max_rate, u32 min_rate)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1190
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1194
err = mlx5_esw_qos_set_vport_min_rate(vport, min_rate, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1196
err = mlx5_esw_qos_set_vport_max_rate(vport, max_rate, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1201
bool mlx5_esw_qos_get_vport_rate(struct mlx5_vport *vport, u32 *max_rate, u32 *min_rate)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1203
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1207
enabled = !!vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1209
*max_rate = vport->qos.sched_node->max_rate;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1210
*min_rate = vport->qos.sched_node->min_rate;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1237
static int esw_qos_vport_update(struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1242
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1248
esw_assert_qos_lock_held(vport->dev->priv.eswitch);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1259
esw_qos_vport_disable(vport, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1261
err = esw_qos_vport_enable(vport, type, parent, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1263
esw_qos_vport_enable(vport, curr_type, curr_parent, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1275
static int esw_qos_vport_update_parent(struct mlx5_vport *vport, struct mlx5_esw_sched_node *parent,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1278
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1283
curr_parent = vport->qos.sched_node->parent;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1296
type = vport->qos.sched_node->type;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1298
return esw_qos_vport_update(vport, type, parent, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1314
esw_qos_vport_update_parent(vport_tc_node->vport, node, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1349
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1354
vport = vport_node->vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1355
err = esw_qos_vport_update_parent(vport, tc_arbiter_node,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1451
if (!child->vport) {
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
150
struct mlx5_vport *vport = child->vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
152
if (vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
153
vport->qos.sched_node->parent = parent;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1554
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1558
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1559
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1560
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1574
err = mlx5_esw_qos_set_vport_max_rate(vport, rate_mbps, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
159
void mlx5_esw_qos_vport_qos_free(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
161
if (vport->qos.sched_nodes) {
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
162
int num_tcs = esw_qos_num_tcs(vport->qos.sched_node->esw->dev);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1626
static bool esw_qos_vport_validate_unsupported_tc_bw(struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1629
struct mlx5_esw_sched_node *node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1630
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1649
static void esw_vport_qos_prune_empty(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1651
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1653
esw_assert_qos_lock_held(vport->dev->priv.eswitch);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
166
kfree(vport->qos.sched_nodes[i]);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1661
mlx5_esw_qos_vport_disable_locked(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
167
kfree(vport->qos.sched_nodes);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1683
struct mlx5_vport *vport = priv;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1687
esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1691
err = esw_qos_devlink_rate_to_mbps(vport->dev, "tx_share", &tx_share, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1696
err = mlx5_esw_qos_set_vport_min_rate(vport, tx_share, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1699
esw_vport_qos_prune_empty(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
170
kfree(vport->qos.sched_node);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1708
struct mlx5_vport *vport = priv;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
171
memset(&vport->qos, 0, sizeof(vport->qos));
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1712
esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1716
err = esw_qos_devlink_rate_to_mbps(vport->dev, "tx_max", &tx_max, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1721
err = mlx5_esw_qos_set_vport_max_rate(vport, tx_max, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1724
esw_vport_qos_prune_empty(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1736
struct mlx5_vport *vport = priv;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
174
u32 mlx5_esw_qos_vport_get_sched_elem_ix(const struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1741
esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1748
if (!esw_qos_vport_validate_unsupported_tc_bw(vport, tc_bw)) {
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1755
vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
176
if (!vport->qos.sched_node)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1761
err = esw_qos_vport_update(vport, SCHED_NODE_TYPE_VPORT,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1763
esw_vport_qos_prune_empty(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1768
err = mlx5_esw_qos_vport_enable(vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1771
vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1773
err = esw_qos_vport_update(vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
179
return vport->qos.sched_node->ix;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
183
mlx5_esw_qos_vport_get_parent(const struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
185
if (!vport->qos.sched_node)
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
188
return vport->qos.sched_node->parent;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1893
int mlx5_esw_qos_vport_update_parent(struct mlx5_vport *vport, struct mlx5_esw_sched_node *parent,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1896
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1905
if (!vport->qos.sched_node && parent) {
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1910
err = mlx5_esw_qos_vport_enable(vport, type, parent, 0, 0,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1912
} else if (vport->qos.sched_node) {
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1913
err = esw_qos_vport_update_parent(vport, parent, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1925
struct mlx5_vport *vport = priv;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1928
err = mlx5_esw_qos_vport_update_parent(vport, node, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1930
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
1933
esw_vport_qos_prune_empty(vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
204
node->vport->vport, node->tc, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
209
op, sched_node_type_str[node->type], node->vport->vport, err);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
301
trace_mlx5_esw_vport_qos_config(dev, node->vport, bw_share, max_rate);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
474
MLX5_SET(vport_element, attr, vport_number, vport_node->vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
502
vport_tc_node->vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
859
esw_qos_create_vport_tc_sched_node(struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
864
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
877
vport_tc_node->vport = vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
884
vport->qos.sched_nodes[tc] = vport_tc_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
893
esw_qos_destroy_vport_tc_sched_elements(struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
896
int i, num_tcs = esw_qos_num_tcs(vport->qos.sched_node->esw->dev);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
899
if (vport->qos.sched_nodes[i]) {
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
900
__esw_qos_destroy_node(vport->qos.sched_nodes[i],
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
905
kfree(vport->qos.sched_nodes);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
906
vport->qos.sched_nodes = NULL;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
910
esw_qos_create_vport_tc_sched_elements(struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
914
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
919
vport->qos.sched_nodes = kzalloc_objs(struct mlx5_esw_sched_node *,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
921
if (!vport->qos.sched_nodes) {
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
932
err = esw_qos_create_vport_tc_sched_node(vport,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
943
esw_qos_destroy_vport_tc_sched_elements(vport, NULL);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
949
esw_qos_vport_tc_enable(struct mlx5_vport *vport, enum sched_node_type type,
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
952
struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
973
esw_assert_qos_lock_held(vport->dev->priv.eswitch);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
991
err = esw_qos_create_vport_tc_sched_elements(vport, type, extack);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.h
13
bool mlx5_esw_qos_get_vport_rate(struct mlx5_vport *vport, u32 *max_rate, u32 *min_rate);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.h
14
void mlx5_esw_qos_vport_disable(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.h
16
void mlx5_esw_qos_vport_qos_free(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.h
17
u32 mlx5_esw_qos_vport_get_sched_elem_ix(const struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.h
18
struct mlx5_esw_sched_node *mlx5_esw_qos_vport_get_parent(const struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/esw/vporttbl.c
12
u16 vport;
drivers/net/ethernet/mellanox/mlx5/core/esw/vporttbl.c
59
key->vport = attr->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1002
if (vport->agg_max_tx_speed)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1003
mlx5_esw_vport_set_max_tx_speed(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1009
mlx5_esw_vport_vhca_id_unmap(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1011
esw_vport_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1016
void mlx5_esw_vport_disable(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1018
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1022
if (!vport->enabled)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1027
vport->enabled = false;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1035
xa_erase(&esw->vhca_type_map, vport->vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1036
mlx5_esw_vport_vhca_id_unmap(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1040
(vport->info.ipsec_crypto_enabled || vport->info.ipsec_packet_enabled))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1047
esw_vport_change_handle_locked(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1048
vport->enabled_events = 0;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1049
esw_apply_vport_rx_mode(esw, vport, false, false);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1050
esw_vport_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1062
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1066
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1067
if (!IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1068
queue_work(esw->work_queue, &vport->vport_change_handler);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
109
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
114
vport = xa_load(&esw->vports, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
115
if (!vport) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
119
return vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
122
static int arm_vport_context_events_cmd(struct mlx5_core_dev *dev, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1276
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1279
mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1280
mlx5_esw_qos_vport_qos_free(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1281
memset(&vport->info, 0, sizeof(vport->info));
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1282
vport->info.link_state = MLX5_VPORT_ADMIN_STATE_AUTO;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1288
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1291
mlx5_esw_for_each_ec_vf_vport(esw, i, vport, esw->esw_funcs.num_ec_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1292
mlx5_esw_qos_vport_qos_free(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1293
memset(&vport->info, 0, sizeof(vport->info));
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1294
vport->info.link_state = MLX5_VPORT_ADMIN_STATE_AUTO;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1298
static int mlx5_eswitch_load_vport(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1303
err = mlx5_esw_vport_enable(esw, vport, enabled_events);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1307
err = mlx5_esw_offloads_load_rep(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
131
MLX5_SET(modify_nic_vport_context_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1314
mlx5_esw_vport_disable(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1318
static void mlx5_eswitch_unload_vport(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
132
if (vport || mlx5_core_is_ecpf(dev))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1320
mlx5_esw_offloads_unload_rep(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1321
mlx5_esw_vport_disable(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1327
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1330
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1331
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1332
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1334
err = mlx5_esw_offloads_init_pf_vf_rep(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1338
err = mlx5_eswitch_load_vport(esw, vport, enabled_events);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1344
mlx5_esw_offloads_cleanup_pf_vf_rep(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1350
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1352
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1353
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1356
mlx5_eswitch_unload_vport(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1357
mlx5_esw_offloads_cleanup_pf_vf_rep(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1364
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1367
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1368
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1369
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1371
err = mlx5_esw_offloads_init_sf_rep(esw, vport, dl_port, controller, sfnum);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1375
err = mlx5_eswitch_load_vport(esw, vport, enabled_events);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1382
mlx5_esw_offloads_cleanup_sf_rep(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1388
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1390
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1391
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1394
mlx5_eswitch_unload_vport(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1395
mlx5_esw_offloads_cleanup_sf_rep(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1400
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1403
mlx5_esw_for_each_vf_vport(esw, i, vport, num_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1405
if (!vport->enabled || vport->adjacent)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1407
mlx5_eswitch_unload_pf_vf_vport(esw, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1414
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1417
mlx5_esw_for_each_ec_vf_vport(esw, i, vport, num_ec_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1418
if (!vport->enabled)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1420
mlx5_eswitch_unload_pf_vf_vport(esw, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1426
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1429
mlx5_esw_for_each_vf_vport(esw, i, vport, U16_MAX) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1430
if (!vport->enabled || !vport->adjacent)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1432
mlx5_eswitch_unload_pf_vf_vport(esw, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1440
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1444
mlx5_esw_for_each_vf_vport(esw, i, vport, U16_MAX) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1445
if (!vport->adjacent)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1447
err = mlx5_eswitch_load_pf_vf_vport(esw, vport->vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1463
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1467
mlx5_esw_for_each_vf_vport(esw, i, vport, num_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1468
err = mlx5_eswitch_load_pf_vf_vport(esw, vport->vport, enabled_events);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1483
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1487
mlx5_esw_for_each_ec_vf_vport(esw, i, vport, num_ec_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1488
err = mlx5_eswitch_load_pf_vf_vport(esw, vport->vport, enabled_events);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1503
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1509
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1510
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1511
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1521
vport->pf_activated = true;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1529
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
153
int mlx5_eswitch_modify_esw_vport_context(struct mlx5_core_dev *dev, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1535
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1536
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1537
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
1543
vport->pf_activated = false;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
158
MLX5_SET(modify_esw_vport_context_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
163
static int modify_esw_vport_cvlan(struct mlx5_core_dev *dev, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
173
vport, vlan, qos, set_flags);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
202
return mlx5_eswitch_modify_esw_vport_context(dev, vport, true, in);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
207
__esw_fdb_set_vport_rule(struct mlx5_eswitch *esw, u16 vport, bool rx_rule,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2225
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2228
vport = kzalloc_obj(*vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2229
if (!vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2232
vport->dev = esw->dev;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2233
vport->vport = vport_num;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2234
vport->index = index;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2235
vport->info.link_state = MLX5_VPORT_ADMIN_STATE_AUTO;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2236
vport->vhca_id = MLX5_VHCA_ID_INVALID;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2237
INIT_WORK(&vport->vport_change_handler, esw_vport_change_handler);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2238
err = xa_insert(&esw->vports, vport_num, vport, GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2246
kfree(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2250
void mlx5_esw_vport_free(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2253
xa_erase(&esw->vports, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2254
kfree(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2357
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2362
mlx5_esw_for_each_vport(esw, i, vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2363
mlx5_esw_vport_free(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2423
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2430
vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2431
vport->vhca_id = esw->esw_funcs.spfs[i].vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
248
dest.vport.num = vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
252
dmac_v, dmac_c, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
261
dmac_v, dmac_c, vport, flow_rule);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2638
u16 vport_num = evport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2674
u16 vport, const u8 *mac)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2676
struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
270
esw_fdb_set_vport_rule(struct mlx5_eswitch *esw, u8 mac[ETH_ALEN], u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2729
u16 vport, int link_state)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2731
struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2741
if (vport == MLX5_VPORT_UPLINK) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2744
vport = 0;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
275
return __esw_fdb_set_vport_rule(esw, vport, false, mac_c, mac);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2752
err = mlx5_modify_vport_admin_state(esw->dev, opmod, vport, other_vport, link_state);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2755
vport, opmod, err);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2767
u16 vport, struct ifla_vf_info *ivi)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2769
struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2776
ivi->vf = vport - 1;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2780
mlx5_query_nic_vport_mac_address(esw->dev, vport, true,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
279
esw_fdb_set_vport_allmulti_rule(struct mlx5_eswitch *esw, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2799
u16 vport, u16 vlan, u8 qos, u8 set_flags)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2801
struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2811
err = modify_esw_vport_cvlan(esw->dev, vport, vlan, qos, set_flags);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2832
struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2839
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2840
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2849
MLX5_SET(query_vport_counter_in, in, vport_number, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
288
return __esw_fdb_set_vport_rule(esw, vport, false, mac_c, mac_v);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
2895
err = mlx5_esw_query_vport_drop_stats(esw->dev, vport, &stats);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
292
esw_fdb_set_vport_promisc_rule(struct mlx5_eswitch *esw, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
299
return __esw_fdb_set_vport_rule(esw, vport, true, mac_c, mac_v);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
309
u16 vport = vaddr->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
315
if (mlx5_esw_is_manager_vport(esw, vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
322
mac, vport, err);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
330
vaddr->flow_rule = esw_fdb_set_vport_rule(esw, mac, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
333
vport, mac, vaddr->flow_rule);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
342
u16 vport = vaddr->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
348
if (!vaddr->mpfs || mlx5_esw_is_manager_vport(esw, vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
355
mac, vport, err);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
371
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
375
mlx5_esw_for_each_vport(esw, i, vport) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
376
struct hlist_head *vport_hash = vport->mc_list;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
381
vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
382
if (IS_ERR_OR_NULL(vport->allmulti_rule) ||
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
383
vaddr->vport == vport_num)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
398
iter_vaddr->vport = vport_num;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
420
u16 vport = vaddr->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
447
vaddr->flow_rule = esw_fdb_set_vport_rule(esw, mac, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
450
vport, mac, vaddr->flow_rule,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
460
u16 vport = vaddr->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
469
mac, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
474
vport, mac, vaddr->flow_rule, esw_mc->refcnt,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
499
struct mlx5_vport *vport, int list_type)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
515
hash = is_uc ? vport->uc_list : vport->mc_list;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
533
struct mlx5_vport *vport, int list_type)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
546
hash = is_uc ? vport->uc_list : vport->mc_list;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
553
if (!vport->enabled)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
556
err = mlx5_query_nic_vport_mac_list(esw->dev, vport->vport, list_type,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
561
vport->vport, is_uc ? "UC" : "MC", size);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
599
mac_list[i], vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
602
addr->vport = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
613
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
621
hash = vport->mc_list;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
63
u16 vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
637
mac, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
640
addr->vport = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
648
struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
653
if (IS_ERR_OR_NULL(vport->allmulti_rule) != mc_promisc)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
657
vport->allmulti_rule =
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
658
esw_fdb_set_vport_allmulti_rule(esw, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
664
} else if (vport->allmulti_rule) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
665
mlx5_del_flow_rules(vport->allmulti_rule);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
666
vport->allmulti_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
677
if (IS_ERR_OR_NULL(vport->promisc_rule) != promisc)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
681
vport->promisc_rule =
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
682
esw_fdb_set_vport_promisc_rule(esw, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
683
} else if (vport->promisc_rule) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
684
mlx5_del_flow_rules(vport->promisc_rule);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
685
vport->promisc_rule = NULL;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
691
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
699
vport->vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
706
vport->vport, promisc_all, promisc_mc);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
708
if (!vport->info.trusted || !vport->enabled) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
714
esw_apply_vport_rx_mode(esw, vport, promisc_all,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
718
void esw_vport_change_handle_locked(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
720
struct mlx5_core_dev *dev = vport->dev;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
727
mlx5_query_nic_vport_mac_address(dev, vport->vport, true, mac);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
729
vport->vport, mac);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
731
if (vport->enabled_events & MLX5_VPORT_UC_ADDR_CHANGE) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
732
esw_update_vport_addr_list(esw, vport, MLX5_NVPRT_LIST_TYPE_UC);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
733
esw_apply_vport_addr_list(esw, vport, MLX5_NVPRT_LIST_TYPE_UC);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
736
if (vport->enabled_events & MLX5_VPORT_MC_ADDR_CHANGE)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
737
esw_update_vport_addr_list(esw, vport, MLX5_NVPRT_LIST_TYPE_MC);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
739
if (vport->enabled_events & MLX5_VPORT_PROMISC_CHANGE) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
740
esw_update_vport_rx_mode(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
741
if (!IS_ERR_OR_NULL(vport->allmulti_rule))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
742
esw_update_vport_mc_promisc(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
745
if (vport->enabled_events & (MLX5_VPORT_PROMISC_CHANGE | MLX5_VPORT_MC_ADDR_CHANGE))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
746
esw_apply_vport_addr_list(esw, vport, MLX5_NVPRT_LIST_TYPE_MC);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
748
esw_debug(esw->dev, "vport[%d] Context Changed: Done\n", vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
749
if (vport->enabled)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
750
arm_vport_context_events_cmd(dev, vport->vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
751
vport->enabled_events);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
756
struct mlx5_vport *vport =
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
758
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
761
esw_vport_change_handle_locked(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
778
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
781
return esw_legacy_vport_acl_setup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
783
return esw_vport_create_offloads_acl_tables(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
787
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
790
esw_legacy_vport_acl_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
792
esw_vport_destroy_offloads_acl_tables(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
795
static int mlx5_esw_vport_caps_get(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
809
err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
815
vport->info.roce_enabled = MLX5_GET(cmd_hca_cap, hca_caps, roce);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
816
vport->vhca_id = MLX5_GET(cmd_hca_cap, hca_caps, vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
822
err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
828
vport->info.mig_enabled = MLX5_GET(cmd_hca_cap_2, hca_caps, migratable);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
830
err = mlx5_esw_ipsec_vf_offload_get(esw->dev, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
838
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
840
vport = mlx5_eswitch_get_vport(esw, vportn);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
841
if (IS_ERR(vport) || MLX5_VPORT_INVAL_VHCA_ID(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
844
*vhca_id = vport->vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
849
esw_vport_to_func_type(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
851
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
882
static int esw_vport_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
885
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
889
err = esw_vport_setup_acl(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
896
err = mlx5_esw_vport_caps_get(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
903
vport->info.link_state);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
906
vport->info.mac);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
908
&vport->info.node_guid);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
910
flags = (vport->info.vlan || vport->info.qos) ?
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
913
modify_esw_vport_cvlan(esw->dev, vport_num, vport->info.vlan,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
914
vport->info.qos, flags);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
919
esw_vport_cleanup_acl(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
924
static void esw_vport_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
926
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
934
mlx5_esw_qos_vport_disable(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
935
esw_vport_cleanup_acl(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
939
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
948
vport->vport, true,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
949
vport->agg_max_tx_speed);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
953
vport->vport, vport->agg_max_tx_speed, ret);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
956
int mlx5_esw_vport_enable(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
959
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
963
WARN_ON(vport->enabled);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
967
ret = esw_vport_setup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
972
vport->enabled_events = enabled_events;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
973
vport->enabled = true;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
975
(vport->info.ipsec_crypto_enabled || vport->info.ipsec_packet_enabled))
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
983
vport->info.trusted = true;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
987
ret = mlx5_esw_vport_vhca_id_map(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
990
ret = xa_insert(&esw->vhca_type_map, vport->vhca_id,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
991
xa_mk_value(esw_vport_to_func_type(esw, vport)),
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
997
esw_vport_change_handle_locked(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
1026
int mlx5_eswitch_set_vport_state(struct mlx5_eswitch *esw, u16 vport, int link_state) { return 0; }
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
191
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
195
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
197
dl_port->vport = vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
207
return mlx5_devlink_port_get(dl_port)->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
212
#define MLX5_VPORT_INVAL_VHCA_ID(vport) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
213
((vport)->vhca_id == MLX5_VHCA_ID_INVALID)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
253
u16 vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
461
void mlx5_esw_vport_free(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
474
u16 vport, const u8 *mac);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
476
u16 vport, int link_state);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
478
u16 vport, u16 vlan, u8 qos);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
480
u16 vport, bool spoofchk);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
483
int mlx5_eswitch_set_vport_rate(struct mlx5_eswitch *esw, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
485
int mlx5_esw_qos_vport_update_parent(struct mlx5_vport *vport, struct mlx5_esw_sched_node *node,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
490
u16 vport, struct ifla_vf_info *ivi);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
492
u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
496
int mlx5_eswitch_modify_esw_vport_context(struct mlx5_core_dev *dev, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
543
mlx5_eswitch_create_vport_rx_rule(struct mlx5_eswitch *esw, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
584
u16 vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
649
u16 vport, u16 vlan, u8 qos, u8 set_flags);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
685
int mlx5_esw_adj_vport_modify(struct mlx5_core_dev *dev, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
689
void mlx5_esw_destroy_esw_vport(struct mlx5_core_dev *dev, u16 vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
766
#define mlx5_esw_for_each_vport(esw, index, vport) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
767
xa_for_each(&((esw)->vports), index, vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
773
#define mlx5_esw_for_each_vport_marked(esw, index, vport, last, filter) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
774
mlx5_esw_for_each_entry_marked(&((esw)->vports), index, vport, last, filter)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
776
#define mlx5_esw_for_each_vf_vport(esw, index, vport, last) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
777
mlx5_esw_for_each_vport_marked(esw, index, vport, last, MLX5_ESW_VPT_VF)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
779
#define mlx5_esw_for_each_host_func_vport(esw, index, vport, last) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
780
mlx5_esw_for_each_vport_marked(esw, index, vport, last, MLX5_ESW_VPT_HOST_FN)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
787
#define mlx5_esw_for_each_ec_vf_vport(esw, index, vport, last) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
790
vport, \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
798
#define mlx5_esw_for_each_spf_vport(esw, index, vport) \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
801
((vport) = xa_load(&(esw)->vports, \
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
829
int mlx5_esw_vport_enable(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
831
void mlx5_esw_vport_disable(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
835
struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
838
struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
849
u16 vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
866
u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
869
int mlx5_esw_offloads_init_pf_vf_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
870
void mlx5_esw_offloads_cleanup_pf_vf_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
872
int mlx5_esw_offloads_init_sf_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
875
void mlx5_esw_offloads_cleanup_sf_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
877
int mlx5_esw_offloads_load_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
878
void mlx5_esw_offloads_unload_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
890
struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
892
struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
894
int mlx5_esw_offloads_sf_devlink_port_init(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
897
void mlx5_esw_offloads_sf_devlink_port_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
899
int mlx5_esw_offloads_devlink_port_register(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
900
void mlx5_esw_offloads_devlink_port_unregister(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
916
struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
918
struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
924
const struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
926
const struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
950
void esw_vport_change_handle_locked(struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
993
struct mlx5_vport *vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
996
int mlx5_esw_ipsec_vf_crypto_offload_set(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
998
int mlx5_esw_ipsec_vf_packet_offload_set(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1000
dest.vport.flags |= MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1003
if (rep->vport == MLX5_VPORT_UPLINK &&
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1010
dest.vport.num = rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1011
dest.vport.vhca_id = MLX5_CAP_GEN(rep->esw->dev, vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1012
dest.vport.flags |= MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1016
rep->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1066
dest.vport.num = vport_num;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1160
dest->vport.num = peer_dev->priv.eswitch->manager_vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1161
dest->vport.vhca_id = MLX5_CAP_GEN(peer_dev, vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1162
dest->vport.flags |= MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1168
u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1177
vport));
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1181
MLX5_SET(fte_match_set_misc, misc, source_port, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1237
peer_vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1263
peer_vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1278
peer_vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
129
u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1403
dest.vport.num = esw->manager_vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
141
vport = mlx5_esw_indir_table_decap_vport(attr);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
148
mlx5_eswitch_get_vport_metadata_for_match(src_esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1595
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
160
MLX5_SET(fte_match_set_misc, misc, source_port, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1600
mlx5_esw_for_each_vport(esw, i, vport) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1601
attr.vport = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1611
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1616
mlx5_esw_for_each_vport(esw, i, vport) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
1617
attr.vport = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2214
u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2222
mlx5_eswitch_get_vport_metadata_for_match(esw, vport));
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2231
MLX5_SET(fte_match_set_misc, misc, source_port, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2241
mlx5_eswitch_create_vport_rx_rule(struct mlx5_eswitch *esw, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2254
mlx5_esw_set_spec_source_port(esw, vport, spec);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2301
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2323
mlx5_esw_for_each_host_func_vport(esw, i, vport, esw->esw_funcs.num_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2324
mlx5_query_nic_vport_min_inline(dev, vport->vport, &mlx5_mode);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2564
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2570
mlx5_esw_for_each_vf_vport(esw, i, vport, U16_MAX) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2571
if (!vport->adjacent)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2574
vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2575
mlx5_esw_adj_vport_modify(esw->dev, vport->vport, true);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2584
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2590
mlx5_esw_for_each_vf_vport(esw, i, vport, U16_MAX) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2591
if (!vport->adjacent)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2594
vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2596
mlx5_esw_adj_vport_modify(esw->dev, vport->vport, false);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2628
const struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2631
vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2635
xa_erase(&esw->offloads.vport_reps, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2640
const struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2650
rep->vport = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2651
rep->vport_index = vport->index;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2665
err = xa_insert(&esw->offloads.vport_reps, rep->vport, rep, GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2679
xa_erase(&esw->offloads.vport_reps, rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2696
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2703
mlx5_esw_for_each_vport(esw, i, vport) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2704
err = mlx5_esw_offloads_rep_add(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2899
int mlx5_esw_offloads_init_pf_vf_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2904
return mlx5_esw_offloads_pf_vf_devlink_port_init(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2907
void mlx5_esw_offloads_cleanup_pf_vf_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2912
mlx5_esw_offloads_pf_vf_devlink_port_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2915
int mlx5_esw_offloads_init_sf_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2919
return mlx5_esw_offloads_sf_devlink_port_init(esw, vport, dl_port, controller, sfnum);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2922
void mlx5_esw_offloads_cleanup_sf_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2924
mlx5_esw_offloads_sf_devlink_port_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2927
int mlx5_esw_offloads_load_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2934
err = mlx5_esw_offloads_devlink_port_register(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2938
err = mlx5_esw_offloads_rep_load(esw, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
294
else if (mlx5_esw_indir_table_needed(esw, attr, esw_attr->dests[i].vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2944
mlx5_esw_offloads_devlink_port_unregister(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2948
void mlx5_esw_offloads_unload_rep(struct mlx5_eswitch *esw, struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2953
mlx5_esw_offloads_rep_unload(esw, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2955
mlx5_esw_offloads_devlink_port_unregister(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
296
mlx5_esw_indir_table_put(esw, esw_attr->dests[i].vport, false);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3001
struct mlx5_vport *vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3029
dest.vport.num = slave->priv.eswitch->manager_vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3030
dest.vport.vhca_id = MLX5_CAP_GEN(slave, vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3031
dest.vport.flags |= MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3038
err = xa_insert(&vport->egress.offloads.bounce_rules,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3049
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3061
if (vport->egress.acl)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3064
xa_init_flags(&vport->egress.offloads.bounce_rules, XA_FLAGS_ALLOC);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3067
vport->index);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3075
if (vport->vport || mlx5_core_is_ecpf(esw->dev))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3078
acl = mlx5_create_vport_flow_table(ns, &ft_attr, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3090
vport->egress.acl = acl;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3091
vport->egress.offloads.bounce_grp = g;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3092
vport->egress.type = VPORT_EGRESS_ACL_TYPE_SHARED_FDB;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3098
vport->egress.acl = NULL;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3105
static void esw_slave_egress_destroy_resources(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3107
if (!IS_ERR_OR_NULL(vport->egress.offloads.bounce_grp)) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3108
mlx5_destroy_flow_group(vport->egress.offloads.bounce_grp);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3109
vport->egress.offloads.bounce_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3111
if (!IS_ERR_OR_NULL(vport->egress.acl)) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3112
esw_acl_egress_ofld_cleanup(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3113
xa_destroy(&vport->egress.offloads.bounce_rules);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3139
dest.vport.num = master->priv.eswitch->manager_vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3140
dest.vport.vhca_id = master_vhca;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3141
dest.vport.flags = MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3180
struct mlx5_vport *vport, size_t count)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3192
if (vport->egress.acl)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3199
if (vport->vport || mlx5_core_is_ecpf(esw->dev))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3202
acl = mlx5_create_vport_flow_table(egress_ns, &ft_attr, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3228
vport->egress.acl = acl;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3229
vport->egress.offloads.bounce_grp = g;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3230
vport->egress.type = VPORT_EGRESS_ACL_TYPE_SHARED_FDB;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3231
xa_init_flags(&vport->egress.offloads.bounce_rules, XA_FLAGS_ALLOC);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3244
static void esw_master_egress_destroy_resources(struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3246
if (!xa_empty(&vport->egress.offloads.bounce_rules))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3248
mlx5_destroy_flow_group(vport->egress.offloads.bounce_grp);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3249
vport->egress.offloads.bounce_grp = NULL;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3250
mlx5_destroy_flow_table(vport->egress.acl);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3251
vport->egress.acl = NULL;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3260
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3263
vport = mlx5_eswitch_get_vport(esw, esw->manager_vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3264
if (IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3265
return PTR_ERR(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3269
vport->index);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3273
if (vport->egress.acl && vport->egress.type != VPORT_EGRESS_ACL_TYPE_SHARED_FDB)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3276
err = esw_master_egress_create_resources(esw, egress_ns, vport, count);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3280
if (xa_load(&vport->egress.offloads.bounce_rules, slave_index))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3283
err = __esw_set_master_egress_rule(master, slave, vport, vport->egress.acl);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3290
esw_master_egress_destroy_resources(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3297
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3299
vport = mlx5_eswitch_get_vport(dev->priv.eswitch,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3302
if (!vport->egress.acl)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3305
esw_acl_egress_ofld_bounce_rule_destroy(vport, MLX5_CAP_GEN(slave_dev, vhca_id));
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3307
if (xa_empty(&vport->egress.offloads.bounce_rules)) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3308
esw_acl_egress_ofld_cleanup(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3309
xa_destroy(&vport->egress.offloads.bounce_rules);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
365
mlx5_esw_indir_table_needed(esw, attr, esw_attr->dests[i].vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3656
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3658
if (vport->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3659
vport->default_metadata = mlx5_esw_match_metadata_reserved(esw);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3661
vport->default_metadata = mlx5_esw_match_metadata_alloc(esw);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3663
vport->metadata = vport->default_metadata;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3664
return vport->metadata ? 0 : -ENOSPC;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3668
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3670
if (!vport->default_metadata)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3673
if (vport->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3676
WARN_ON(vport->metadata != vport->default_metadata);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3677
mlx5_esw_match_metadata_free(esw, vport->default_metadata);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3678
vport->default_metadata = 0;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3683
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3689
mlx5_esw_for_each_vport(esw, i, vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3690
esw_offloads_vport_metadata_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3695
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3702
mlx5_esw_for_each_vport(esw, i, vport) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3703
err = esw_offloads_vport_metadata_setup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3726
struct mlx5_vport *manager, *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3763
mlx5_esw_for_each_vport(esw, i, vport) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3764
if (!vport || !vport->enabled)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3767
vport->vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3784
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3788
err = esw_acl_ingress_ofld_setup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3792
err = esw_acl_egress_ofld_setup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3799
esw_acl_ingress_ofld_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3805
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3807
esw_acl_egress_ofld_cleanup(vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3808
esw_acl_ingress_ofld_cleanup(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3843
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3845
vport = mlx5_eswitch_get_vport(esw, esw->manager_vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3846
if (!IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3847
esw_vport_destroy_offloads_acl_tables(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3849
vport = mlx5_eswitch_get_vport(esw, MLX5_VPORT_UPLINK);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3850
if (!IS_ERR(vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3851
esw_vport_destroy_offloads_acl_tables(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3863
if (rep->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3865
mlx5_esw_offloads_rep_unload(esw, rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3893
rep->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3895
if (rep->vport != MLX5_VPORT_UPLINK &&
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
394
esw_attr->dests[j].vport, false);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4131
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4180
mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4181
vport->info.link_state = MLX5_VPORT_ADMIN_STATE_DOWN;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4183
mlx5_esw_for_each_ec_vf_vport(esw, i, vport, esw->esw_funcs.num_ec_vfs)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4184
vport->info.link_state = MLX5_VPORT_ADMIN_STATE_DOWN;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
439
esw_attr->dests[attr_idx].vport == MLX5_VPORT_UPLINK &&
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
442
esw_attr->dests[attr_idx].vport != esw_attr->in_rep->vport &&
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4569
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4574
mlx5_esw_for_each_host_func_vport(esw, i, vport, esw->esw_funcs.num_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4575
err = mlx5_modify_nic_vport_min_inline(dev, vport->vport, mlx5_mode);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4577
err_vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4584
mlx5_esw_for_each_ec_vf_vport(esw, i, vport, esw->esw_funcs.num_ec_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4585
err = mlx5_modify_nic_vport_min_inline(dev, vport->vport, mlx5_mode);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4587
err_vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4597
mlx5_esw_for_each_ec_vf_vport(esw, i, vport, esw->esw_funcs.num_ec_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4598
if (vport->vport == err_vport_num)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4601
vport->vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4605
mlx5_esw_for_each_host_func_vport(esw, i, vport, esw->esw_funcs.num_vfs) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4606
if (vport->vport == err_vport_num)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4609
vport->vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
475
dest[dest_idx].vport.num = esw_attr->dests[attr_idx].vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
477
dest[dest_idx].vport.vhca_id =
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
479
dest[dest_idx].vport.flags |= MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
480
if (dest[dest_idx].vport.num == MLX5_VPORT_UPLINK &&
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4829
if (likely(mlx5_eswitch_vport_has_rep(esw, rep->vport))) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4840
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4860
mlx5_esw_for_each_vport(esw, i, vport) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4861
if (!vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4863
if (!vport->enabled)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4865
if (vport->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4867
if (!mlx5_eswitch_vport_has_rep(esw, vport->vport))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4870
mlx5_esw_offloads_rep_load(esw, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
489
dest[dest_idx].vport.flags |= MLX5_FLOW_DEST_VPORT_REFORMAT_ID;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
490
dest[dest_idx].vport.pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4965
u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4970
rep = mlx5_eswitch_get_rep(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4991
u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
4993
return mlx5_eswitch_get_rep(esw, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5012
struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5014
if (WARN_ON_ONCE(IS_ERR(vport)))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5017
return vport->metadata << (32 - ESW_SOURCE_PORT_METADATA_BITS);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5022
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5026
if (WARN_ONCE(MLX5_VPORT_INVAL_VHCA_ID(vport),
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5027
"vport %d vhca_id is not set", vport->vport)) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5030
err = mlx5_vport_get_vhca_id(vport->dev, vport->vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5034
vport->vhca_id = vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5037
vhca_id = vport->vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5042
*vhca_map_entry = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5053
struct mlx5_vport *vport)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5057
vhca_map_entry = xa_erase(&esw->offloads.vhca_map, vport->vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5075
struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5077
if (WARN_ON_ONCE(IS_ERR(vport)))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5080
return vport->metadata;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5089
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5093
mlx5_query_nic_vport_mac_address(esw->dev, vport->vport, true,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5094
vport->info.mac);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5095
ether_addr_copy(hw_addr, vport->info.mac);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5106
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5108
return mlx5_eswitch_set_vport_mac(esw, vport->vport, hw_addr);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5115
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5129
*is_enabled = vport->info.mig_enabled;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5138
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5156
if (vport->info.mig_enabled == enable) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5167
err = mlx5_vport_get_other_func_cap(esw->dev, vport->vport, query_ctx,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5177
err = mlx5_vport_set_other_func_cap(esw->dev, hca_caps, vport->vport,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5184
vport->info.mig_enabled = enable;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5197
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5206
*is_enabled = vport->info.roce_enabled;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5215
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5217
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5229
if (vport->info.roce_enabled == enable) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5257
vport->info.roce_enabled = enable;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5271
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5272
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5276
if (mlx5_eswitch_is_vf_vport(esw, vport->vport)) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5281
*state = vport->pf_activated ?
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5284
query_out = mlx5_esw_query_functions(vport->dev);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5288
if (vport->vport == MLX5_VPORT_HOST_PF) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5291
host_pf_info = mlx5_esw_get_host_pf_info(vport->dev,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5295
pf_disabled = mlx5_esw_get_spf_disabled(vport->dev, query_out,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5296
vport->vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5310
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5311
struct mlx5_eswitch *esw = vport->dev->priv.eswitch;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5314
if (mlx5_eswitch_is_vf_vport(esw, vport->vport)) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5319
dev = vport->dev;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5323
return mlx5_esw_pf_enable_hca(dev, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5325
return mlx5_esw_pf_disable_hca(dev, vport->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5352
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5364
vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5367
if (!vport->enabled) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5372
*is_enabled = vport->info.ipsec_crypto_enabled;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5382
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5398
vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5401
if (!vport->enabled) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5407
if (vport->info.ipsec_crypto_enabled == enable)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5415
err = mlx5_esw_ipsec_vf_crypto_offload_set(esw, vport, enable);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5421
vport->info.ipsec_crypto_enabled = enable;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5435
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5447
vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5450
if (!vport->enabled) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5455
*is_enabled = vport->info.ipsec_packet_enabled;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5466
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5482
vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5484
if (!vport->enabled) {
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5490
if (vport->info.ipsec_packet_enabled == enable)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5498
err = mlx5_esw_ipsec_vf_packet_offload_set(esw, vport, enable);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5505
vport->info.ipsec_packet_enabled = enable;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5520
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5522
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
555
if (dests[i].vport.num == MLX5_VPORT_UPLINK &&
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
556
!(dests[i].vport.flags & MLX5_FLOW_DEST_VPORT_REFORMAT_ID))
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5570
struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5572
u16 vport_num = vport->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
5619
vport->max_eqs_set = true;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
747
fwd_attr.vport = esw_attr->in_rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
761
esw_attr->in_rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
825
fwd_attr.vport = esw_attr->in_rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
854
esw_attr->in_rep->vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
907
fwd_attr.vport = esw_attr->in_rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
950
u16 vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
967
vport = from_esw->manager_vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
972
mlx5_eswitch_get_vport_metadata_for_match(from_esw, vport));
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
981
MLX5_SET(fte_match_set_misc, misc, source_port, vport);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
99
spec->flow_context.flow_source = (attr->in_rep->vport == MLX5_VPORT_UPLINK) ?
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
998
dest.vport.num = rep->vport;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
999
dest.vport.vhca_id = MLX5_CAP_GEN(rep->esw->dev, vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
142
tt->dest.vport.num = dest->vport.num;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
143
tt->dest.vport.vhca_id = dest->vport.vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
144
tt->dest.vport.flags = dest->vport.flags;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
237
esw_attr->dests[i].vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
29
hash = jhash((const void *)&dest->vport.num,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
30
sizeof(dest->vport.num), hash);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
31
hash = jhash((const void *)&dest->vport.vhca_id,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
32
sizeof(dest->vport.num), hash);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
326
dest[i].vport.num = tt->dest.vport.num;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
327
dest[i].vport.vhca_id = tt->dest.vport.vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
49
dest1->vport.num != dest2->vport.num ||
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
50
dest1->vport.vhca_id != dest2->vport.vhca_id ||
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
239
MLX5_SET(set_flow_table_root_in, in, vport_number, ft->vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
306
MLX5_SET(create_flow_table_in, in, vport_number, ft->vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
368
MLX5_SET(destroy_flow_table_in, in, vport_number, ft->vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
406
MLX5_SET(modify_flow_table_in, in, vport_number, ft->vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
445
MLX5_SET(create_flow_group_in, in, vport_number, ft->vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
471
MLX5_SET(destroy_flow_group_in, in, vport_number, ft->vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
500
dst->dest_attr.vport.flags & MLX5_FLOW_DEST_VPORT_REFORMAT_ID)
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
583
MLX5_SET(set_fte_in, in, vport_number, ft->vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
685
!!(dst->dest_attr.vport.flags &
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
689
dst->dest_attr.vport.vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
697
id = dst->dest_attr.vport.num;
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
699
dst->dest_attr.vport.pkt_reformat) {
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
702
!!(dst->dest_attr.vport.flags &
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
706
dst->dest_attr.vport.pkt_reformat->id);
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
819
MLX5_SET(delete_fte_in, in, vport_number, ft->vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1340
u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1375
ft = alloc_flow_table(ft_attr, vport, root->table_type, op_mod);
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1434
struct mlx5_flow_table_attr *ft_attr, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1436
return __mlx5_create_flow_table(ns, ft_attr, FS_FT_OP_MOD_NORMAL, vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1457
ft = mlx5_create_vport_flow_table(ns, ft_attr, ft_attr->vport);
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1868
d1->vport.num == d2->vport.num &&
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1869
d1->vport.flags == d2->vport.flags &&
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1870
((d1->vport.flags & MLX5_FLOW_DEST_VPORT_VHCA_ID) ?
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1871
(d1->vport.vhca_id == d2->vport.vhca_id) : true) &&
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1872
((d1->vport.flags & MLX5_FLOW_DEST_VPORT_REFORMAT_ID) ?
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1873
mlx5_pkt_reformat_cmp(d1->vport.pkt_reformat,
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1874
d2->vport.pkt_reformat) : true)) ||
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
944
alloc_flow_table(struct mlx5_flow_table_attr *ft_attr, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
965
ft->vport = vport;
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
189
u16 vport;
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
492
&MLX5E_STATS_GRP(vport),
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
1464
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
1474
mlx5_esw_for_each_vport(esw, i, vport) {
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
1475
if (!vport)
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
1478
if (vport->vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
1481
vport->agg_max_tx_speed = speed;
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
1483
if (!vport->enabled)
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
1487
vport->vport, true, speed);
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
1491
vport->vport, speed, ret);
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c
593
dest.vport.flags |= MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c
604
dest.vport.vhca_id =
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c
78
dest.vport.flags |= MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c
90
dest.vport.vhca_id =
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
456
int mlx5_vport_set_other_func_cap(struct mlx5_core_dev *dev, const void *hca_cap, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
458
#define mlx5_vport_get_other_func_general_cap(dev, vport, out) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
459
mlx5_vport_get_other_func_cap(dev, vport, out, MLX5_CAP_GENERAL)
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
461
#define mlx5_vport_set_other_func_general_cap(dev, hca_cap, vport) \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
462
mlx5_vport_set_other_func_cap(dev, hca_cap, vport, \
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
504
static inline int mlx5_vport_to_func_id(const struct mlx5_core_dev *dev, u16 vport, bool ec_vf_func)
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
506
return ec_vf_func ? vport - mlx5_core_ec_vf_vport_base(dev) + 1
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
507
: vport;
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
117
vport = mlx5_core_func_to_vport(dev, function_id, ec_vf_function);
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
118
ret = mlx5_vport_get_other_func_general_cap(dev, vport, query_cap);
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
126
ret = mlx5_vport_set_other_func_general_cap(dev, hca_caps, vport);
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
93
int vport;
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
161
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
171
vport = mlx5_devlink_port_vport_get(&sf->dl_port.dl_port);
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
172
if (!vport->max_eqs_set && MLX5_CAP_GEN_2(dev, max_num_eqs_24b)) {
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
333
struct mlx5_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
336
vport = mlx5_devlink_port_vport_get(&sf->dl_port.dl_port);
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
337
vport->max_eqs_set = false;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1406
dest_list[i].destination_id = dests[i].dest->vport.vport_num;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1412
dests[i].dest->vport.esw_owner_vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
287
fixup_stc_attr->vport.esw_owner_vhca_id = ctx->caps->vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
288
fixup_stc_attr->vport.vport_num = ctx->caps->eswitch_manager_vport_number;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
289
fixup_stc_attr->vport.eswitch_owner_vhca_id_valid =
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
296
if (stc_attr->vport.vport_num != MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
304
fixup_stc_attr->vport.vport_num = 0;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
305
fixup_stc_attr->vport.esw_owner_vhca_id = stc_attr->vport.esw_owner_vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
306
fixup_stc_attr->vport.eswitch_owner_vhca_id_valid =
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
307
stc_attr->vport.eswitch_owner_vhca_id_valid;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
516
attr->vport.vport_num = action->vport.vport_num;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
517
attr->vport.esw_owner_vhca_id = action->vport.esw_owner_vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
518
attr->vport.eswitch_owner_vhca_id_valid = action->vport.esw_owner_vhca_id_valid;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
837
action->vport.vport_num = vport_num;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
838
action->vport.esw_owner_vhca_id_valid = vhca_id_valid;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
841
action->vport.esw_owner_vhca_id = vhca_id;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.h
165
} vport;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
522
stc_attr->vport.vport_num);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
524
stc_attr->vport.esw_owner_vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
526
stc_attr->vport.eswitch_owner_vhca_id_valid);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.h
137
} vport;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
426
(dest_attr->vport.flags & MLX5_FLOW_DEST_VPORT_VHCA_ID);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
427
vport_num = is_dest_type_uplink ? MLX5_VPORT_UPLINK : dest_attr->vport.num;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
430
idx = (unsigned long)dest_attr->vport.vhca_id << 16 | vport_num;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
441
dest_attr->vport.vhca_id, flags);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/prm.h
334
struct mlx5_ifc_stc_ste_param_vport_bits vport;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
33
static int hws_vport_add_gvmi(struct mlx5hws_context *ctx, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
38
ret = mlx5hws_cmd_query_gvmi(ctx->mdev, true, vport, &vport_gvmi);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
42
ret = xa_insert(&ctx->vports.vport_gvmi_xa, vport,
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
50
static bool hws_vport_is_esw_mgr_vport(struct mlx5hws_context *ctx, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
52
return ctx->caps->is_ecpf ? vport == MLX5_VPORT_ECPF :
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
53
vport == MLX5_VPORT_HOST_PF;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
56
int mlx5hws_vport_get_gvmi(struct mlx5hws_context *ctx, u16 vport, u16 *vport_gvmi)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
64
if (hws_vport_is_esw_mgr_vport(ctx, vport)) {
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
69
if (vport == MLX5_VPORT_UPLINK) {
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
75
entry = xa_load(&ctx->vports.vport_gvmi_xa, vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.c
78
ret = hws_vport_add_gvmi(ctx, vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport.h
11
int mlx5hws_vport_get_gvmi(struct mlx5hws_context *ctx, u16 vport, u16 *vport_gvmi);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
1216
hw_dests[i].vport.flags = MLX5_FLOW_DEST_VPORT_VHCA_ID;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
1218
hw_dests[i].vport.num = dest_action->vport->caps->num;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
1219
hw_dests[i].vport.vhca_id = dest_action->vport->caps->vhca_gvmi;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
1222
hw_dests[i].vport.reformat_id =
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
1225
hw_dests[i].vport.flags |= MLX5_FLOW_DEST_VPORT_REFORMAT_ID;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
2106
u16 vport, u8 vhca_id_valid,
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
2127
vport_cap = mlx5dr_domain_get_vport_cap(vport_dmn, vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
2131
vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
2139
action->vport->dmn = vport_dmn;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
2140
action->vport->caps = vport_cap;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
618
ret = mlx5dr_domain_get_recalc_cs_ft_addr(dest_action->vport->dmn,
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
619
dest_action->vport->caps->num,
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
877
if (unlikely(rx_rule && action->vport->caps->num == MLX5_VPORT_UPLINK)) {
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
882
attr.hit_gvmi = action->vport->caps->vhca_gvmi;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
885
action->vport->caps->icm_address_rx :
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
886
action->vport->caps->icm_address_tx;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
300
u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
331
MLX5_SET(dest_format_struct, in_dests, destination_id, vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
750
fte->dest_arr[i].vport.flags & MLX5_FLOW_DEST_VPORT_REFORMAT_ID)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
79
u16 vport, bool *roce_en)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
808
if (ft->vport) {
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
809
MLX5_SET(set_fte_in, in, vport_number, ft->vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
87
MLX5_SET(query_nic_vport_context_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
88
MLX5_SET(query_nic_vport_context_in, in, other_vport, !!vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
883
id = fte->dest_arr[i].vport.num;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
886
!!(fte->dest_arr[i].vport.flags &
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
897
fte->dest_arr[i].vport.vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
898
if (extended_dest && (fte->dest_arr[i].vport.flags &
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
902
!!(fte->dest_arr[i].vport.flags &
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
906
fte->dest_arr[i].vport.reformat_id);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg.c
327
action->vport->caps->num);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
279
dr_domain_add_vport_cap(struct mlx5dr_domain *dmn, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
289
ret = dr_domain_query_vport(dmn, vport, true, vport_caps);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
295
ret = xa_insert(&caps->vports.vports_caps_xa, vport,
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
308
static bool dr_domain_is_esw_mgr_vport(struct mlx5dr_domain *dmn, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
312
return (caps->is_ecpf && vport == MLX5_VPORT_ECPF) ||
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
313
(!caps->is_ecpf && vport == 0);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
317
mlx5dr_domain_get_vport_cap(struct mlx5dr_domain *dmn, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
322
if (dr_domain_is_esw_mgr_vport(dmn, vport))
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
325
if (vport == MLX5_VPORT_UPLINK)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
329
vport_caps = xa_load(&caps->vports.vports_caps_xa, vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain.c
333
vport_caps = dr_domain_add_vport_cap(dmn, vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_types.h
1129
struct mlx5dr_action_vport *vport;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_types.h
1276
mlx5dr_domain_get_vport_cap(struct mlx5dr_domain *dmn, u16 vport);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_types.h
1504
u16 vport;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_types.h
1521
} vport;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.c
185
return mlx5dr_action_create_dest_vport(domain, dest_attr->vport.num,
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.c
186
dest_attr->vport.flags &
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.c
188
dest_attr->vport.vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.c
197
dest_attr->vport.vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.c
244
dst->dest_attr.vport.flags & MLX5_FLOW_DEST_VPORT_REFORMAT_ID;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.c
461
if (dst->dest_attr.vport.flags &
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.c
463
pkt_reformat = dst->dest_attr.vport.pkt_reformat;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5dr.h
95
u16 vport, u8 vhca_id_valid,
drivers/net/ethernet/mellanox/mlx5/core/vport.c
103
u16 vport, u8 other_vport, u16 max_tx_speed)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
109
err = mlx5_query_vport_admin_state(mdev, opmod, vport, other_vport,
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1138
int mlx5_query_vport_down_stats(struct mlx5_core_dev *mdev, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1149
MLX5_SET(query_vnic_env_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
117
MLX5_SET(modify_vport_state_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
126
u16 vport, u8 other_vport, u32 *max_tx_speed)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1331
int mlx5_vport_get_other_func_cap(struct mlx5_core_dev *dev, u16 vport, void *out,
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1343
ec_vf_func = mlx5_core_is_ec_vf_vport(dev, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1344
function_id = mlx5_vport_to_func_id(dev, vport, ec_vf_func);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1346
if (mlx5_vport_use_vhca_id_as_func_id(dev, vport, &vhca_id)) {
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1351
__func__, vport, vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
136
MLX5_SET(query_vport_state_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1364
int mlx5_vport_get_vhca_id(struct mlx5_core_dev *dev, u16 vport, u16 *vhca_id)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1372
if (mlx5_esw_vport_vhca_id(dev->priv.eswitch, vport, vhca_id))
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1379
err = mlx5_vport_get_other_func_general_cap(dev, vport, query_ctx);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1393
u16 vport, u16 opmod)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1411
ec_vf_func = mlx5_core_is_ec_vf_vport(dev, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1412
function_id = mlx5_vport_to_func_id(dev, vport, ec_vf_func);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1414
if (mlx5_vport_use_vhca_id_as_func_id(dev, vport, &vhca_id)) {
drivers/net/ethernet/mellanox/mlx5/core/vport.c
1419
__func__, vport, vhca_id);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
154
static int mlx5_query_nic_vport_context(struct mlx5_core_dev *mdev, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/vport.c
161
MLX5_SET(query_nic_vport_context_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
168
u16 vport, u8 *min_inline)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
173
err = mlx5_query_nic_vport_context(mdev, vport, vport > 0, out);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
200
u16 vport, u8 min_inline)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
207
MLX5_SET(modify_nic_vport_context_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
221
u16 vport, bool other, u8 *addr)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
233
MLX5_SET(query_nic_vport_context_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
251
u16 vport, const u8 *addr)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
265
MLX5_SET(modify_nic_vport_context_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
327
static int mlx5_vport_max_mac_list_size(struct mlx5_core_dev *dev, u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/vport.c
333
if (!vport && !mlx5_core_is_ecpf(dev))
drivers/net/ethernet/mellanox/mlx5/core/vport.c
342
ret = mlx5_vport_get_other_func_general_cap(dev, vport, query_ctx);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
358
u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/vport.c
378
max_list_size = mlx5_vport_max_mac_list_size(dev, vport, list_type);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
392
MLX5_SET(query_nic_vport_context_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
393
if (vport || mlx5_core_is_ecpf(dev))
drivers/net/ethernet/mellanox/mlx5/core/vport.c
45
u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
54
MLX5_SET(query_vport_state_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
55
if (vport)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
575
u16 vport, bool other_vport, u64 *node_guid)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
585
err = mlx5_query_nic_vport_context(mdev, vport, other_vport, out);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
599
u16 vport, u64 node_guid)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
615
MLX5_SET(modify_nic_vport_context_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
66
u16 vport, u8 other_vport,
drivers/net/ethernet/mellanox/mlx5/core/vport.c
76
MLX5_SET(query_vport_state_in, in, vport_number, vport);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
88
u16 vport, u8 other_vport, u8 state)
drivers/net/ethernet/mellanox/mlx5/core/vport.c
904
u16 vport,
drivers/net/ethernet/mellanox/mlx5/core/vport.c
917
err = mlx5_query_nic_vport_context(mdev, vport, vport > 0, out);
drivers/net/ethernet/mellanox/mlx5/core/vport.c
95
MLX5_SET(modify_vport_state_in, in, vport_number, vport);
drivers/net/ethernet/microsoft/mana/mana_en.c
1148
req.vport = apc->port_handle;
drivers/net/ethernet/microsoft/mana/mana_en.c
1310
apc->port_handle = resp.vport;
drivers/net/ethernet/microsoft/mana/mana_en.c
1364
req.vport = apc->port_handle;
drivers/net/ethernet/microsoft/mana/mana_en.c
1421
req->vport = apc->port_handle;
drivers/net/ethernet/microsoft/mana/mana_en.c
1497
req.vport = apc->port_handle;
drivers/net/ethernet/microsoft/mana/mana_en.c
1545
req.vport = apc->port_handle;
drivers/net/ethernet/microsoft/mana/mana_en.c
1582
mana_handle_t vport,
drivers/net/ethernet/microsoft/mana/mana_en.c
1594
req.vport = vport;
drivers/net/ethernet/microsoft/mana/mana_en.c
3276
char vport[32];
drivers/net/ethernet/microsoft/mana/mana_en.c
3303
sprintf(vport, "vport%d", port_idx);
drivers/net/ethernet/microsoft/mana/mana_en.c
3304
apc->mana_port_debugfs = debugfs_create_dir(vport, gc->mana_pci_debugfs);
drivers/net/ethernet/qlogic/qed/qed_dev.c
1962
struct init_qm_vport_params *vport;
drivers/net/ethernet/qlogic/qed/qed_dev.c
2011
vport = &(qm_info->qm_vport_params[i]);
drivers/net/ethernet/qlogic/qed/qed_dev.c
2015
qm_info->start_vport + i, vport->wfq);
drivers/net/ethernet/qlogic/qed/qed_dev.c
2019
"%d ", vport->first_tx_pq_id[tc]);
drivers/net/ethernet/qlogic/qed/qed_l2.c
790
u8 vport,
drivers/net/ethernet/qlogic/qed/qed_l2.c
802
vport_update_params.vport_id = vport;
drivers/scsi/bfa/bfa_core.c
1719
memcpy(pbc_vport, cfgrsp->pbc_cfg.vport, sizeof(cfgrsp->pbc_cfg.vport));
drivers/scsi/bfa/bfa_fcs.c
1005
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs.c
1011
vport = (struct bfa_fcs_vport_s *) qe;
drivers/scsi/bfa/bfa_fcs.c
1013
bfa_fcs_vport_fcs_stop(vport);
drivers/scsi/bfa/bfa_fcs.c
1027
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs.c
1031
vport = (struct bfa_fcs_vport_s *) qe;
drivers/scsi/bfa/bfa_fcs.c
1032
bfa_fcs_vport_fcs_delete(vport);
drivers/scsi/bfa/bfa_fcs.c
1119
struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs.c
1126
list_add_tail(&vport->qe, &fabric->vport_q);
drivers/scsi/bfa/bfa_fcs.c
1138
struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs.c
1140
list_del(&vport->qe);
drivers/scsi/bfa/bfa_fcs.c
1152
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs.c
1156
vport = (struct bfa_fcs_vport_s *) qe;
drivers/scsi/bfa/bfa_fcs.c
1157
if (bfa_fcs_lport_get_pwwn(&vport->lport) == pwwn)
drivers/scsi/bfa/bfa_fcs.c
1158
return vport;
drivers/scsi/bfa/bfa_fcs.c
1198
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs.c
1246
vport = (struct bfa_fcs_vport_s *) qe;
drivers/scsi/bfa/bfa_fcs.c
1247
if (vport->lport.pid == pid) {
drivers/scsi/bfa/bfa_fcs.c
1248
bfa_fcs_lport_uf_recv(&vport->lport, fchs, len);
drivers/scsi/bfa/bfa_fcs.c
1459
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs.c
1477
vport = (struct bfa_fcs_vport_s *) qe;
drivers/scsi/bfa/bfa_fcs.c
1478
lpwwn[i++] = vport->lport.port_cfg.pwwn;
drivers/scsi/bfa/bfa_fcs.c
949
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs.c
963
vport = (struct bfa_fcs_vport_s *) qe;
drivers/scsi/bfa/bfa_fcs.c
964
bfa_fcs_vport_online(vport);
drivers/scsi/bfa/bfa_fcs.c
971
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs.c
981
vport = (struct bfa_fcs_vport_s *) qe;
drivers/scsi/bfa/bfa_fcs.c
982
bfa_fcs_vport_offline(vport);
drivers/scsi/bfa/bfa_fcs.h
214
struct bfa_fcs_vport_s *vport; /* NULL for base ports */
drivers/scsi/bfa/bfa_fcs.h
402
u16 vf_id, struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
421
void bfa_fcs_lport_ns_init(struct bfa_fcs_lport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
422
void bfa_fcs_lport_ns_offline(struct bfa_fcs_lport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
423
void bfa_fcs_lport_ns_online(struct bfa_fcs_lport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
427
void bfa_fcs_lport_scn_init(struct bfa_fcs_lport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
428
void bfa_fcs_lport_scn_offline(struct bfa_fcs_lport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
429
void bfa_fcs_lport_fab_scn_online(struct bfa_fcs_lport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
469
#define bfa_fcs_vport_get_port(vport) \
drivers/scsi/bfa/bfa_fcs.h
470
((struct bfa_fcs_lport_s *)(&vport->port))
drivers/scsi/bfa/bfa_fcs.h
475
bfa_status_t bfa_fcs_vport_create(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs.h
479
bfa_status_t bfa_fcs_pbc_vport_create(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs.h
483
bfa_status_t bfa_fcs_vport_delete(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
484
bfa_status_t bfa_fcs_vport_start(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
485
bfa_status_t bfa_fcs_vport_stop(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
486
void bfa_fcs_vport_get_attr(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs.h
490
void bfa_fcs_vport_online(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
491
void bfa_fcs_vport_offline(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
492
void bfa_fcs_vport_delete_comp(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
493
void bfa_fcs_vport_fcs_delete(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
494
void bfa_fcs_vport_fcs_stop(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
495
void bfa_fcs_vport_stop_comp(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
906
struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs.h
908
struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs_lport.c
1043
u16 vf_id, struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
1047
lport->vport = vport;
drivers/scsi/bfa/bfa_fcs_lport.c
1048
lport->lp_tag = (vport) ? vport->lps->bfa_tag :
drivers/scsi/bfa/bfa_fcs_lport.c
1064
struct bfa_fcs_vport_s *vport = lport->vport;
drivers/scsi/bfa/bfa_fcs_lport.c
1073
vport ? vport->vport_drv : NULL);
drivers/scsi/bfa/bfa_fcs_lport.c
1124
if (port->vport != NULL) {
drivers/scsi/bfa/bfa_fcs_lport.c
1127
port->vport->lps->lp_mac;
drivers/scsi/bfa/bfa_fcs_lport.c
1444
if (port->vport) {
drivers/scsi/bfa/bfa_fcs_lport.c
157
if (port->vport)
drivers/scsi/bfa/bfa_fcs_lport.c
158
bfa_fcs_vport_stop_comp(port->vport);
drivers/scsi/bfa/bfa_fcs_lport.c
194
if (port->vport)
drivers/scsi/bfa/bfa_fcs_lport.c
195
bfa_fcs_vport_stop_comp(port->vport);
drivers/scsi/bfa/bfa_fcs_lport.c
252
if (port->vport)
drivers/scsi/bfa/bfa_fcs_lport.c
253
bfa_fcs_vport_stop_comp(port->vport);
drivers/scsi/bfa/bfa_fcs_lport.c
2917
if (ms->port->vport) {
drivers/scsi/bfa/bfa_fcs_lport.c
299
if (port->vport)
drivers/scsi/bfa/bfa_fcs_lport.c
300
bfa_fcs_vport_stop_comp(port->vport);
drivers/scsi/bfa/bfa_fcs_lport.c
4586
if (port->vport) {
drivers/scsi/bfa/bfa_fcs_lport.c
4961
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs_lport.c
4984
vport = (struct bfa_fcs_vport_s *) qe;
drivers/scsi/bfa/bfa_fcs_lport.c
4985
if (vport->lport.pid == gidft_entry->pid)
drivers/scsi/bfa/bfa_fcs_lport.c
5114
if (port->vport) {
drivers/scsi/bfa/bfa_fcs_lport.c
5309
if ((!port->vport) && bfa_ioc_get_fcmode(&port->fcs->bfa->ioc)) {
drivers/scsi/bfa/bfa_fcs_lport.c
5460
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs_lport.c
5474
vport = (struct bfa_fcs_vport_s *) qe;
drivers/scsi/bfa/bfa_fcs_lport.c
5475
if (vport->lport.pid == rpid)
drivers/scsi/bfa/bfa_fcs_lport.c
5738
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs_lport.c
5752
vport = bfa_fcs_fabric_vport_lookup(vf, lpwwn);
drivers/scsi/bfa/bfa_fcs_lport.c
5753
if (vport)
drivers/scsi/bfa/bfa_fcs_lport.c
5754
return &vport->lport;
drivers/scsi/bfa/bfa_fcs_lport.c
5797
static void bfa_fcs_vport_do_fdisc(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs_lport.c
5799
static void bfa_fcs_vport_do_logo(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs_lport.c
5800
static void bfa_fcs_vport_free(struct bfa_fcs_vport_s *vport);
drivers/scsi/bfa/bfa_fcs_lport.c
5806
static void bfa_fcs_vport_sm_uninit(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5808
static void bfa_fcs_vport_sm_created(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5810
static void bfa_fcs_vport_sm_offline(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5812
static void bfa_fcs_vport_sm_fdisc(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5814
static void bfa_fcs_vport_sm_fdisc_retry(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5816
static void bfa_fcs_vport_sm_fdisc_rsp_wait(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5818
static void bfa_fcs_vport_sm_online(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5820
static void bfa_fcs_vport_sm_deleting(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5822
static void bfa_fcs_vport_sm_cleanup(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5824
static void bfa_fcs_vport_sm_logo(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5826
static void bfa_fcs_vport_sm_error(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5828
static void bfa_fcs_vport_sm_stopping(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5830
static void bfa_fcs_vport_sm_logo_for_stop(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5867
bfa_fcs_vport_sm_uninit(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5870
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
5871
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
5875
bfa_sm_set_state(vport, bfa_fcs_vport_sm_created);
drivers/scsi/bfa/bfa_fcs_lport.c
5876
bfa_fcs_fabric_addvport(__vport_fabric(vport), vport);
drivers/scsi/bfa/bfa_fcs_lport.c
5880
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
5888
bfa_fcs_vport_sm_created(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5891
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
5892
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
5896
if (bfa_sm_cmp_state(__vport_fabric(vport),
drivers/scsi/bfa/bfa_fcs_lport.c
5898
&& bfa_fcs_fabric_npiv_capable(__vport_fabric(vport))) {
drivers/scsi/bfa/bfa_fcs_lport.c
5899
bfa_sm_set_state(vport, bfa_fcs_vport_sm_fdisc);
drivers/scsi/bfa/bfa_fcs_lport.c
5900
bfa_fcs_vport_do_fdisc(vport);
drivers/scsi/bfa/bfa_fcs_lport.c
5906
vport->vport_stats.fab_no_npiv++;
drivers/scsi/bfa/bfa_fcs_lport.c
5907
bfa_sm_set_state(vport, bfa_fcs_vport_sm_offline);
drivers/scsi/bfa/bfa_fcs_lport.c
5912
bfa_sm_set_state(vport, bfa_fcs_vport_sm_cleanup);
drivers/scsi/bfa/bfa_fcs_lport.c
5913
bfa_fcs_lport_delete(&vport->lport);
drivers/scsi/bfa/bfa_fcs_lport.c
5925
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
5933
bfa_fcs_vport_sm_offline(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5936
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
5937
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
5941
bfa_sm_set_state(vport, bfa_fcs_vport_sm_cleanup);
drivers/scsi/bfa/bfa_fcs_lport.c
5942
bfa_fcs_lport_delete(&vport->lport);
drivers/scsi/bfa/bfa_fcs_lport.c
5946
bfa_sm_set_state(vport, bfa_fcs_vport_sm_fdisc);
drivers/scsi/bfa/bfa_fcs_lport.c
5947
vport->fdisc_retries = 0;
drivers/scsi/bfa/bfa_fcs_lport.c
5948
bfa_fcs_vport_do_fdisc(vport);
drivers/scsi/bfa/bfa_fcs_lport.c
5952
bfa_sm_set_state(vport, bfa_fcs_vport_sm_cleanup);
drivers/scsi/bfa/bfa_fcs_lport.c
5953
bfa_sm_send_event(&vport->lport, BFA_FCS_PORT_SM_STOP);
drivers/scsi/bfa/bfa_fcs_lport.c
5967
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
5976
bfa_fcs_vport_sm_fdisc(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
5979
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
5980
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
5984
bfa_sm_set_state(vport, bfa_fcs_vport_sm_fdisc_rsp_wait);
drivers/scsi/bfa/bfa_fcs_lport.c
5988
bfa_sm_set_state(vport, bfa_fcs_vport_sm_offline);
drivers/scsi/bfa/bfa_fcs_lport.c
5989
bfa_sm_send_event(vport->lps, BFA_LPS_SM_OFFLINE);
drivers/scsi/bfa/bfa_fcs_lport.c
5993
bfa_sm_set_state(vport, bfa_fcs_vport_sm_online);
drivers/scsi/bfa/bfa_fcs_lport.c
5994
bfa_fcs_lport_online(&vport->lport);
drivers/scsi/bfa/bfa_fcs_lport.c
5998
bfa_sm_set_state(vport, bfa_fcs_vport_sm_fdisc_retry);
drivers/scsi/bfa/bfa_fcs_lport.c
5999
bfa_timer_start(__vport_bfa(vport), &vport->timer,
drivers/scsi/bfa/bfa_fcs_lport.c
6000
bfa_fcs_vport_timeout, vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6006
bfa_sm_set_state(vport, bfa_fcs_vport_sm_offline);
drivers/scsi/bfa/bfa_fcs_lport.c
6010
bfa_sm_set_state(vport, bfa_fcs_vport_sm_error);
drivers/scsi/bfa/bfa_fcs_lport.c
6014
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6022
bfa_fcs_vport_sm_fdisc_retry(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6025
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6026
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6030
bfa_sm_set_state(vport, bfa_fcs_vport_sm_cleanup);
drivers/scsi/bfa/bfa_fcs_lport.c
6031
bfa_timer_stop(&vport->timer);
drivers/scsi/bfa/bfa_fcs_lport.c
6032
bfa_fcs_lport_delete(&vport->lport);
drivers/scsi/bfa/bfa_fcs_lport.c
6036
bfa_sm_set_state(vport, bfa_fcs_vport_sm_offline);
drivers/scsi/bfa/bfa_fcs_lport.c
6037
bfa_timer_stop(&vport->timer);
drivers/scsi/bfa/bfa_fcs_lport.c
6041
bfa_sm_set_state(vport, bfa_fcs_vport_sm_fdisc);
drivers/scsi/bfa/bfa_fcs_lport.c
6042
vport->vport_stats.fdisc_retries++;
drivers/scsi/bfa/bfa_fcs_lport.c
6043
vport->fdisc_retries++;
drivers/scsi/bfa/bfa_fcs_lport.c
6044
bfa_fcs_vport_do_fdisc(vport);
drivers/scsi/bfa/bfa_fcs_lport.c
6048
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6058
bfa_fcs_vport_sm_fdisc_rsp_wait(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6061
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6062
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6066
bfa_sm_set_state(vport, bfa_fcs_vport_sm_deleting);
drivers/scsi/bfa/bfa_fcs_lport.c
6067
bfa_fcs_lport_delete(&vport->lport);
drivers/scsi/bfa/bfa_fcs_lport.c
6078
bfa_sm_set_state(vport, bfa_fcs_vport_sm_cleanup);
drivers/scsi/bfa/bfa_fcs_lport.c
6079
bfa_sm_send_event(vport->lps, BFA_LPS_SM_OFFLINE);
drivers/scsi/bfa/bfa_fcs_lport.c
6080
bfa_fcs_lport_delete(&vport->lport);
drivers/scsi/bfa/bfa_fcs_lport.c
6084
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6092
bfa_fcs_vport_sm_online(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6095
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6096
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6100
bfa_sm_set_state(vport, bfa_fcs_vport_sm_deleting);
drivers/scsi/bfa/bfa_fcs_lport.c
6101
bfa_fcs_lport_delete(&vport->lport);
drivers/scsi/bfa/bfa_fcs_lport.c
6105
bfa_sm_set_state(vport, bfa_fcs_vport_sm_stopping);
drivers/scsi/bfa/bfa_fcs_lport.c
6106
bfa_sm_send_event(&vport->lport, BFA_FCS_PORT_SM_STOP);
drivers/scsi/bfa/bfa_fcs_lport.c
6110
bfa_sm_set_state(vport, bfa_fcs_vport_sm_offline);
drivers/scsi/bfa/bfa_fcs_lport.c
6111
bfa_sm_send_event(vport->lps, BFA_LPS_SM_OFFLINE);
drivers/scsi/bfa/bfa_fcs_lport.c
6112
bfa_fcs_lport_offline(&vport->lport);
drivers/scsi/bfa/bfa_fcs_lport.c
6116
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6125
bfa_fcs_vport_sm_stopping(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6128
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6129
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6133
bfa_sm_set_state(vport, bfa_fcs_vport_sm_logo_for_stop);
drivers/scsi/bfa/bfa_fcs_lport.c
6134
bfa_fcs_vport_do_logo(vport);
drivers/scsi/bfa/bfa_fcs_lport.c
6138
bfa_sm_set_state(vport, bfa_fcs_vport_sm_cleanup);
drivers/scsi/bfa/bfa_fcs_lport.c
6142
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6151
bfa_fcs_vport_sm_deleting(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6154
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6155
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6162
bfa_sm_set_state(vport, bfa_fcs_vport_sm_logo);
drivers/scsi/bfa/bfa_fcs_lport.c
6163
bfa_fcs_vport_do_logo(vport);
drivers/scsi/bfa/bfa_fcs_lport.c
6167
bfa_sm_set_state(vport, bfa_fcs_vport_sm_cleanup);
drivers/scsi/bfa/bfa_fcs_lport.c
6171
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6182
bfa_fcs_vport_sm_error(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6185
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6186
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6190
bfa_sm_set_state(vport, bfa_fcs_vport_sm_cleanup);
drivers/scsi/bfa/bfa_fcs_lport.c
6191
bfa_fcs_lport_delete(&vport->lport);
drivers/scsi/bfa/bfa_fcs_lport.c
6195
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6204
bfa_fcs_vport_sm_cleanup(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6207
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6208
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6212
bfa_sm_set_state(vport, bfa_fcs_vport_sm_uninit);
drivers/scsi/bfa/bfa_fcs_lport.c
6213
bfa_fcs_vport_free(vport);
drivers/scsi/bfa/bfa_fcs_lport.c
6217
bfa_sm_set_state(vport, bfa_fcs_vport_sm_created);
drivers/scsi/bfa/bfa_fcs_lport.c
6224
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6233
bfa_fcs_vport_sm_logo_for_stop(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6236
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6237
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6241
bfa_sm_send_event(vport->lps, BFA_LPS_SM_OFFLINE);
drivers/scsi/bfa/bfa_fcs_lport.c
6246
bfa_sm_set_state(vport, bfa_fcs_vport_sm_created);
drivers/scsi/bfa/bfa_fcs_lport.c
6250
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6259
bfa_fcs_vport_sm_logo(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6262
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6263
bfa_trc(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6267
bfa_sm_send_event(vport->lps, BFA_LPS_SM_OFFLINE);
drivers/scsi/bfa/bfa_fcs_lport.c
6272
bfa_sm_set_state(vport, bfa_fcs_vport_sm_uninit);
drivers/scsi/bfa/bfa_fcs_lport.c
6273
bfa_fcs_vport_free(vport);
drivers/scsi/bfa/bfa_fcs_lport.c
6280
bfa_sm_fault(__vport_fcs(vport), event);
drivers/scsi/bfa/bfa_fcs_lport.c
6318
bfa_fcs_vport_do_fdisc(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6320
bfa_lps_fdisc(vport->lps, vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6321
bfa_fcport_get_maxfrsize(__vport_bfa(vport)),
drivers/scsi/bfa/bfa_fcs_lport.c
6322
__vport_pwwn(vport), __vport_nwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6323
vport->vport_stats.fdisc_sent++;
drivers/scsi/bfa/bfa_fcs_lport.c
6327
bfa_fcs_vport_fdisc_rejected(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6329
u8 lsrjt_rsn = vport->lps->lsrjt_rsn;
drivers/scsi/bfa/bfa_fcs_lport.c
6330
u8 lsrjt_expl = vport->lps->lsrjt_expl;
drivers/scsi/bfa/bfa_fcs_lport.c
6332
bfa_trc(__vport_fcs(vport), lsrjt_rsn);
drivers/scsi/bfa/bfa_fcs_lport.c
6333
bfa_trc(__vport_fcs(vport), lsrjt_expl);
drivers/scsi/bfa/bfa_fcs_lport.c
6336
switch (vport->lps->lsrjt_expl) {
drivers/scsi/bfa/bfa_fcs_lport.c
6339
if (vport->fdisc_retries < BFA_FCS_VPORT_MAX_RETRIES)
drivers/scsi/bfa/bfa_fcs_lport.c
6340
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_ERROR);
drivers/scsi/bfa/bfa_fcs_lport.c
6342
bfa_fcs_vport_aen_post(&vport->lport,
drivers/scsi/bfa/bfa_fcs_lport.c
6344
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_DUP_WWN);
drivers/scsi/bfa/bfa_fcs_lport.c
6353
if (vport->fdisc_retries < BFA_FCS_VPORT_MAX_RETRIES)
drivers/scsi/bfa/bfa_fcs_lport.c
6354
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_ERROR);
drivers/scsi/bfa/bfa_fcs_lport.c
6356
bfa_fcs_vport_aen_post(&vport->lport,
drivers/scsi/bfa/bfa_fcs_lport.c
6358
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_FABRIC_MAX);
drivers/scsi/bfa/bfa_fcs_lport.c
6363
if (vport->fdisc_retries == 0)
drivers/scsi/bfa/bfa_fcs_lport.c
6364
bfa_fcs_vport_aen_post(&vport->lport,
drivers/scsi/bfa/bfa_fcs_lport.c
6366
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_ERROR);
drivers/scsi/bfa/bfa_fcs_lport.c
6375
bfa_fcs_vport_do_logo(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6377
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6379
vport->vport_stats.logo_sent++;
drivers/scsi/bfa/bfa_fcs_lport.c
6380
bfa_lps_fdisclogo(vport->lps);
drivers/scsi/bfa/bfa_fcs_lport.c
6400
struct bfa_fcs_vport_s *vport = (struct bfa_fcs_vport_s *) vport_arg;
drivers/scsi/bfa/bfa_fcs_lport.c
6402
vport->vport_stats.fdisc_timeouts++;
drivers/scsi/bfa/bfa_fcs_lport.c
6403
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_TIMEOUT);
drivers/scsi/bfa/bfa_fcs_lport.c
6407
bfa_fcs_vport_free(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6410
(struct bfad_vport_s *)vport->vport_drv;
drivers/scsi/bfa/bfa_fcs_lport.c
6412
bfa_fcs_fabric_delvport(__vport_fabric(vport), vport);
drivers/scsi/bfa/bfa_fcs_lport.c
6413
bfa_lps_delete(vport->lps);
drivers/scsi/bfa/bfa_fcs_lport.c
6436
bfa_fcs_vport_online(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6438
vport->vport_stats.fab_online++;
drivers/scsi/bfa/bfa_fcs_lport.c
6439
if (bfa_fcs_fabric_npiv_capable(__vport_fabric(vport)))
drivers/scsi/bfa/bfa_fcs_lport.c
6440
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_ONLINE);
drivers/scsi/bfa/bfa_fcs_lport.c
6442
vport->vport_stats.fab_no_npiv++;
drivers/scsi/bfa/bfa_fcs_lport.c
6449
bfa_fcs_vport_offline(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6451
vport->vport_stats.fab_offline++;
drivers/scsi/bfa/bfa_fcs_lport.c
6452
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_OFFLINE);
drivers/scsi/bfa/bfa_fcs_lport.c
6459
bfa_fcs_vport_fcs_stop(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6461
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_STOP);
drivers/scsi/bfa/bfa_fcs_lport.c
6468
bfa_fcs_vport_fcs_delete(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6470
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_DELETE);
drivers/scsi/bfa/bfa_fcs_lport.c
6477
bfa_fcs_vport_stop_comp(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6479
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_STOPCOMP);
drivers/scsi/bfa/bfa_fcs_lport.c
6486
bfa_fcs_vport_delete_comp(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6488
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_DELCOMP);
drivers/scsi/bfa/bfa_fcs_lport.c
6515
bfa_fcs_vport_create(struct bfa_fcs_vport_s *vport, struct bfa_fcs_s *fcs,
drivers/scsi/bfa/bfa_fcs_lport.c
6532
vport->lps = bfa_lps_alloc(fcs->bfa);
drivers/scsi/bfa/bfa_fcs_lport.c
6533
if (!vport->lps)
drivers/scsi/bfa/bfa_fcs_lport.c
6536
vport->vport_drv = vport_drv;
drivers/scsi/bfa/bfa_fcs_lport.c
6539
bfa_sm_set_state(vport, bfa_fcs_vport_sm_uninit);
drivers/scsi/bfa/bfa_fcs_lport.c
6540
bfa_fcs_lport_attach(&vport->lport, fcs, vf_id, vport);
drivers/scsi/bfa/bfa_fcs_lport.c
6541
bfa_fcs_lport_init(&vport->lport, vport_cfg);
drivers/scsi/bfa/bfa_fcs_lport.c
6542
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_CREATE);
drivers/scsi/bfa/bfa_fcs_lport.c
6565
bfa_fcs_pbc_vport_create(struct bfa_fcs_vport_s *vport, struct bfa_fcs_s *fcs,
drivers/scsi/bfa/bfa_fcs_lport.c
6571
rc = bfa_fcs_vport_create(vport, fcs, vf_id, vport_cfg, vport_drv);
drivers/scsi/bfa/bfa_fcs_lport.c
6572
vport->lport.port_cfg.preboot_vp = BFA_TRUE;
drivers/scsi/bfa/bfa_fcs_lport.c
6585
bfa_fcs_vport_start(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6587
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_START);
drivers/scsi/bfa/bfa_fcs_lport.c
6602
bfa_fcs_vport_stop(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6604
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_STOP);
drivers/scsi/bfa/bfa_fcs_lport.c
6620
bfa_fcs_vport_delete(struct bfa_fcs_vport_s *vport)
drivers/scsi/bfa/bfa_fcs_lport.c
6623
if (vport->lport.port_cfg.preboot_vp)
drivers/scsi/bfa/bfa_fcs_lport.c
6626
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_DELETE);
drivers/scsi/bfa/bfa_fcs_lport.c
6640
bfa_fcs_vport_get_attr(struct bfa_fcs_vport_s *vport,
drivers/scsi/bfa/bfa_fcs_lport.c
6643
if (vport == NULL || attr == NULL)
drivers/scsi/bfa/bfa_fcs_lport.c
6648
bfa_fcs_lport_get_attr(&vport->lport, &attr->port_attr);
drivers/scsi/bfa/bfa_fcs_lport.c
6649
attr->vport_state = bfa_vport_sm_to_state(vport_sm_table, vport->sm);
drivers/scsi/bfa/bfa_fcs_lport.c
6659
struct bfa_fcs_vport_s *vport;
drivers/scsi/bfa/bfa_fcs_lport.c
6671
vport = bfa_fcs_fabric_vport_lookup(fabric, vpwwn);
drivers/scsi/bfa/bfa_fcs_lport.c
6672
return vport;
drivers/scsi/bfa/bfa_fcs_lport.c
6681
struct bfa_fcs_vport_s *vport = uarg;
drivers/scsi/bfa/bfa_fcs_lport.c
6683
bfa_trc(__vport_fcs(vport), __vport_pwwn(vport));
drivers/scsi/bfa/bfa_fcs_lport.c
6684
bfa_trc(__vport_fcs(vport), status);
drivers/scsi/bfa/bfa_fcs_lport.c
6691
__vport_fcid(vport) = vport->lps->lp_pid;
drivers/scsi/bfa/bfa_fcs_lport.c
6692
vport->vport_stats.fdisc_accepts++;
drivers/scsi/bfa/bfa_fcs_lport.c
6693
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_OK);
drivers/scsi/bfa/bfa_fcs_lport.c
6698
vport->vport_stats.fdisc_acc_bad++;
drivers/scsi/bfa/bfa_fcs_lport.c
6699
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_ERROR);
drivers/scsi/bfa/bfa_fcs_lport.c
6704
switch (vport->lps->ext_status) {
drivers/scsi/bfa/bfa_fcs_lport.c
6706
vport->vport_stats.fdisc_acc_bad++;
drivers/scsi/bfa/bfa_fcs_lport.c
6710
vport->vport_stats.fdisc_unknown_rsp++;
drivers/scsi/bfa/bfa_fcs_lport.c
6717
if (vport->fdisc_retries < BFA_FCS_VPORT_MAX_RETRIES)
drivers/scsi/bfa/bfa_fcs_lport.c
6718
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_ERROR);
drivers/scsi/bfa/bfa_fcs_lport.c
6720
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_FAILED);
drivers/scsi/bfa/bfa_fcs_lport.c
6725
vport->vport_stats.fdisc_timeouts++;
drivers/scsi/bfa/bfa_fcs_lport.c
6726
if (vport->fdisc_retries < BFA_FCS_VPORT_MAX_RETRIES)
drivers/scsi/bfa/bfa_fcs_lport.c
6727
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_ERROR);
drivers/scsi/bfa/bfa_fcs_lport.c
6729
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_FAILED);
drivers/scsi/bfa/bfa_fcs_lport.c
6733
vport->vport_stats.fdisc_rejects++;
drivers/scsi/bfa/bfa_fcs_lport.c
6734
bfa_fcs_vport_fdisc_rejected(vport);
drivers/scsi/bfa/bfa_fcs_lport.c
6738
vport->vport_stats.fdisc_rsp_err++;
drivers/scsi/bfa/bfa_fcs_lport.c
6739
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_ERROR);
drivers/scsi/bfa/bfa_fcs_lport.c
6749
struct bfa_fcs_vport_s *vport = uarg;
drivers/scsi/bfa/bfa_fcs_lport.c
6750
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_RSP_OK);
drivers/scsi/bfa/bfa_fcs_lport.c
6759
struct bfa_fcs_vport_s *vport = uarg;
drivers/scsi/bfa/bfa_fcs_lport.c
6762
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_OFFLINE);
drivers/scsi/bfa/bfa_fcs_lport.c
6763
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_ONLINE);
drivers/scsi/bfa/bfa_fcs_lport.c
745
if (port->vport)
drivers/scsi/bfa/bfa_fcs_lport.c
746
bfa_fcs_vport_delete_comp(port->vport);
drivers/scsi/bfa/bfad.c
1008
(&((vport->fcs_vport).lport.port_cfg.nwwn)));
drivers/scsi/bfa/bfad.c
1010
(&((vport->fcs_vport).lport.port_cfg.pwwn)));
drivers/scsi/bfa/bfad.c
1017
list_del(&vport->list_entry);
drivers/scsi/bfa/bfad.c
1018
kfree(vport);
drivers/scsi/bfa/bfad.c
496
struct bfad_vport_s *vport;
drivers/scsi/bfa/bfad.c
499
vport = kzalloc_obj(struct bfad_vport_s, GFP_ATOMIC);
drivers/scsi/bfa/bfad.c
500
if (!vport) {
drivers/scsi/bfa/bfad.c
505
vport->drv_port.bfad = bfad;
drivers/scsi/bfa/bfad.c
511
rc = bfa_fcs_pbc_vport_create(&vport->fcs_vport, &bfad->bfa_fcs, 0,
drivers/scsi/bfa/bfad.c
512
&port_cfg, vport);
drivers/scsi/bfa/bfad.c
519
list_add_tail(&vport->list_entry, &bfad->pbc_vport_list);
drivers/scsi/bfa/bfad.c
638
struct bfad_vport_s *vport;
drivers/scsi/bfa/bfad.c
643
vport = kzalloc_obj(struct bfad_vport_s);
drivers/scsi/bfa/bfad.c
644
if (!vport) {
drivers/scsi/bfa/bfad.c
649
vport->drv_port.bfad = bfad;
drivers/scsi/bfa/bfad.c
651
rc = bfa_fcs_vport_create(&vport->fcs_vport, &bfad->bfa_fcs, vf_id,
drivers/scsi/bfa/bfad.c
652
port_cfg, vport);
drivers/scsi/bfa/bfad.c
659
rc = bfad_im_scsi_host_alloc(bfad, vport->drv_port.im_port,
drivers/scsi/bfa/bfad.c
666
bfa_fcs_vport_start(&vport->fcs_vport);
drivers/scsi/bfa/bfad.c
667
list_add_tail(&vport->list_entry, &bfad->vport_list);
drivers/scsi/bfa/bfad.c
674
vport->comp_del = &fcomp;
drivers/scsi/bfa/bfad.c
675
init_completion(vport->comp_del);
drivers/scsi/bfa/bfad.c
676
bfa_fcs_vport_delete(&vport->fcs_vport);
drivers/scsi/bfa/bfad.c
678
wait_for_completion(vport->comp_del);
drivers/scsi/bfa/bfad.c
680
kfree(vport);
drivers/scsi/bfa/bfad.c
938
struct bfad_vport_s *vport, *vport_new;
drivers/scsi/bfa/bfad.c
997
list_for_each_entry_safe(vport, vport_new, &bfad->pbc_vport_list,
drivers/scsi/bfa/bfad_attr.c
384
struct bfad_vport_s *vport;
drivers/scsi/bfa/bfad_attr.c
403
vport = fcs_vport->vport_drv;
drivers/scsi/bfa/bfad_attr.c
404
vshost = vport->drv_port.im_port->shost;
drivers/scsi/bfa/bfad_attr.c
424
fc_vport->dd_data = vport;
drivers/scsi/bfa/bfad_attr.c
425
vport->drv_port.im_port->fc_vport = fc_vport;
drivers/scsi/bfa/bfad_attr.c
480
struct bfad_vport_s *vport = (struct bfad_vport_s *)fc_vport->dd_data;
drivers/scsi/bfa/bfad_attr.c
482
(struct bfad_im_port_s *) vport->drv_port.im_port;
drivers/scsi/bfa/bfad_attr.c
493
list_del(&vport->list_entry);
drivers/scsi/bfa/bfad_attr.c
494
kfree(vport);
drivers/scsi/bfa/bfad_attr.c
498
vshost = vport->drv_port.im_port->shost;
drivers/scsi/bfa/bfad_attr.c
508
vport->drv_port.flags |= BFAD_PORT_DELETE;
drivers/scsi/bfa/bfad_attr.c
510
vport->comp_del = &fcomp;
drivers/scsi/bfa/bfad_attr.c
511
init_completion(vport->comp_del);
drivers/scsi/bfa/bfad_attr.c
514
rc = bfa_fcs_vport_delete(&vport->fcs_vport);
drivers/scsi/bfa/bfad_attr.c
518
vport->drv_port.flags &= ~BFAD_PORT_DELETE;
drivers/scsi/bfa/bfad_attr.c
519
vport->comp_del = NULL;
drivers/scsi/bfa/bfad_attr.c
523
wait_for_completion(vport->comp_del);
drivers/scsi/bfa/bfad_attr.c
526
list_del(&vport->list_entry);
drivers/scsi/bfa/bfad_attr.c
527
kfree(vport);
drivers/scsi/bfa/bfad_attr.c
535
struct bfad_vport_s *vport;
drivers/scsi/bfa/bfad_attr.c
542
vport = (struct bfad_vport_s *)fc_vport->dd_data;
drivers/scsi/bfa/bfad_attr.c
543
bfad = vport->drv_port.bfad;
drivers/scsi/bfa/bfad_attr.c
544
vshost = vport->drv_port.im_port->shost;
drivers/scsi/bfa/bfad_attr.c
568
struct bfad_vport_s *vport = (struct bfad_vport_s *)fc_vport->dd_data;
drivers/scsi/bfa/bfad_attr.c
570
(struct bfad_im_port_s *)vport->drv_port.im_port;
drivers/scsi/bfa/bfad_attr.c
572
struct Scsi_Host *vshost = vport->drv_port.im_port->shost;
drivers/scsi/bfa/bfad_bsg.c
2574
struct bfad_vport_s *vport = NULL;
drivers/scsi/bfa/bfad_bsg.c
2580
list_for_each_entry(vport, &bfad->vport_list, list_entry)
drivers/scsi/bfa/bfad_bsg.c
2581
bfad_reset_sdev_bflags(vport->drv_port.im_port, lunmask_cfg);
drivers/scsi/bfa/bfi.h
530
struct bfi_pbc_vport_s vport[BFI_PBC_MAX_VPORTS];
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1120
static int bnx2fc_vport_create(struct fc_vport *vport, bool disabled)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1122
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1131
rc = fcoe_validate_vport_create(vport);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1133
fcoe_wwn_to_str(vport->port_name, buf, sizeof(buf));
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1147
vn_port = bnx2fc_if_create(interface, &vport->dev, 1);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1161
fc_vport_set_state(vport, FC_VPORT_DISABLED);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1185
static int bnx2fc_vport_destroy(struct fc_vport *vport)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1187
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1189
struct fc_lport *vn_port = vport->dd_data;
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1197
if (v_port->vport == vport) {
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1215
static int bnx2fc_vport_disable(struct fc_vport *vport, bool disable)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1217
struct fc_lport *lport = vport->dd_data;
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1220
fc_vport_set_state(vport, FC_VPORT_DISABLED);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1492
struct fc_vport *vport = dev_to_vport(parent);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1508
lport = libfc_vport_create(vport, sizeof(*port));
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1527
vport->node_name, vport->port_name);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1528
fc_set_wwnn(lport, vport->node_name);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1529
fc_set_wwpn(lport, vport->port_name);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1560
shost = vport_to_shost(vport);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1863
struct fc_lport *vport;
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1872
list_for_each_entry(vport, &lport->vports, list)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1873
fc_host_port_type(vport->host) =
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
741
if (lport->vport)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
752
if (!lport->vport)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
823
if (!lport->vport) {
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
867
struct fc_lport *vport;
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
953
list_for_each_entry(vport, &lport->vports, list)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
954
fc_host_port_type(vport->host) =
drivers/scsi/elx/efct/efct_lio.c
1035
struct efct_lio_vport_list_t *vport, *next;
drivers/scsi/elx/efct/efct_lio.c
1042
list_for_each_entry_safe(vport, next, &efct->tgt_efct.vport_list,
drivers/scsi/elx/efct/efct_lio.c
1044
lio_vport = vport->lio_vport;
drivers/scsi/elx/efct/efct_lio.c
153
struct efct_lio_vport *lio_vport = tpg->vport;
drivers/scsi/elx/efct/efct_lio.c
225
return tpg->vport->wwpn_str;
drivers/scsi/elx/efct/efct_lio.c
862
struct efct_lio_vport_list_t *vport, *next_vport;
drivers/scsi/elx/efct/efct_lio.c
871
list_for_each_entry_safe(vport, next_vport, &efct->tgt_efct.vport_list,
drivers/scsi/elx/efct/efct_lio.c
873
if (vport->lio_vport == lio_vport) {
drivers/scsi/elx/efct/efct_lio.c
874
list_del(&vport->list_entry);
drivers/scsi/elx/efct/efct_lio.c
875
kfree(vport->lio_vport);
drivers/scsi/elx/efct/efct_lio.c
876
kfree(vport);
drivers/scsi/elx/efct/efct_lio.c
965
tpg->vport = lio_vport;
drivers/scsi/elx/efct/efct_lio.c
993
efc_log_debug(tpg->vport->efct, "drop npiv portal group %d\n",
drivers/scsi/elx/efct/efct_lio.h
168
struct efct_lio_vport *vport;
drivers/scsi/elx/efct/efct_xport.c
1000
struct efct_vport *vport = *(struct efct_vport **)fc_vport->dd_data;
drivers/scsi/elx/efct/efct_xport.c
1001
struct Scsi_Host *shost = vport ? vport->shost : NULL;
drivers/scsi/elx/efct/efct_xport.c
1002
struct efct *efct = vport ? vport->efct : NULL;
drivers/scsi/elx/efct/efct_xport.c
379
struct efct_vport *vport = NULL;
drivers/scsi/elx/efct/efct_xport.c
381
shost = scsi_host_alloc(&efct_template, sizeof(*vport));
drivers/scsi/elx/efct/efct_xport.c
391
vport = (struct efct_vport *)shost->hostdata;
drivers/scsi/elx/efct/efct_xport.c
392
vport->efct = efct;
drivers/scsi/elx/efct/efct_xport.c
680
struct efct_vport *vport = (struct efct_vport *)shost->hostdata;
drivers/scsi/elx/efct/efct_xport.c
681
struct efct *efct = vport->efct;
drivers/scsi/elx/efct/efct_xport.c
694
struct efct_vport *vport = (struct efct_vport *)shost->hostdata;
drivers/scsi/elx/efct/efct_xport.c
695
struct efct *efct = vport->efct;
drivers/scsi/elx/efct/efct_xport.c
727
struct efct_vport *vport = (struct efct_vport *)shost->hostdata;
drivers/scsi/elx/efct/efct_xport.c
728
struct efct *efct = vport->efct;
drivers/scsi/elx/efct/efct_xport.c
742
struct efct_vport *vport = (struct efct_vport *)shost->hostdata;
drivers/scsi/elx/efct/efct_xport.c
743
struct efct *efct = vport->efct;
drivers/scsi/elx/efct/efct_xport.c
793
struct efct_vport *vport = (struct efct_vport *)shost->hostdata;
drivers/scsi/elx/efct/efct_xport.c
794
struct efct *efct = vport->efct;
drivers/scsi/elx/efct/efct_xport.c
809
struct efct_vport *vport = (struct efct_vport *)shost->hostdata;
drivers/scsi/elx/efct/efct_xport.c
810
struct efct *efct = vport->efct;
drivers/scsi/elx/efct/efct_xport.c
821
vport->fc_host_stats.loss_of_sync_count =
drivers/scsi/elx/efct/efct_xport.c
823
vport->fc_host_stats.link_failure_count =
drivers/scsi/elx/efct/efct_xport.c
825
vport->fc_host_stats.prim_seq_protocol_err_count =
drivers/scsi/elx/efct/efct_xport.c
827
vport->fc_host_stats.invalid_tx_word_count =
drivers/scsi/elx/efct/efct_xport.c
829
vport->fc_host_stats.invalid_crc_count =
drivers/scsi/elx/efct/efct_xport.c
832
vport->fc_host_stats.tx_words =
drivers/scsi/elx/efct/efct_xport.c
835
vport->fc_host_stats.rx_words =
drivers/scsi/elx/efct/efct_xport.c
837
vport->fc_host_stats.tx_frames =
drivers/scsi/elx/efct/efct_xport.c
839
vport->fc_host_stats.rx_frames =
drivers/scsi/elx/efct/efct_xport.c
842
vport->fc_host_stats.fcp_input_requests =
drivers/scsi/elx/efct/efct_xport.c
844
vport->fc_host_stats.fcp_output_requests =
drivers/scsi/elx/efct/efct_xport.c
846
vport->fc_host_stats.fcp_output_megabytes =
drivers/scsi/elx/efct/efct_xport.c
848
vport->fc_host_stats.fcp_input_megabytes =
drivers/scsi/elx/efct/efct_xport.c
850
vport->fc_host_stats.fcp_control_requests =
drivers/scsi/elx/efct/efct_xport.c
853
return &vport->fc_host_stats;
drivers/scsi/elx/efct/efct_xport.c
859
struct efct_vport *vport = (struct efct_vport *)shost->hostdata;
drivers/scsi/elx/efct/efct_xport.c
860
struct efct *efct = vport->efct;
drivers/scsi/elx/efct/efct_xport.c
873
struct efct_vport *vport =
drivers/scsi/elx/efct/efct_xport.c
875
struct efct *efct = vport ? vport->efct : NULL;
drivers/scsi/elx/efct/efct_xport.c
877
if (!shost || !vport || !efct) {
drivers/scsi/elx/efct/efct_xport.c
879
shost, vport, efct);
drivers/scsi/elx/efct/efct_xport.c
903
struct efct_vport *vport = NULL;
drivers/scsi/elx/efct/efct_xport.c
905
shost = scsi_host_alloc(&efct_template, sizeof(*vport));
drivers/scsi/elx/efct/efct_xport.c
912
vport = (struct efct_vport *)shost->hostdata;
drivers/scsi/elx/efct/efct_xport.c
913
vport->efct = efct;
drivers/scsi/elx/efct/efct_xport.c
914
vport->is_vport = true;
drivers/scsi/elx/efct/efct_xport.c
946
vport->shost = shost;
drivers/scsi/elx/efct/efct_xport.c
948
return vport;
drivers/scsi/elx/efct/efct_xport.c
973
struct efct_vport *vport = NULL;
drivers/scsi/elx/efct/efct_xport.c
978
vport = efct_scsi_new_vport(efct, &fc_vport->dev);
drivers/scsi/elx/efct/efct_xport.c
979
if (!vport) {
drivers/scsi/elx/efct/efct_xport.c
984
vport->fc_vport = fc_vport;
drivers/scsi/elx/efct/efct_xport.c
985
vport->npiv_wwpn = fc_vport->port_name;
drivers/scsi/elx/efct/efct_xport.c
986
vport->npiv_wwnn = fc_vport->node_name;
drivers/scsi/elx/efct/efct_xport.c
987
fc_host_node_name(vport->shost) = vport->npiv_wwnn;
drivers/scsi/elx/efct/efct_xport.c
988
fc_host_port_name(vport->shost) = vport->npiv_wwpn;
drivers/scsi/elx/efct/efct_xport.c
989
*(struct efct_vport **)fc_vport->dd_data = vport;
drivers/scsi/elx/libefc/efc_nport.c
258
struct efc_vport *vport;
drivers/scsi/elx/libefc/efc_nport.c
261
list_for_each_entry(vport, &efc->vport_list, list_entry) {
drivers/scsi/elx/libefc/efc_nport.c
262
if (vport->nport == nport) {
drivers/scsi/elx/libefc/efc_nport.c
264
vport->nport = NULL;
drivers/scsi/elx/libefc/efc_nport.c
476
struct efc_vport *vport;
drivers/scsi/elx/libefc/efc_nport.c
480
list_for_each_entry(vport, &efc->vport_list, list_entry) {
drivers/scsi/elx/libefc/efc_nport.c
481
if (vport->nport == nport) {
drivers/scsi/elx/libefc/efc_nport.c
482
vport->wwnn = nport->wwnn;
drivers/scsi/elx/libefc/efc_nport.c
483
vport->wwpn = nport->wwpn;
drivers/scsi/elx/libefc/efc_nport.c
484
vport->tgt_data = nport->tgt_data;
drivers/scsi/elx/libefc/efc_nport.c
485
vport->ini_data = nport->ini_data;
drivers/scsi/elx/libefc/efc_nport.c
598
efc_vport_nport_alloc(struct efc_domain *domain, struct efc_vport *vport)
drivers/scsi/elx/libefc/efc_nport.c
604
nport = efc_nport_alloc(domain, vport->wwpn, vport->wwnn, vport->fc_id,
drivers/scsi/elx/libefc/efc_nport.c
605
vport->enable_ini, vport->enable_tgt);
drivers/scsi/elx/libefc/efc_nport.c
606
vport->nport = nport;
drivers/scsi/elx/libefc/efc_nport.c
612
nport->tgt_data = vport->tgt_data;
drivers/scsi/elx/libefc/efc_nport.c
613
nport->ini_data = vport->ini_data;
drivers/scsi/elx/libefc/efc_nport.c
624
struct efc_vport *vport;
drivers/scsi/elx/libefc/efc_nport.c
631
list_for_each_entry_safe(vport, next, &efc->vport_list, list_entry) {
drivers/scsi/elx/libefc/efc_nport.c
632
if (!vport->nport) {
drivers/scsi/elx/libefc/efc_nport.c
633
if (efc_vport_nport_alloc(domain, vport))
drivers/scsi/elx/libefc/efc_nport.c
648
struct efc_vport *vport;
drivers/scsi/elx/libefc/efc_nport.c
666
vport = efc_vport_create_spec(domain->efc, wwnn, wwpn, fc_id, ini, tgt,
drivers/scsi/elx/libefc/efc_nport.c
668
if (!vport) {
drivers/scsi/elx/libefc/efc_nport.c
674
rc = efc_vport_nport_alloc(domain, vport);
drivers/scsi/elx/libefc/efc_nport.c
685
struct efc_vport *vport;
drivers/scsi/elx/libefc/efc_nport.c
691
list_for_each_entry_safe(vport, next, &efc->vport_list, list_entry) {
drivers/scsi/elx/libefc/efc_nport.c
692
if (vport->wwpn == wwpn && vport->wwnn == wwnn) {
drivers/scsi/elx/libefc/efc_nport.c
693
list_del(&vport->list_entry);
drivers/scsi/elx/libefc/efc_nport.c
694
kfree(vport);
drivers/scsi/elx/libefc/efc_nport.c
722
struct efc_vport *vport;
drivers/scsi/elx/libefc/efc_nport.c
727
list_for_each_entry_safe(vport, next, &efc->vport_list, list_entry) {
drivers/scsi/elx/libefc/efc_nport.c
728
list_del(&vport->list_entry);
drivers/scsi/elx/libefc/efc_nport.c
729
kfree(vport);
drivers/scsi/elx/libefc/efc_nport.c
739
struct efc_vport *vport;
drivers/scsi/elx/libefc/efc_nport.c
748
list_for_each_entry(vport, &efc->vport_list, list_entry) {
drivers/scsi/elx/libefc/efc_nport.c
749
if ((wwpn && vport->wwpn == wwpn) &&
drivers/scsi/elx/libefc/efc_nport.c
750
(wwnn && vport->wwnn == wwnn)) {
drivers/scsi/elx/libefc/efc_nport.c
759
vport = kzalloc_obj(*vport, GFP_ATOMIC);
drivers/scsi/elx/libefc/efc_nport.c
760
if (!vport) {
drivers/scsi/elx/libefc/efc_nport.c
765
vport->wwnn = wwnn;
drivers/scsi/elx/libefc/efc_nport.c
766
vport->wwpn = wwpn;
drivers/scsi/elx/libefc/efc_nport.c
767
vport->fc_id = fc_id;
drivers/scsi/elx/libefc/efc_nport.c
768
vport->enable_tgt = enable_tgt;
drivers/scsi/elx/libefc/efc_nport.c
769
vport->enable_ini = enable_ini;
drivers/scsi/elx/libefc/efc_nport.c
770
vport->tgt_data = tgt_data;
drivers/scsi/elx/libefc/efc_nport.c
771
vport->ini_data = ini_data;
drivers/scsi/elx/libefc/efc_nport.c
773
INIT_LIST_HEAD(&vport->list_entry);
drivers/scsi/elx/libefc/efc_nport.c
774
list_add_tail(&vport->list_entry, &efc->vport_list);
drivers/scsi/elx/libefc/efc_nport.c
776
return vport;
drivers/scsi/fcoe/fcoe.c
1026
if (lport->vport)
drivers/scsi/fcoe/fcoe.c
1051
if (lport->vport)
drivers/scsi/fcoe/fcoe.c
1138
struct fc_vport *vport = dev_to_vport(parent);
drivers/scsi/fcoe/fcoe.c
1145
lport = libfc_vport_create(vport, sizeof(*port));
drivers/scsi/fcoe/fcoe.c
1177
vport->node_name, vport->port_name);
drivers/scsi/fcoe/fcoe.c
1178
fc_set_wwnn(lport, vport->node_name);
drivers/scsi/fcoe/fcoe.c
1179
fc_set_wwpn(lport, vport->port_name);
drivers/scsi/fcoe/fcoe.c
1222
shost = vport_to_shost(vport);
drivers/scsi/fcoe/fcoe.c
2625
static int fcoe_vport_create(struct fc_vport *vport, bool disabled)
drivers/scsi/fcoe/fcoe.c
2627
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/fcoe/fcoe.c
2636
rc = fcoe_validate_vport_create(vport);
drivers/scsi/fcoe/fcoe.c
2638
fcoe_wwn_to_str(vport->port_name, buf, sizeof(buf));
drivers/scsi/fcoe/fcoe.c
2647
vn_port = fcoe_if_create(fcoe, &vport->dev, 1);
drivers/scsi/fcoe/fcoe.c
2658
fc_vport_set_state(vport, FC_VPORT_DISABLED);
drivers/scsi/fcoe/fcoe.c
2673
static int fcoe_vport_destroy(struct fc_vport *vport)
drivers/scsi/fcoe/fcoe.c
2675
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/fcoe/fcoe.c
2677
struct fc_lport *vn_port = vport->dd_data;
drivers/scsi/fcoe/fcoe.c
2701
struct fc_vport *vport;
drivers/scsi/fcoe/fcoe.c
2709
list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) {
drivers/scsi/fcoe/fcoe.c
2710
if (vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING)) {
drivers/scsi/fcoe/fcoe.c
2713
vport->flags |= FC_VPORT_DELETING;
drivers/scsi/fcoe/fcoe.c
2715
&vport->vport_delete_work);
drivers/scsi/fcoe/fcoe.c
2728
static int fcoe_vport_disable(struct fc_vport *vport, bool disable)
drivers/scsi/fcoe/fcoe.c
2730
struct fc_lport *lport = vport->dd_data;
drivers/scsi/fcoe/fcoe.c
2733
fc_vport_set_state(vport, FC_VPORT_DISABLED);
drivers/scsi/fcoe/fcoe.c
2752
static void fcoe_set_vport_symbolic_name(struct fc_vport *vport)
drivers/scsi/fcoe/fcoe.c
2754
struct fc_lport *lport = vport->dd_data;
drivers/scsi/fcoe/fcoe.c
2760
fcoe_netdev(lport)->name, vport->symbolic_name);
drivers/scsi/fcoe/fcoe.c
745
if (!lport->vport) {
drivers/scsi/fcoe/fcoe.c
777
if (lport->vport)
drivers/scsi/fcoe/fcoe.c
790
if (!lport->vport)
drivers/scsi/fcoe/fcoe.c
821
if (lport->vport)
drivers/scsi/fcoe/fcoe_ctlr.c
1790
struct fc_lport *vport;
drivers/scsi/fcoe/fcoe_ctlr.c
1858
list_for_each_entry(vport, &fip->lp->vports, list) {
drivers/scsi/fcoe/fcoe_ctlr.c
1859
mac = fip->get_src_addr(vport);
drivers/scsi/fcoe/fcoe_ctlr.c
1860
fcoe_ctlr_send_keep_alive(fip, vport, 1, mac);
drivers/scsi/fcoe/fcoe_transport.c
251
int fcoe_validate_vport_create(struct fc_vport *vport)
drivers/scsi/fcoe/fcoe_transport.c
253
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/fcoe/fcoe_transport.c
261
fcoe_wwn_to_str(vport->port_name, buf, sizeof(buf));
drivers/scsi/fcoe/fcoe_transport.c
263
if (!memcmp(&n_port->wwpn, &vport->port_name, sizeof(u64))) {
drivers/scsi/fcoe/fcoe_transport.c
272
if (!memcmp(&vn_port->wwpn, &vport->port_name, sizeof(u64))) {
drivers/scsi/libfc/fc_lport.c
1037
if (lport->vport) {
drivers/scsi/libfc/fc_lport.c
1039
fc_vport_set_state(lport->vport, FC_VPORT_INITIALIZING);
drivers/scsi/libfc/fc_lport.c
1041
fc_vport_set_state(lport->vport, FC_VPORT_LINKDOWN);
drivers/scsi/libfc/fc_lport.c
1863
lport->vport ? ELS_FDISC : ELS_FLOGI,
drivers/scsi/libfc/fc_lport.c
1865
lport->vport ? 2 * lport->r_a_tov :
drivers/scsi/libfc/fc_lport.c
726
if (lport->vport)
drivers/scsi/libfc/fc_lport.c
727
fc_vport_set_state(lport->vport, FC_VPORT_ACTIVE);
drivers/scsi/libfc/fc_npiv.c
101
fc_vport_set_state(vport, FC_VPORT_INITIALIZING);
drivers/scsi/libfc/fc_npiv.c
104
fc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP);
drivers/scsi/libfc/fc_npiv.c
108
fc_vport_set_state(vport, FC_VPORT_LINKDOWN);
drivers/scsi/libfc/fc_npiv.c
119
struct fc_vport *vport = vn_port->vport;
drivers/scsi/libfc/fc_npiv.c
120
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/libfc/fc_npiv.c
21
struct fc_lport *libfc_vport_create(struct fc_vport *vport, int privsize)
drivers/scsi/libfc/fc_npiv.c
23
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/libfc/fc_npiv.c
31
vn_port->vport = vport;
drivers/scsi/libfc/fc_npiv.c
32
vport->dd_data = vn_port;
drivers/scsi/libfc/fc_npiv.c
94
struct fc_vport *vport = vn_port->vport;
drivers/scsi/lpfc/lpfc.h
1576
lpfc_shost_from_vport(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc.h
1578
return container_of((void *) vport, struct Scsi_Host, hostdata[0]);
drivers/scsi/lpfc/lpfc.h
345
#define lpfc_vmid_is_type_priority_tag(vport)\
drivers/scsi/lpfc/lpfc.h
346
(vport->vmid_priority_tagging ? 1 : 0)
drivers/scsi/lpfc/lpfc.h
930
(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc.h
934
(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc.h
981
struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_attr.c
1013
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1014
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1032
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1033
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1051
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1052
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1070
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1071
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1089
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1090
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1123
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1124
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1145
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1146
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1173
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1174
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1196
switch (vport->port_state) {
drivers/scsi/lpfc/lpfc_attr.c
122
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1227
if (test_bit(FC_PUBLIC_LOOP, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_attr.c
123
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1234
if (test_bit(FC_FABRIC, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_attr.c
1236
vport->port_type == LPFC_PHYSICAL_PORT &&
drivers/scsi/lpfc/lpfc_attr.c
1305
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1306
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1334
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1335
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1358
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1359
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1393
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1396
atomic_read(&vport->fc_map_cnt) +
drivers/scsi/lpfc/lpfc_attr.c
1397
atomic_read(&vport->fc_unmap_cnt));
drivers/scsi/lpfc/lpfc_attr.c
1417
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1418
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1426
if (test_bit(FC_OFFLINE_MODE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_attr.c
1440
if (test_bit(FC_PT2PT, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_attr.c
1441
clear_bit(FC_PT2PT_NO_NVME, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_attr.c
1734
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1735
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
1956
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
1957
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2029
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2030
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2145
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2146
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2179
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2180
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2191
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
2241
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
2420
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2421
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2448
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2449
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2485
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2486
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2513
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2514
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2550
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2551
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2578
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2579
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2614
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2615
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2619
if (vport->port_type == LPFC_PHYSICAL_PORT)
drivers/scsi/lpfc/lpfc_attr.c
2621
return scnprintf(buf, PAGE_SIZE, "NPIV Virtual (VPI %d)\n", vport->vpi);
drivers/scsi/lpfc/lpfc_attr.c
2640
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2641
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2665
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2666
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2683
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
2749
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2750
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
2807
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
drivers/scsi/lpfc/lpfc_attr.c
2808
struct lpfc_hba *phba = vport->phba;\
drivers/scsi/lpfc/lpfc_attr.c
2833
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
drivers/scsi/lpfc/lpfc_attr.c
2834
struct lpfc_hba *phba = vport->phba;\
drivers/scsi/lpfc/lpfc_attr.c
2939
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
drivers/scsi/lpfc/lpfc_attr.c
2940
struct lpfc_hba *phba = vport->phba;\
drivers/scsi/lpfc/lpfc_attr.c
2972
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
drivers/scsi/lpfc/lpfc_attr.c
2973
return scnprintf(buf, PAGE_SIZE, "%d\n", vport->cfg_##attr);\
drivers/scsi/lpfc/lpfc_attr.c
299
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
2997
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
drivers/scsi/lpfc/lpfc_attr.c
2998
return scnprintf(buf, PAGE_SIZE, "%#x\n", vport->cfg_##attr);\
drivers/scsi/lpfc/lpfc_attr.c
300
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
3021
lpfc_##attr##_init(struct lpfc_vport *vport, uint val) \
drivers/scsi/lpfc/lpfc_attr.c
3024
vport->cfg_##attr = val;\
drivers/scsi/lpfc/lpfc_attr.c
3027
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, \
drivers/scsi/lpfc/lpfc_attr.c
3030
vport->cfg_##attr = default;\
drivers/scsi/lpfc/lpfc_attr.c
3053
lpfc_##attr##_set(struct lpfc_vport *vport, uint val) \
drivers/scsi/lpfc/lpfc_attr.c
3056
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, \
drivers/scsi/lpfc/lpfc_attr.c
3059
vport->cfg_##attr, vport->cfg_##attr, \
drivers/scsi/lpfc/lpfc_attr.c
3061
vport->cfg_##attr = val;\
drivers/scsi/lpfc/lpfc_attr.c
3064
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, \
drivers/scsi/lpfc/lpfc_attr.c
3093
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
drivers/scsi/lpfc/lpfc_attr.c
3099
if (lpfc_##attr##_set(vport, val) == 0) \
drivers/scsi/lpfc/lpfc_attr.c
324
if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO) {
drivers/scsi/lpfc/lpfc_attr.c
327
vr = vport->vmid_priority.vmid_range;
drivers/scsi/lpfc/lpfc_attr.c
328
for (i = 0; i < vport->vmid_priority.num_descriptors; ++i) {
drivers/scsi/lpfc/lpfc_attr.c
337
vmp = &vport->vmid[i];
drivers/scsi/lpfc/lpfc_attr.c
346
if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO) {
drivers/scsi/lpfc/lpfc_attr.c
351
vport->lpfc_vmid_host_uuid[0],
drivers/scsi/lpfc/lpfc_attr.c
352
vport->lpfc_vmid_host_uuid[1],
drivers/scsi/lpfc/lpfc_attr.c
353
vport->lpfc_vmid_host_uuid[2],
drivers/scsi/lpfc/lpfc_attr.c
354
vport->lpfc_vmid_host_uuid[3],
drivers/scsi/lpfc/lpfc_attr.c
355
vport->lpfc_vmid_host_uuid[4],
drivers/scsi/lpfc/lpfc_attr.c
356
vport->lpfc_vmid_host_uuid[5],
drivers/scsi/lpfc/lpfc_attr.c
357
vport->lpfc_vmid_host_uuid[6],
drivers/scsi/lpfc/lpfc_attr.c
358
vport->lpfc_vmid_host_uuid[7],
drivers/scsi/lpfc/lpfc_attr.c
359
vport->lpfc_vmid_host_uuid[8],
drivers/scsi/lpfc/lpfc_attr.c
360
vport->lpfc_vmid_host_uuid[9],
drivers/scsi/lpfc/lpfc_attr.c
361
vport->lpfc_vmid_host_uuid[10],
drivers/scsi/lpfc/lpfc_attr.c
362
vport->lpfc_vmid_host_uuid[11],
drivers/scsi/lpfc/lpfc_attr.c
363
vport->lpfc_vmid_host_uuid[12],
drivers/scsi/lpfc/lpfc_attr.c
364
vport->lpfc_vmid_host_uuid[13],
drivers/scsi/lpfc/lpfc_attr.c
365
vport->lpfc_vmid_host_uuid[14],
drivers/scsi/lpfc/lpfc_attr.c
366
vport->lpfc_vmid_host_uuid[15]);
drivers/scsi/lpfc/lpfc_attr.c
383
if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO)
drivers/scsi/lpfc/lpfc_attr.c
3856
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
3858
return scnprintf(buf, PAGE_SIZE, "%d\n", vport->cfg_devloss_tmo);
drivers/scsi/lpfc/lpfc_attr.c
3877
lpfc_nodev_tmo_init(struct lpfc_vport *vport, int val)
drivers/scsi/lpfc/lpfc_attr.c
3879
if (vport->cfg_devloss_tmo != LPFC_DEF_DEVLOSS_TMO) {
drivers/scsi/lpfc/lpfc_attr.c
3880
vport->cfg_nodev_tmo = vport->cfg_devloss_tmo;
drivers/scsi/lpfc/lpfc_attr.c
3882
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
3890
vport->cfg_nodev_tmo = val;
drivers/scsi/lpfc/lpfc_attr.c
3891
vport->cfg_devloss_tmo = val;
drivers/scsi/lpfc/lpfc_attr.c
3894
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
3898
vport->cfg_nodev_tmo = LPFC_DEF_DEVLOSS_TMO;
drivers/scsi/lpfc/lpfc_attr.c
3910
lpfc_update_rport_devloss_tmo(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_attr.c
3919
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
3920
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_attr.c
3922
ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo;
drivers/scsi/lpfc/lpfc_attr.c
3931
vport->cfg_devloss_tmo);
drivers/scsi/lpfc/lpfc_attr.c
3934
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
3953
lpfc_nodev_tmo_set(struct lpfc_vport *vport, int val)
drivers/scsi/lpfc/lpfc_attr.c
3955
if (vport->dev_loss_tmo_changed ||
drivers/scsi/lpfc/lpfc_attr.c
3957
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
3963
vport->cfg_nodev_tmo = val;
drivers/scsi/lpfc/lpfc_attr.c
3964
vport->cfg_devloss_tmo = val;
drivers/scsi/lpfc/lpfc_attr.c
3969
fc_host_dev_loss_tmo(lpfc_shost_from_vport(vport)) = val;
drivers/scsi/lpfc/lpfc_attr.c
3970
lpfc_update_rport_devloss_tmo(vport);
drivers/scsi/lpfc/lpfc_attr.c
3973
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
4012
lpfc_devloss_tmo_set(struct lpfc_vport *vport, int val)
drivers/scsi/lpfc/lpfc_attr.c
4015
vport->cfg_nodev_tmo = val;
drivers/scsi/lpfc/lpfc_attr.c
4016
vport->cfg_devloss_tmo = val;
drivers/scsi/lpfc/lpfc_attr.c
4017
vport->dev_loss_tmo_changed = 1;
drivers/scsi/lpfc/lpfc_attr.c
4018
fc_host_dev_loss_tmo(lpfc_shost_from_vport(vport)) = val;
drivers/scsi/lpfc/lpfc_attr.c
4019
lpfc_update_rport_devloss_tmo(vport);
drivers/scsi/lpfc/lpfc_attr.c
4023
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
4118
lpfc_tgt_queue_depth_set(struct lpfc_vport *vport, uint val)
drivers/scsi/lpfc/lpfc_attr.c
4126
if (val == vport->cfg_tgt_queue_depth)
drivers/scsi/lpfc/lpfc_attr.c
4129
vport->cfg_tgt_queue_depth = val;
drivers/scsi/lpfc/lpfc_attr.c
4132
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
4133
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp)
drivers/scsi/lpfc/lpfc_attr.c
4134
ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth;
drivers/scsi/lpfc/lpfc_attr.c
4135
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
4198
lpfc_restrict_login_init(struct lpfc_vport *vport, int val)
drivers/scsi/lpfc/lpfc_attr.c
4201
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
4205
vport->cfg_restrict_login = 1;
drivers/scsi/lpfc/lpfc_attr.c
4208
if (vport->port_type == LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_attr.c
4209
vport->cfg_restrict_login = 0;
drivers/scsi/lpfc/lpfc_attr.c
4212
vport->cfg_restrict_login = val;
drivers/scsi/lpfc/lpfc_attr.c
4233
lpfc_restrict_login_set(struct lpfc_vport *vport, int val)
drivers/scsi/lpfc/lpfc_attr.c
4236
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
4240
vport->cfg_restrict_login = 1;
drivers/scsi/lpfc/lpfc_attr.c
4243
if (vport->port_type == LPFC_PHYSICAL_PORT && val != 0) {
drivers/scsi/lpfc/lpfc_attr.c
4244
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
4247
vport->cfg_restrict_login = 0;
drivers/scsi/lpfc/lpfc_attr.c
4250
vport->cfg_restrict_login = val;
drivers/scsi/lpfc/lpfc_attr.c
4313
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
4314
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
4336
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
4355
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
4363
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
4401
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
4402
if (vport->vport_flag & STATIC_VPORT)
drivers/scsi/lpfc/lpfc_attr.c
4444
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
4445
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
4467
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_attr.c
454
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
455
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
4661
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
4662
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
468
struct lpfc_vport *vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_attr.c
469
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
4727
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
4728
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
4804
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
4805
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
485
if (!(vport->cfg_enable_fc4_type & LPFC_ENABLE_NVME)) {
drivers/scsi/lpfc/lpfc_attr.c
4876
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
4879
i = lpfc_issue_els_rscn(vport, 0);
drivers/scsi/lpfc/lpfc_attr.c
493
wwn_to_u64(vport->fc_portname.u.wwn));
drivers/scsi/lpfc/lpfc_attr.c
4934
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
4935
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
5053
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
5054
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
511
wwn_to_u64(vport->fc_portname.u.wwn),
drivers/scsi/lpfc/lpfc_attr.c
512
wwn_to_u64(vport->fc_nodename.u.wwn),
drivers/scsi/lpfc/lpfc_attr.c
5160
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
5161
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
5382
lpfc_max_scsicmpl_time_set(struct lpfc_vport *vport, int val)
drivers/scsi/lpfc/lpfc_attr.c
5387
if (val == vport->cfg_max_scsicmpl_time)
drivers/scsi/lpfc/lpfc_attr.c
5391
vport->cfg_max_scsicmpl_time = val;
drivers/scsi/lpfc/lpfc_attr.c
5393
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
5394
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_attr.c
5397
ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth;
drivers/scsi/lpfc/lpfc_attr.c
5399
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
5807
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
5808
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
5936
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
5937
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
6331
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6332
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
6350
if (!test_bit(FC_OFFLINE_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_attr.c
6391
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6392
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
643
localport = vport->localport;
drivers/scsi/lpfc/lpfc_attr.c
647
wwn_to_u64(vport->fc_portname.u.wwn));
drivers/scsi/lpfc/lpfc_attr.c
6497
lpfc_alloc_sysfs_attr(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_attr.c
6499
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_attr.c
6503
if (vport->port_type == LPFC_NPIV_PORT)
drivers/scsi/lpfc/lpfc_attr.c
6528
lpfc_free_sysfs_attr(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_attr.c
6530
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_attr.c
6533
if (vport->port_type == LPFC_NPIV_PORT)
drivers/scsi/lpfc/lpfc_attr.c
6550
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6552
lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost),
drivers/scsi/lpfc/lpfc_attr.c
6563
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6566
fc_host_port_id(shost) = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_attr.c
6576
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6577
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
6579
if (vport->port_type == LPFC_NPIV_PORT) {
drivers/scsi/lpfc/lpfc_attr.c
6583
if (test_bit(FC_PUBLIC_LOOP, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_attr.c
6588
if (test_bit(FC_FABRIC, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_attr.c
6604
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6605
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
6607
if (test_bit(FC_OFFLINE_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_attr.c
6619
if (vport->port_state < LPFC_VPORT_READY)
drivers/scsi/lpfc/lpfc_attr.c
6643
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6644
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
6719
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6720
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
6723
if (vport->port_state > LPFC_FLOGI &&
drivers/scsi/lpfc/lpfc_attr.c
6724
(test_bit(FC_FABRIC, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_attr.c
6726
test_bit(FC_PUBLIC_LOOP, &vport->fc_flag))))
drivers/scsi/lpfc/lpfc_attr.c
673
wwn_to_u64(vport->fc_portname.u.wwn),
drivers/scsi/lpfc/lpfc_attr.c
674
wwn_to_u64(vport->fc_nodename.u.wwn),
drivers/scsi/lpfc/lpfc_attr.c
6750
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6751
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
6780
pmboxq->vport = vport;
drivers/scsi/lpfc/lpfc_attr.c
6782
if (test_bit(FC_OFFLINE_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_attr.c
679
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
681
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_attr.c
6833
pmboxq->vport = vport;
drivers/scsi/lpfc/lpfc_attr.c
6835
if (test_bit(FC_OFFLINE_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_attr.c
6899
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
6900
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
6920
pmboxq->vport = vport;
drivers/scsi/lpfc/lpfc_attr.c
6922
if (test_bit(FC_OFFLINE_MODE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_attr.c
6942
pmboxq->vport = vport;
drivers/scsi/lpfc/lpfc_attr.c
6944
if (test_bit(FC_OFFLINE_MODE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_attr.c
7003
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
7008
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
7009
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_attr.c
7016
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
7038
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
7042
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
7044
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_attr.c
7047
spin_unlock_irqrestore(&vport->fc_nodes_list_lock,
drivers/scsi/lpfc/lpfc_attr.c
7052
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
7177
struct lpfc_vport *vport = *(struct lpfc_vport **)fc_vport->dd_data;
drivers/scsi/lpfc/lpfc_attr.c
7179
if (vport->port_state == LPFC_VPORT_READY)
drivers/scsi/lpfc/lpfc_attr.c
7180
lpfc_ns_cmd(vport, SLI_CTNS_RSPN_ID, 0, 0);
drivers/scsi/lpfc/lpfc_attr.c
753
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
7570
lpfc_get_vport_cfgparam(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_attr.c
7572
lpfc_log_verbose_init(vport, lpfc_log_verbose);
drivers/scsi/lpfc/lpfc_attr.c
7573
lpfc_lun_queue_depth_init(vport, lpfc_lun_queue_depth);
drivers/scsi/lpfc/lpfc_attr.c
7574
lpfc_tgt_queue_depth_init(vport, lpfc_tgt_queue_depth);
drivers/scsi/lpfc/lpfc_attr.c
7575
lpfc_devloss_tmo_init(vport, lpfc_devloss_tmo);
drivers/scsi/lpfc/lpfc_attr.c
7576
lpfc_nodev_tmo_init(vport, lpfc_nodev_tmo);
drivers/scsi/lpfc/lpfc_attr.c
7577
lpfc_peer_port_login_init(vport, lpfc_peer_port_login);
drivers/scsi/lpfc/lpfc_attr.c
7578
lpfc_restrict_login_init(vport, lpfc_restrict_login);
drivers/scsi/lpfc/lpfc_attr.c
7579
lpfc_fcp_class_init(vport, lpfc_fcp_class);
drivers/scsi/lpfc/lpfc_attr.c
7580
lpfc_use_adisc_init(vport, lpfc_use_adisc);
drivers/scsi/lpfc/lpfc_attr.c
7581
lpfc_first_burst_size_init(vport, lpfc_first_burst_size);
drivers/scsi/lpfc/lpfc_attr.c
7582
lpfc_max_scsicmpl_time_init(vport, lpfc_max_scsicmpl_time);
drivers/scsi/lpfc/lpfc_attr.c
7583
lpfc_discovery_threads_init(vport, lpfc_discovery_threads);
drivers/scsi/lpfc/lpfc_attr.c
7584
lpfc_max_luns_init(vport, lpfc_max_luns);
drivers/scsi/lpfc/lpfc_attr.c
7585
lpfc_scan_down_init(vport, lpfc_scan_down);
drivers/scsi/lpfc/lpfc_attr.c
7586
lpfc_enable_da_id_init(vport, lpfc_enable_da_id);
drivers/scsi/lpfc/lpfc_attr.c
817
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_attr.c
840
struct lpfc_vport *vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_attr.c
841
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
849
if (!(vport->cfg_enable_fc4_type & LPFC_ENABLE_FCP) ||
drivers/scsi/lpfc/lpfc_attr.c
891
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
892
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
911
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
912
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
923
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
924
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
935
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
936
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
972
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
973
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_attr.c
995
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_attr.c
996
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
1182
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
1183
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
1265
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
1266
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
1527
ctiocb->vport = phba->pport;
drivers/scsi/lpfc/lpfc_bsg.c
1586
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
1587
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
2236
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_bsg.c
2243
vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_bsg.c
2244
if (!vport)
drivers/scsi/lpfc/lpfc_bsg.c
2246
phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
2274
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_bsg.c
2283
vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_bsg.c
2284
if (!vport)
drivers/scsi/lpfc/lpfc_bsg.c
2286
phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
2353
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_bsg.c
2368
vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_bsg.c
2369
if (!vport)
drivers/scsi/lpfc/lpfc_bsg.c
2372
phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
2669
cmdiocbq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_bsg.c
3037
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
3039
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
3227
cmdiocbq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_bsg.c
3337
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
3339
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
3450
MAILBOX_t *mb, struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_bsg.c
3466
if (!test_bit(FC_OFFLINE_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_bsg.c
391
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
393
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
4115
pmboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_bsg.c
4295
pmboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_bsg.c
4644
pmboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_bsg.c
477
cmdiocbq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_bsg.c
4823
struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_bsg.c
4894
rc = lpfc_bsg_check_cmd_access(phba, (MAILBOX_t *)pmbx, vport);
drivers/scsi/lpfc/lpfc_bsg.c
4917
pmboxq->vport = vport;
drivers/scsi/lpfc/lpfc_bsg.c
5088
if (test_bit(FC_OFFLINE_MODE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_bsg.c
5129
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
5132
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
5153
rc = lpfc_bsg_issue_mbox(phba, job, vport);
drivers/scsi/lpfc/lpfc_bsg.c
5177
struct lpfc_vport *vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_bsg.c
5178
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
5247
struct lpfc_vport *vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_bsg.c
5249
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
5304
struct lpfc_vport *vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_bsg.c
5305
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
5392
struct lpfc_vport *vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_bsg.c
5394
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
5453
struct lpfc_vport *vport = shost_priv(shost);
drivers/scsi/lpfc/lpfc_bsg.c
5454
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
5533
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
5534
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
5605
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
5606
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
5804
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
5805
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
658
struct lpfc_vport *vport = shost_priv(fc_bsg_to_shost(job));
drivers/scsi/lpfc/lpfc_bsg.c
659
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_bsg.c
707
cmdiocbq = lpfc_prep_els_iocb(vport, 1, cmdsize, 0, ndlp,
drivers/scsi/lpfc/lpfc_crtn.h
117
void lpfc_nlp_reg_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp);
drivers/scsi/lpfc/lpfc_crtn.h
118
void lpfc_nlp_unreg_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp);
drivers/scsi/lpfc/lpfc_crtn.h
130
struct lpfc_nodelist *lpfc_nlp_init(struct lpfc_vport *vport, uint32_t did);
drivers/scsi/lpfc/lpfc_crtn.h
133
void lpfc_check_nlp_post_devloss(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_crtn.h
171
int lpfc_issue_els_scr(struct lpfc_vport *vport, uint8_t retry);
drivers/scsi/lpfc/lpfc_crtn.h
172
int lpfc_issue_els_rscn(struct lpfc_vport *vport, uint8_t retry);
drivers/scsi/lpfc/lpfc_crtn.h
174
int lpfc_issue_els_rdf(struct lpfc_vport *vport, uint8_t retry);
drivers/scsi/lpfc/lpfc_crtn.h
175
int lpfc_issue_els_edc(struct lpfc_vport *vport, uint8_t retry);
drivers/scsi/lpfc/lpfc_crtn.h
176
void lpfc_els_rcv_fpin(struct lpfc_vport *vport, void *p, u32 fpin_length);
drivers/scsi/lpfc/lpfc_crtn.h
210
int lpfc_issue_gidpt(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
211
int lpfc_issue_gidft(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
212
int lpfc_get_gidft_type(struct lpfc_vport *vport, struct lpfc_iocbq *iocbq);
drivers/scsi/lpfc/lpfc_crtn.h
215
void lpfc_fdmi_change_check(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
220
void lpfc_update_vport_wwn(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
293
int lpfc_nvmet_rcv_unsol_abort(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_crtn.h
354
void lpfc_sli4_seq_abort_rsp(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_crtn.h
368
struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_crtn.h
408
int lpfc_sli_abort_iocb(struct lpfc_vport *vport, u16 tgt_id, u64 lun_id,
drivers/scsi/lpfc/lpfc_crtn.h
422
struct lpfc_nodelist *lpfc_findnode_mapped(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
443
void lpfc_setup_fdmi_mask(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
444
int lpfc_link_reset(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
461
bool lpfc_error_lost_link(struct lpfc_vport *vport, u32 ulp_status,
drivers/scsi/lpfc/lpfc_crtn.h
618
void lpfc_nvme_rescan_port(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_crtn.h
620
void lpfc_nvme_unregister_port(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_crtn.h
622
int lpfc_nvme_register_port(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_crtn.h
624
int lpfc_nvme_create_localport(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
625
void lpfc_nvme_destroy_localport(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
626
void lpfc_nvme_update_localport(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
678
int lpfc_vmid_uvem(struct lpfc_vport *vport, struct lpfc_vmid *vmid, bool ins);
drivers/scsi/lpfc/lpfc_crtn.h
679
uint32_t lpfc_vmid_get_cs_ctl(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
680
int lpfc_vmid_cmd(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_crtn.h
683
struct lpfc_vmid *lpfc_get_vmid_from_hashtable(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_crtn.h
685
int lpfc_vmid_get_appid(struct lpfc_vport *vport, char *uuid,
drivers/scsi/lpfc/lpfc_crtn.h
688
void lpfc_vmid_vport_cleanup(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
689
int lpfc_issue_els_qfpa(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
690
void lpfc_reinit_vmid(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_crtn.h
692
void lpfc_sli_rpi_release(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_ct.c
1002
rc = lpfc_ns_cmd(vport, SLI_CTNS_GID_FT,
drivers/scsi/lpfc/lpfc_ct.c
1003
vport->fc_ns_retry, type);
drivers/scsi/lpfc/lpfc_ct.c
1007
if (vport->gidft_inp)
drivers/scsi/lpfc/lpfc_ct.c
1008
vport->gidft_inp--;
drivers/scsi/lpfc/lpfc_ct.c
1011
if (test_bit(FC_RSCN_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
1012
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1013
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_ct.c
1014
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_ct.c
1016
ulp_status, vport->fc_ns_retry);
drivers/scsi/lpfc/lpfc_ct.c
1023
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1026
vport->fc_flag,
drivers/scsi/lpfc/lpfc_ct.c
1028
vport->num_disc_nodes,
drivers/scsi/lpfc/lpfc_ct.c
1029
vport->gidft_inp,
drivers/scsi/lpfc/lpfc_ct.c
1032
lpfc_ns_rsp(vport,
drivers/scsi/lpfc/lpfc_ct.c
1041
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_ct.c
1048
vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
1050
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1056
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_ct.c
1063
vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
1065
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1075
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_ct.c
1081
vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
1083
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1089
if (vport->gidft_inp)
drivers/scsi/lpfc/lpfc_ct.c
1090
vport->gidft_inp--;
drivers/scsi/lpfc/lpfc_ct.c
1093
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1095
vport->gidft_inp, vport->num_disc_nodes);
drivers/scsi/lpfc/lpfc_ct.c
1098
if ((vport->num_disc_nodes == 0) &&
drivers/scsi/lpfc/lpfc_ct.c
1099
(vport->gidft_inp == 0)) {
drivers/scsi/lpfc/lpfc_ct.c
1105
if (vport->port_state >= LPFC_DISC_AUTH) {
drivers/scsi/lpfc/lpfc_ct.c
1106
if (test_bit(FC_RSCN_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_ct.c
1107
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1109
set_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
1111
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1115
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_ct.c
1127
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1145
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1148
vport->fc_ns_retry);
drivers/scsi/lpfc/lpfc_ct.c
1152
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1158
if (vport == phba->pport && test_bit(FC_UNLOADING, &vport->load_flag)) {
drivers/scsi/lpfc/lpfc_ct.c
1159
if (test_bit(FC_RSCN_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
1160
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1164
if (lpfc_els_chk_latt(vport)) {
drivers/scsi/lpfc/lpfc_ct.c
1165
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1167
if (test_bit(FC_RSCN_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
1168
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1169
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_ct.c
1172
if (lpfc_error_lost_link(vport, ulp_status, ulp_word4)) {
drivers/scsi/lpfc/lpfc_ct.c
1173
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1177
ulp_status, ulp_word4, vport->fc_flag,
drivers/scsi/lpfc/lpfc_ct.c
1178
vport->port_state, vport->gidft_inp);
drivers/scsi/lpfc/lpfc_ct.c
1179
if (test_bit(FC_RSCN_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
1180
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1181
if (vport->gidft_inp)
drivers/scsi/lpfc/lpfc_ct.c
1182
vport->gidft_inp--;
drivers/scsi/lpfc/lpfc_ct.c
1186
if (test_and_clear_bit(FC_RSCN_DEFERRED, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_ct.c
1190
if (vport->gidft_inp)
drivers/scsi/lpfc/lpfc_ct.c
1191
vport->gidft_inp--;
drivers/scsi/lpfc/lpfc_ct.c
1197
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_ct.c
1199
vport->fc_flag, vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
1200
lpfc_els_handle_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1207
if (vport->fc_ns_retry < LPFC_MAX_NS_RETRY) {
drivers/scsi/lpfc/lpfc_ct.c
1211
vport->fc_ns_retry++;
drivers/scsi/lpfc/lpfc_ct.c
1214
rc = lpfc_ns_cmd(vport, SLI_CTNS_GID_PT,
drivers/scsi/lpfc/lpfc_ct.c
1215
vport->fc_ns_retry, GID_PT_N_PORT);
drivers/scsi/lpfc/lpfc_ct.c
1219
if (vport->gidft_inp)
drivers/scsi/lpfc/lpfc_ct.c
1220
vport->gidft_inp--;
drivers/scsi/lpfc/lpfc_ct.c
1223
if (test_bit(FC_RSCN_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
1224
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1225
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_ct.c
1226
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_ct.c
1228
ulp_status, vport->fc_ns_retry);
drivers/scsi/lpfc/lpfc_ct.c
1235
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1238
vport->fc_flag,
drivers/scsi/lpfc/lpfc_ct.c
1240
vport->num_disc_nodes,
drivers/scsi/lpfc/lpfc_ct.c
1241
vport->gidft_inp,
drivers/scsi/lpfc/lpfc_ct.c
1244
lpfc_ns_rsp(vport,
drivers/scsi/lpfc/lpfc_ct.c
1254
vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1260
vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
1263
vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1270
vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1276
vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
1279
vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1287
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_ct.c
1293
vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
1296
vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1302
if (vport->gidft_inp)
drivers/scsi/lpfc/lpfc_ct.c
1303
vport->gidft_inp--;
drivers/scsi/lpfc/lpfc_ct.c
1306
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1308
vport->gidft_inp, vport->num_disc_nodes);
drivers/scsi/lpfc/lpfc_ct.c
1311
if ((vport->num_disc_nodes == 0) &&
drivers/scsi/lpfc/lpfc_ct.c
1312
(vport->gidft_inp == 0)) {
drivers/scsi/lpfc/lpfc_ct.c
1318
if (vport->port_state >= LPFC_DISC_AUTH) {
drivers/scsi/lpfc/lpfc_ct.c
1319
if (test_bit(FC_RSCN_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_ct.c
1320
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1322
set_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
1324
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1328
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_ct.c
1339
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1352
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1358
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1368
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1379
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_ct.c
1384
vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
1416
rc = lpfc_ns_cmd(vport, SLI_CTNS_GFF_ID,
drivers/scsi/lpfc/lpfc_ct.c
1427
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_ct.c
1431
vport->fc_flag, vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
1435
ndlp = lpfc_setup_disc_node(vport, did);
drivers/scsi/lpfc/lpfc_ct.c
1437
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1440
did, ndlp->nlp_flag, vport->fc_flag,
drivers/scsi/lpfc/lpfc_ct.c
1441
vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
1443
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1446
vport->fc_flag, vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
1450
if (vport->num_disc_nodes)
drivers/scsi/lpfc/lpfc_ct.c
1451
vport->num_disc_nodes--;
drivers/scsi/lpfc/lpfc_ct.c
1453
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1455
vport->gidft_inp, vport->num_disc_nodes);
drivers/scsi/lpfc/lpfc_ct.c
1457
if (vport->num_disc_nodes == 0) {
drivers/scsi/lpfc/lpfc_ct.c
1463
if (vport->port_state >= LPFC_DISC_AUTH) {
drivers/scsi/lpfc/lpfc_ct.c
1464
if (test_bit(FC_RSCN_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_ct.c
1465
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1467
set_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
1469
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
1472
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_ct.c
1486
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1500
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1506
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1517
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1530
ndlp = lpfc_findnode_did(vport, did);
drivers/scsi/lpfc/lpfc_ct.c
1540
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_ct.c
1552
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_ct.c
1554
lpfc_issue_els_prli(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_ct.c
1557
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_ct.c
1564
lpfc_issue_els_logo(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_ct.c
1566
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_ct.c
157
struct lpfc_vport *vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_ct.c
1571
lpfc_vlog_msg(vport, KERN_WARNING, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
158
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
1583
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1607
latt = lpfc_els_chk_latt(vport);
drivers/scsi/lpfc/lpfc_ct.c
1610
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1617
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
1622
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_ct.c
1638
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1640
rc = lpfc_ns_cmd(vport, cmdcode, retry, 0);
drivers/scsi/lpfc/lpfc_ct.c
1665
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1676
vport->ct_flags |= FC_CT_RFT_ID;
drivers/scsi/lpfc/lpfc_ct.c
1686
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1697
vport->ct_flags |= FC_CT_RNN_ID;
drivers/scsi/lpfc/lpfc_ct.c
1707
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1718
vport->ct_flags |= FC_CT_RSPN_ID;
drivers/scsi/lpfc/lpfc_ct.c
1728
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1739
vport->ct_flags |= FC_CT_RSNN_NN;
drivers/scsi/lpfc/lpfc_ct.c
1749
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_ct.c
1754
vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1762
vport->ct_flags |= FC_CT_RSPNI_PNI;
drivers/scsi/lpfc/lpfc_ct.c
1771
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1774
vport->ct_flags = 0;
drivers/scsi/lpfc/lpfc_ct.c
1783
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
1794
vport->ct_flags |= FC_CT_RFF_ID;
drivers/scsi/lpfc/lpfc_ct.c
1806
lpfc_vport_symbolic_port_name(struct lpfc_vport *vport, char *symbol,
drivers/scsi/lpfc/lpfc_ct.c
1816
n = scnprintf(symbol, size, "%d", vport->phba->brd_no);
drivers/scsi/lpfc/lpfc_ct.c
1822
lpfc_vport_symbolic_node_name(struct lpfc_vport *vport, char *symbol,
drivers/scsi/lpfc/lpfc_ct.c
1830
scnprintf(tmp, sizeof(tmp), "Emulex %s", vport->phba->ModelName);
drivers/scsi/lpfc/lpfc_ct.c
1834
lpfc_decode_firmware_rev(vport->phba, fwrev, 0);
drivers/scsi/lpfc/lpfc_ct.c
1843
scnprintf(tmp, sizeof(tmp), " HN:%s", vport->phba->os_host_name);
drivers/scsi/lpfc/lpfc_ct.c
1857
lpfc_find_map_node(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_ct.c
1863
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_ct.c
1864
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_ct.c
1871
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_ct.c
1880
lpfc_get_gidft_type(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb)
drivers/scsi/lpfc/lpfc_ct.c
1904
lpfc_ns_cmd(struct lpfc_vport *vport, int cmdcode,
drivers/scsi/lpfc/lpfc_ct.c
1908
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
1919
ndlp = lpfc_findnode_did(vport, NameServer_DID);
drivers/scsi/lpfc/lpfc_ct.c
1955
lpfc_printf_vlog(vport, KERN_INFO ,LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
1957
cmdcode, vport->fc_flag, vport->fc_rscn_id_cnt,
drivers/scsi/lpfc/lpfc_ct.c
2004
if (vport->port_state < LPFC_NS_QRY)
drivers/scsi/lpfc/lpfc_ct.c
2005
vport->port_state = LPFC_NS_QRY;
drivers/scsi/lpfc/lpfc_ct.c
2006
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_ct.c
2016
if (vport->port_state < LPFC_NS_QRY)
drivers/scsi/lpfc/lpfc_ct.c
2017
vport->port_state = LPFC_NS_QRY;
drivers/scsi/lpfc/lpfc_ct.c
2018
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_ct.c
2038
vport->ct_flags &= ~FC_CT_RFT_ID;
drivers/scsi/lpfc/lpfc_ct.c
2041
CtReq->un.rft.port_id = cpu_to_be32(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
2049
if (vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH ||
drivers/scsi/lpfc/lpfc_ct.c
2050
vport->cfg_enable_fc4_type == LPFC_ENABLE_FCP)
drivers/scsi/lpfc/lpfc_ct.c
2054
if (vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH ||
drivers/scsi/lpfc/lpfc_ct.c
2055
vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)
drivers/scsi/lpfc/lpfc_ct.c
2059
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
2072
vport->ct_flags &= ~FC_CT_RNN_ID;
drivers/scsi/lpfc/lpfc_ct.c
2075
CtReq->un.rnn.PortId = cpu_to_be32(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
2076
memcpy(CtReq->un.rnn.wwnn, &vport->fc_nodename,
drivers/scsi/lpfc/lpfc_ct.c
2082
vport->ct_flags &= ~FC_CT_RSPN_ID;
drivers/scsi/lpfc/lpfc_ct.c
2085
CtReq->un.rspn.PortId = cpu_to_be32(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
2088
lpfc_vport_symbolic_port_name(vport,
drivers/scsi/lpfc/lpfc_ct.c
2093
vport->ct_flags &= ~FC_CT_RSNN_NN;
drivers/scsi/lpfc/lpfc_ct.c
2096
memcpy(CtReq->un.rsnn.wwnn, &vport->fc_nodename,
drivers/scsi/lpfc/lpfc_ct.c
2100
lpfc_vport_symbolic_node_name(vport,
drivers/scsi/lpfc/lpfc_ct.c
2105
vport->ct_flags &= ~FC_CT_RSPNI_PNI;
drivers/scsi/lpfc/lpfc_ct.c
2120
CtReq->un.da_id.port_id = cpu_to_be32(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
2124
vport->ct_flags &= ~FC_CT_RFF_ID;
drivers/scsi/lpfc/lpfc_ct.c
2127
CtReq->un.rff.PortId = cpu_to_be32(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
2134
if (((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) ||
drivers/scsi/lpfc/lpfc_ct.c
2135
(vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)) &&
drivers/scsi/lpfc/lpfc_ct.c
2137
if ((vport == phba->pport) && phba->nvmet_support) {
drivers/scsi/lpfc/lpfc_ct.c
2142
lpfc_nvme_update_localport(vport);
drivers/scsi/lpfc/lpfc_ct.c
2146
} else if (((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) ||
drivers/scsi/lpfc/lpfc_ct.c
2147
(vport->cfg_enable_fc4_type == LPFC_ENABLE_FCP)) &&
drivers/scsi/lpfc/lpfc_ct.c
2155
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
2168
if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, retry)) {
drivers/scsi/lpfc/lpfc_ct.c
2170
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
2186
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_ct.c
2189
cmdcode, rc, vport->fc_flag, vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
2206
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_ct.c
2214
vport = vports[i];
drivers/scsi/lpfc/lpfc_ct.c
2218
if (vport->ct_flags & FC_CT_RPRT_DEFER) {
drivers/scsi/lpfc/lpfc_ct.c
2219
vport->ct_flags &= ~FC_CT_RPRT_DEFER;
drivers/scsi/lpfc/lpfc_ct.c
2220
vport->fdmi_port_mask = mask;
drivers/scsi/lpfc/lpfc_ct.c
2221
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_RPRT, 0);
drivers/scsi/lpfc/lpfc_ct.c
2241
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
2253
latt = lpfc_els_chk_latt(vport);
drivers/scsi/lpfc/lpfc_ct.c
2254
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
2259
lpfc_printf_vlog(vport, KERN_WARNING, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
2296
ndlp = lpfc_findnode_did(vport, FDMI_DID);
drivers/scsi/lpfc/lpfc_ct.c
2304
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY | LOG_ELS,
drivers/scsi/lpfc/lpfc_ct.c
2310
if (vport->fdmi_hba_mask == LPFC_FDMI2_HBA_ATTR) {
drivers/scsi/lpfc/lpfc_ct.c
2312
vport->fdmi_hba_mask = LPFC_FDMI1_HBA_ATTR;
drivers/scsi/lpfc/lpfc_ct.c
2317
vport->fdmi_port_mask = LPFC_FDMI1_PORT_ATTR;
drivers/scsi/lpfc/lpfc_ct.c
2319
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_DHBA, 0);
drivers/scsi/lpfc/lpfc_ct.c
2324
if (vport->port_type != LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_ct.c
2329
if (vport->fdmi_port_mask == LPFC_FDMI2_PORT_ATTR) {
drivers/scsi/lpfc/lpfc_ct.c
2331
vport->fdmi_port_mask = LPFC_FDMI1_PORT_ATTR;
drivers/scsi/lpfc/lpfc_ct.c
2333
lpfc_fdmi_cmd(vport, ndlp, cmd, 0);
drivers/scsi/lpfc/lpfc_ct.c
2336
if (vport->fdmi_port_mask == LPFC_FDMI2_SMART_ATTR) {
drivers/scsi/lpfc/lpfc_ct.c
2337
vport->fdmi_port_mask = LPFC_FDMI2_PORT_ATTR;
drivers/scsi/lpfc/lpfc_ct.c
2339
lpfc_fdmi_cmd(vport, ndlp, cmd, 0);
drivers/scsi/lpfc/lpfc_ct.c
2354
if (vport->fdmi_port_mask == LPFC_FDMI2_PORT_ATTR) {
drivers/scsi/lpfc/lpfc_ct.c
2356
vport->fdmi_hba_mask = LPFC_FDMI1_HBA_ATTR;
drivers/scsi/lpfc/lpfc_ct.c
2357
vport->fdmi_port_mask = LPFC_FDMI1_PORT_ATTR;
drivers/scsi/lpfc/lpfc_ct.c
2359
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_DHBA, 0);
drivers/scsi/lpfc/lpfc_ct.c
2362
if (vport->fdmi_port_mask == LPFC_FDMI2_SMART_ATTR) {
drivers/scsi/lpfc/lpfc_ct.c
2363
vport->fdmi_port_mask = LPFC_FDMI2_PORT_ATTR;
drivers/scsi/lpfc/lpfc_ct.c
2365
lpfc_fdmi_cmd(vport, ndlp, cmd, 0);
drivers/scsi/lpfc/lpfc_ct.c
2379
lpfc_fdmi_rprt_defer(phba, vport->fdmi_port_mask);
drivers/scsi/lpfc/lpfc_ct.c
2381
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_RPA, 0);
drivers/scsi/lpfc/lpfc_ct.c
2385
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_DPRT, 0);
drivers/scsi/lpfc/lpfc_ct.c
2389
if (vport->port_type == LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_ct.c
2390
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_RHBA, 0);
drivers/scsi/lpfc/lpfc_ct.c
2401
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_RPRT, 0);
drivers/scsi/lpfc/lpfc_ct.c
2403
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_ct.c
2406
vport->ct_flags |= FC_CT_RPRT_DEFER;
drivers/scsi/lpfc/lpfc_ct.c
241
cmdiocbq->vport = vport;
drivers/scsi/lpfc/lpfc_ct.c
2411
if (vport->port_type == LPFC_PHYSICAL_PORT &&
drivers/scsi/lpfc/lpfc_ct.c
2415
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_ct.c
2429
if (lpfc_fdmi_cmd(vport, ndlp, cmd,
drivers/scsi/lpfc/lpfc_ct.c
2460
lpfc_fdmi_change_check(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_ct.c
2462
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
2470
if (!test_bit(FC_FABRIC, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
2473
ndlp = lpfc_findnode_did(vport, FDMI_DID);
drivers/scsi/lpfc/lpfc_ct.c
2482
lpfc_ns_cmd(vport, SLI_CTNS_RSNN_NN, 0, 0);
drivers/scsi/lpfc/lpfc_ct.c
2489
if (vport->port_type == LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_ct.c
2492
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_DHBA, 0);
drivers/scsi/lpfc/lpfc_ct.c
2497
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_DPRT, 0);
drivers/scsi/lpfc/lpfc_ct.c
2506
if (!(vport->fdmi_port_mask & LPFC_FDMI_PORT_ATTR_num_disc))
drivers/scsi/lpfc/lpfc_ct.c
2510
cnt = lpfc_find_map_node(vport);
drivers/scsi/lpfc/lpfc_ct.c
2511
if (cnt == vport->fdmi_num_disc)
drivers/scsi/lpfc/lpfc_ct.c
2514
if (vport->port_type == LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_ct.c
2515
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_RPA,
drivers/scsi/lpfc/lpfc_ct.c
2521
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_RPRT,
drivers/scsi/lpfc/lpfc_ct.c
2627
lpfc_fdmi_hba_attr_wwnn(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2630
&vport->fc_sparam.nodeName);
drivers/scsi/lpfc/lpfc_ct.c
2634
lpfc_fdmi_hba_attr_manufacturer(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2644
lpfc_fdmi_hba_attr_sn(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2646
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
2653
lpfc_fdmi_hba_attr_model(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2655
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
2662
lpfc_fdmi_hba_attr_description(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2664
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
267
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_ct.c
2671
lpfc_fdmi_hba_attr_hdw_ver(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2673
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
2683
lpfc_fdmi_hba_attr_drvr_ver(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
269
rc, vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
2690
lpfc_fdmi_hba_attr_rom_ver(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2692
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
2707
lpfc_fdmi_hba_attr_fmw_ver(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2709
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
2718
lpfc_fdmi_hba_attr_os_ver(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2731
lpfc_fdmi_hba_attr_ct_len(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2738
lpfc_fdmi_hba_attr_symbolic_name(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2742
lpfc_vport_symbolic_node_name(vport, buf, sizeof(buf));
drivers/scsi/lpfc/lpfc_ct.c
2748
lpfc_fdmi_hba_attr_vendor_info(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2754
lpfc_fdmi_hba_attr_num_ports(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2761
lpfc_fdmi_hba_attr_fabric_wwnn(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2764
&vport->fabric_nodename);
drivers/scsi/lpfc/lpfc_ct.c
2768
lpfc_fdmi_hba_attr_bios_ver(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2770
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
2777
lpfc_fdmi_hba_attr_bios_state(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2784
lpfc_fdmi_hba_attr_vendor_id(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2794
lpfc_fdmi_port_attr_fc4type(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2796
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
2802
if ((phba->sli_rev == LPFC_SLI_REV4) && (vport == phba->pport) &&
drivers/scsi/lpfc/lpfc_ct.c
2811
lpfc_fdmi_port_attr_support_speed(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2813
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
286
struct lpfc_vport *vport = ctiocbq->vport;
drivers/scsi/lpfc/lpfc_ct.c
2887
lpfc_fdmi_port_attr_speed(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2889
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
294
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_ct.c
2952
lpfc_fdmi_port_attr_max_frame(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2954
struct serv_parm *hsp = (struct serv_parm *)&vport->fc_sparam;
drivers/scsi/lpfc/lpfc_ct.c
2962
lpfc_fdmi_port_attr_os_devname(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2964
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_ct.c
2974
lpfc_fdmi_port_attr_host_name(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2978
scnprintf(buf, sizeof(buf), "%s", vport->phba->os_host_name);
drivers/scsi/lpfc/lpfc_ct.c
2984
lpfc_fdmi_port_attr_wwnn(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2987
&vport->fc_sparam.nodeName);
drivers/scsi/lpfc/lpfc_ct.c
2991
lpfc_fdmi_port_attr_wwpn(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
2994
&vport->fc_sparam.portName);
drivers/scsi/lpfc/lpfc_ct.c
2998
lpfc_fdmi_port_attr_symbolic_name(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3002
lpfc_vport_symbolic_port_name(vport, buf, sizeof(buf));
drivers/scsi/lpfc/lpfc_ct.c
3008
lpfc_fdmi_port_attr_port_type(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
301
if (test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_ct.c
3010
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
3019
lpfc_fdmi_port_attr_class(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3026
lpfc_fdmi_port_attr_fabric_wwpn(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3029
&vport->fabric_portname);
drivers/scsi/lpfc/lpfc_ct.c
3033
lpfc_fdmi_port_attr_active_fc4type(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3035
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
304
ndlp = lpfc_findnode_did(vport, did);
drivers/scsi/lpfc/lpfc_ct.c
3041
if (vport == phba->pport &&
drivers/scsi/lpfc/lpfc_ct.c
3050
lpfc_fdmi_port_attr_port_state(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3057
lpfc_fdmi_port_attr_num_disc(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3059
vport->fdmi_num_disc = lpfc_find_map_node(vport);
drivers/scsi/lpfc/lpfc_ct.c
306
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_ct.c
3062
vport->fdmi_num_disc);
drivers/scsi/lpfc/lpfc_ct.c
3066
lpfc_fdmi_port_attr_nportid(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3068
return lpfc_fdmi_set_attr_u32(attr, RPRT_PORT_ID, vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
3072
lpfc_fdmi_smart_attr_service(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3079
lpfc_fdmi_smart_attr_guid(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3082
&vport->fc_sparam.nodeName,
drivers/scsi/lpfc/lpfc_ct.c
3083
&vport->fc_sparam.portName);
drivers/scsi/lpfc/lpfc_ct.c
3087
lpfc_fdmi_smart_attr_version(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3094
lpfc_fdmi_smart_attr_model(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3096
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
3103
lpfc_fdmi_smart_attr_port_info(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3108
(vport->vpi) ? 2 /* NPIV */ : 1 /* Physical */);
drivers/scsi/lpfc/lpfc_ct.c
3112
lpfc_fdmi_smart_attr_qos(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3118
lpfc_fdmi_smart_attr_security(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3124
lpfc_fdmi_vendor_attr_mi(struct lpfc_vport *vport, void *attr)
drivers/scsi/lpfc/lpfc_ct.c
3126
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
3136
(struct lpfc_vport *vport, void *attrbuf) = {
drivers/scsi/lpfc/lpfc_ct.c
315
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_ct.c
3160
(struct lpfc_vport *vport, void *attrbuf) = {
drivers/scsi/lpfc/lpfc_ct.c
3198
lpfc_fdmi_cmd(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_ct.c
3201
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
3213
int (*func)(struct lpfc_vport *vport, void *attrbuf);
drivers/scsi/lpfc/lpfc_ct.c
3249
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3251
cmdcode, new_mask, vport->fdmi_port_mask,
drivers/scsi/lpfc/lpfc_ct.c
3252
vport->fc_flag, vport->port_state);
drivers/scsi/lpfc/lpfc_ct.c
3295
mask = vport->fdmi_hba_mask;
drivers/scsi/lpfc/lpfc_ct.c
3301
addsz = func(vport, ((uint8_t *)rh + size));
drivers/scsi/lpfc/lpfc_ct.c
3321
if (vport->port_type != LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_ct.c
3345
(uint8_t *)&vport->fc_sparam.portName,
drivers/scsi/lpfc/lpfc_ct.c
3355
mask = vport->fdmi_port_mask;
drivers/scsi/lpfc/lpfc_ct.c
3361
addsz = func(vport, ((uint8_t *)base + size));
drivers/scsi/lpfc/lpfc_ct.c
3387
(uint8_t *)&vport->fc_sparam.portName,
drivers/scsi/lpfc/lpfc_ct.c
3397
if (vport->port_type != LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_ct.c
3406
(uint8_t *)&vport->fc_sparam.portName,
drivers/scsi/lpfc/lpfc_ct.c
3414
lpfc_printf_vlog(vport, KERN_WARNING, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3432
if (!lpfc_ct_cmd(vport, rq, rsp, ndlp, cmpl, rsp_size, 0))
drivers/scsi/lpfc/lpfc_ct.c
3445
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3461
struct lpfc_vport *vport = timer_container_of(vport, t,
drivers/scsi/lpfc/lpfc_ct.c
3463
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
3467
spin_lock_irqsave(&vport->work_port_lock, iflag);
drivers/scsi/lpfc/lpfc_ct.c
3468
tmo_posted = vport->work_port_events & WORKER_DELAYED_DISC_TMO;
drivers/scsi/lpfc/lpfc_ct.c
3470
vport->work_port_events |= WORKER_DELAYED_DISC_TMO;
drivers/scsi/lpfc/lpfc_ct.c
3471
spin_unlock_irqrestore(&vport->work_port_lock, iflag);
drivers/scsi/lpfc/lpfc_ct.c
3486
lpfc_delayed_disc_timeout_handler(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_ct.c
3488
if (!test_and_clear_bit(FC_DISC_DELAYED, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
3491
lpfc_do_scr_ns_plogi(vport->phba, vport);
drivers/scsi/lpfc/lpfc_ct.c
3584
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
3601
if (lpfc_els_chk_latt(vport) || get_job_ulpstatus(phba, rspiocb)) {
drivers/scsi/lpfc/lpfc_ct.c
3608
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3618
&vport->load_flag);
drivers/scsi/lpfc/lpfc_ct.c
3626
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3637
vmp = lpfc_get_vmid_from_hashtable(vport, hash,
drivers/scsi/lpfc/lpfc_ct.c
3640
write_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_ct.c
3644
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_ct.c
3646
vport->vmid_flag |= LPFC_VMID_IN_USE;
drivers/scsi/lpfc/lpfc_ct.c
3648
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3655
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3661
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3663
read_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_ct.c
3665
vmp = &vport->vmid[i];
drivers/scsi/lpfc/lpfc_ct.c
3669
read_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_ct.c
3671
if (!hash_empty(vport->hash_table))
drivers/scsi/lpfc/lpfc_ct.c
3672
hash_for_each(vport->hash_table, bucket, cur, hnode)
drivers/scsi/lpfc/lpfc_ct.c
3674
set_bit(FC_ALLOW_VMID, &vport->load_flag);
drivers/scsi/lpfc/lpfc_ct.c
3677
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3694
lpfc_vmid_cmd(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_ct.c
3697
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
3712
ndlp = lpfc_findnode_did(vport, FDMI_DID);
drivers/scsi/lpfc/lpfc_ct.c
3740
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3742
vport->fc_flag, vport->port_state, cmdcode);
drivers/scsi/lpfc/lpfc_ct.c
3759
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3761
ctreq->un.PortID = cpu_to_be32(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
3773
ctreq->un.PortID = cpu_to_be32(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
3778
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3780
ctreq->un.PortID = cpu_to_be32(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
3788
write_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_ct.c
3790
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_ct.c
3795
ctreq->un.PortID = cpu_to_be32(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_ct.c
3800
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
3817
if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, retry))
drivers/scsi/lpfc/lpfc_ct.c
3831
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
586
lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,
drivers/scsi/lpfc/lpfc_ct.c
593
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
628
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_ct.c
632
vport->port_state);
drivers/scsi/lpfc/lpfc_ct.c
635
geniocb->vport = vport;
drivers/scsi/lpfc/lpfc_ct.c
664
lpfc_ct_cmd(struct lpfc_vport *vport, struct lpfc_dmabuf *inmp,
drivers/scsi/lpfc/lpfc_ct.c
670
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
689
status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp,
drivers/scsi/lpfc/lpfc_ct.c
715
lpfc_prep_node_fc4type(struct lpfc_vport *vport, uint32_t Did, uint8_t fc4_type)
drivers/scsi/lpfc/lpfc_ct.c
719
if ((vport->port_type != LPFC_NPIV_PORT) ||
drivers/scsi/lpfc/lpfc_ct.c
720
!(vport->ct_flags & FC_CT_RFF_ID) || !vport->cfg_restrict_login) {
drivers/scsi/lpfc/lpfc_ct.c
722
ndlp = lpfc_setup_disc_node(vport, Did);
drivers/scsi/lpfc/lpfc_ct.c
725
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
727
Did, ndlp->nlp_flag, vport->fc_flag);
drivers/scsi/lpfc/lpfc_ct.c
736
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
740
ndlp->nlp_state, vport->fc_flag,
drivers/scsi/lpfc/lpfc_ct.c
741
vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
749
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_ct.c
753
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
755
Did, vport->fc_flag, vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
757
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
760
Did, vport->fc_flag,
drivers/scsi/lpfc/lpfc_ct.c
761
vport->fc_rscn_id_cnt, ndlp);
drivers/scsi/lpfc/lpfc_ct.c
764
if (!test_bit(FC_RSCN_MODE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_ct.c
765
lpfc_rscn_payload_check(vport, Did)) {
drivers/scsi/lpfc/lpfc_ct.c
766
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
768
Did, vport->fc_flag, vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
774
ndlp = lpfc_findnode_did(vport, Did);
drivers/scsi/lpfc/lpfc_ct.c
782
lpfc_setup_disc_node(vport, Did);
drivers/scsi/lpfc/lpfc_ct.c
783
} else if (lpfc_ns_cmd(vport, SLI_CTNS_GFF_ID,
drivers/scsi/lpfc/lpfc_ct.c
785
vport->num_disc_nodes++;
drivers/scsi/lpfc/lpfc_ct.c
787
lpfc_setup_disc_node(vport, Did);
drivers/scsi/lpfc/lpfc_ct.c
789
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
791
Did, vport->fc_flag, vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
793
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
796
vport->fc_flag,
drivers/scsi/lpfc/lpfc_ct.c
797
vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
803
lpfc_ns_rsp_audit_did(struct lpfc_vport *vport, uint32_t Did, uint8_t fc4_type)
drivers/scsi/lpfc/lpfc_ct.c
805
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_ct.c
813
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
822
if (Did != vport->fc_myDID &&
drivers/scsi/lpfc/lpfc_ct.c
824
vport->cfg_peer_port_login)) {
drivers/scsi/lpfc/lpfc_ct.c
827
lpfc_prep_node_fc4type(vport, Did, fc4_type);
drivers/scsi/lpfc/lpfc_ct.c
831
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_ct.c
844
lpfc_ns_rsp(struct lpfc_vport *vport, struct lpfc_dmabuf *mp, uint8_t fc4_type,
drivers/scsi/lpfc/lpfc_ct.c
856
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_ct.c
857
vport->num_disc_nodes = 0;
drivers/scsi/lpfc/lpfc_ct.c
858
vport->fc_ns_retry = 0;
drivers/scsi/lpfc/lpfc_ct.c
879
lpfc_ns_rsp_audit_did(vport, Did, fc4_type);
drivers/scsi/lpfc/lpfc_ct.c
893
if (vport->phba->nvmet_support) {
drivers/scsi/lpfc/lpfc_ct.c
894
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_ct.c
897
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_ct.c
912
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_ct.c
930
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT,
drivers/scsi/lpfc/lpfc_ct.c
932
ulp_status, ulp_word4, vport->fc_ns_retry);
drivers/scsi/lpfc/lpfc_ct.c
936
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
942
if (vport == phba->pport && test_bit(FC_UNLOADING, &vport->load_flag)) {
drivers/scsi/lpfc/lpfc_ct.c
943
if (test_bit(FC_RSCN_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
944
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
948
if (lpfc_els_chk_latt(vport)) {
drivers/scsi/lpfc/lpfc_ct.c
949
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
951
if (test_bit(FC_RSCN_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
952
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
953
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_ct.c
956
if (lpfc_error_lost_link(vport, ulp_status, ulp_word4)) {
drivers/scsi/lpfc/lpfc_ct.c
957
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_ct.c
961
ulp_status, ulp_word4, vport->fc_flag,
drivers/scsi/lpfc/lpfc_ct.c
962
vport->port_state, vport->gidft_inp);
drivers/scsi/lpfc/lpfc_ct.c
963
if (test_bit(FC_RSCN_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_ct.c
964
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
965
if (vport->gidft_inp)
drivers/scsi/lpfc/lpfc_ct.c
966
vport->gidft_inp--;
drivers/scsi/lpfc/lpfc_ct.c
970
if (test_and_clear_bit(FC_RSCN_DEFERRED, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_ct.c
974
if (vport->gidft_inp)
drivers/scsi/lpfc/lpfc_ct.c
975
vport->gidft_inp--;
drivers/scsi/lpfc/lpfc_ct.c
981
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_ct.c
983
vport->fc_flag, vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_ct.c
984
lpfc_els_handle_rscn(vport);
drivers/scsi/lpfc/lpfc_ct.c
991
if (vport->fc_ns_retry < LPFC_MAX_NS_RETRY) {
drivers/scsi/lpfc/lpfc_ct.c
995
vport->fc_ns_retry++;
drivers/scsi/lpfc/lpfc_ct.c
997
type = lpfc_get_gidft_type(vport, cmdiocb);
drivers/scsi/lpfc/lpfc_debugfs.c
1015
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_debugfs.c
1034
lpfc_debugfs_nvmestat_data(struct lpfc_vport *vport, char *buf, int size)
drivers/scsi/lpfc/lpfc_debugfs.c
1036
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
1168
if (!(vport->cfg_enable_fc4_type & LPFC_ENABLE_NVME))
drivers/scsi/lpfc/lpfc_debugfs.c
1171
localport = vport->localport;
drivers/scsi/lpfc/lpfc_debugfs.c
1256
lpfc_debugfs_scsistat_data(struct lpfc_vport *vport, char *buf, int size)
drivers/scsi/lpfc/lpfc_debugfs.c
1259
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
1266
if (!(vport->cfg_enable_fc4_type & LPFC_ENABLE_FCP) ||
drivers/scsi/lpfc/lpfc_debugfs.c
1397
lpfc_debugfs_ioktime_data(struct lpfc_vport *vport, char *buf, int size)
drivers/scsi/lpfc/lpfc_debugfs.c
1399
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
146
lpfc_debugfs_disc_trc_data(struct lpfc_vport *vport, char *buf, int size)
drivers/scsi/lpfc/lpfc_debugfs.c
161
index = (atomic_read(&vport->disc_trc_cnt) + 1) &
drivers/scsi/lpfc/lpfc_debugfs.c
164
dtp = vport->disc_trc + i;
drivers/scsi/lpfc/lpfc_debugfs.c
1699
lpfc_debugfs_hdwqstat_data(struct lpfc_vport *vport, char *buf, int size)
drivers/scsi/lpfc/lpfc_debugfs.c
1701
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
175
dtp = vport->disc_trc + i;
drivers/scsi/lpfc/lpfc_debugfs.c
1826
lpfc_debugfs_disc_trc(struct lpfc_vport *vport, int mask, char *fmt,
drivers/scsi/lpfc/lpfc_debugfs.c
1837
!vport || !vport->disc_trc)
drivers/scsi/lpfc/lpfc_debugfs.c
1840
index = atomic_inc_return(&vport->disc_trc_cnt) &
drivers/scsi/lpfc/lpfc_debugfs.c
1842
dtp = vport->disc_trc + index;
drivers/scsi/lpfc/lpfc_debugfs.c
1944
struct lpfc_vport *vport = inode->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
1968
debug->len = lpfc_debugfs_disc_trc_data(vport, debug->buffer, size);
drivers/scsi/lpfc/lpfc_debugfs.c
2521
struct lpfc_vport *vport = inode->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
2536
debug->len = lpfc_debugfs_nodelist_data(vport, debug->buffer,
drivers/scsi/lpfc/lpfc_debugfs.c
2687
struct lpfc_vport *vport = inode->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
2702
debug->len = lpfc_debugfs_nvmestat_data(vport, debug->buffer,
drivers/scsi/lpfc/lpfc_debugfs.c
2718
struct lpfc_vport *vport = (struct lpfc_vport *)debug->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
2719
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
2775
struct lpfc_vport *vport = inode->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
2790
debug->len = lpfc_debugfs_scsistat_data(vport, debug->buffer,
drivers/scsi/lpfc/lpfc_debugfs.c
2806
struct lpfc_vport *vport = (struct lpfc_vport *)debug->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
2807
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
2829
struct lpfc_vport *vport = inode->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
2844
debug->len = lpfc_debugfs_ioktime_data(vport, debug->buffer,
drivers/scsi/lpfc/lpfc_debugfs.c
2860
struct lpfc_vport *vport = (struct lpfc_vport *)debug->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
2861
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
3061
struct lpfc_vport *vport = inode->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
3076
debug->len = lpfc_debugfs_hdwqstat_data(vport, debug->buffer,
drivers/scsi/lpfc/lpfc_debugfs.c
3092
struct lpfc_vport *vport = (struct lpfc_vport *)debug->i_private;
drivers/scsi/lpfc/lpfc_debugfs.c
3093
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
6070
lpfc_debugfs_initialize(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_debugfs.c
6073
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
6086
lpfc_vlog_msg(vport, KERN_WARNING, LOG_INIT,
drivers/scsi/lpfc/lpfc_debugfs.c
6102
lpfc_vlog_msg(vport, KERN_WARNING, LOG_INIT,
drivers/scsi/lpfc/lpfc_debugfs.c
6216
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_debugfs.c
6267
snprintf(name, sizeof(name), "vport%d", vport->vpi);
drivers/scsi/lpfc/lpfc_debugfs.c
6268
if (!vport->vport_debugfs_root) {
drivers/scsi/lpfc/lpfc_debugfs.c
6269
vport->vport_debugfs_root =
drivers/scsi/lpfc/lpfc_debugfs.c
6271
if (IS_ERR(vport->vport_debugfs_root)) {
drivers/scsi/lpfc/lpfc_debugfs.c
6272
lpfc_vlog_msg(vport, KERN_WARNING, LOG_INIT,
drivers/scsi/lpfc/lpfc_debugfs.c
6295
vport->disc_trc = kzalloc(
drivers/scsi/lpfc/lpfc_debugfs.c
6299
if (!vport->disc_trc) {
drivers/scsi/lpfc/lpfc_debugfs.c
6300
lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
drivers/scsi/lpfc/lpfc_debugfs.c
6305
atomic_set(&vport->disc_trc_cnt, 0);
drivers/scsi/lpfc/lpfc_debugfs.c
6307
debugfs_create_file("discovery_trace", 0644, vport->vport_debugfs_root,
drivers/scsi/lpfc/lpfc_debugfs.c
6308
vport, &lpfc_debugfs_op_disc_trc);
drivers/scsi/lpfc/lpfc_debugfs.c
6310
debugfs_create_file("nodelist", 0644, vport->vport_debugfs_root, vport,
drivers/scsi/lpfc/lpfc_debugfs.c
6313
debugfs_create_file("nvmestat", 0644, vport->vport_debugfs_root, vport,
drivers/scsi/lpfc/lpfc_debugfs.c
6316
debugfs_create_file("scsistat", 0644, vport->vport_debugfs_root, vport,
drivers/scsi/lpfc/lpfc_debugfs.c
6319
debugfs_create_file("ioktime", 0644, vport->vport_debugfs_root, vport,
drivers/scsi/lpfc/lpfc_debugfs.c
6322
debugfs_create_file("hdwqstat", 0644, vport->vport_debugfs_root, vport,
drivers/scsi/lpfc/lpfc_debugfs.c
6399
lpfc_debugfs_terminate(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_debugfs.c
6402
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
6404
kfree(vport->disc_trc);
drivers/scsi/lpfc/lpfc_debugfs.c
6405
vport->disc_trc = NULL;
drivers/scsi/lpfc/lpfc_debugfs.c
6407
if (vport->vport_debugfs_root) {
drivers/scsi/lpfc/lpfc_debugfs.c
6408
debugfs_remove(vport->vport_debugfs_root); /* vportX */
drivers/scsi/lpfc/lpfc_debugfs.c
6409
vport->vport_debugfs_root = NULL;
drivers/scsi/lpfc/lpfc_debugfs.c
805
lpfc_debugfs_nodelist_data(struct lpfc_vport *vport, char *buf, int size)
drivers/scsi/lpfc/lpfc_debugfs.c
809
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_debugfs.c
821
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_debugfs.c
822
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_debugfs.c
918
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_debugfs.c
923
if (phba->nvmet_support && phba->targetport && (vport == phba->pport)) {
drivers/scsi/lpfc/lpfc_debugfs.c
934
wwn_to_u64(vport->fc_nodename.u.wwn),
drivers/scsi/lpfc/lpfc_debugfs.c
935
wwn_to_u64(vport->fc_portname.u.wwn),
drivers/scsi/lpfc/lpfc_debugfs.c
946
localport = vport->localport;
drivers/scsi/lpfc/lpfc_debugfs.c
961
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_debugfs.c
962
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_disc.h
153
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_disc.h
186
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_disc.h
64
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_els.c
1012
lpfc_check_nlp_post_devloss(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
1028
lpfc_printf_vlog(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
10340
lpfc_els_rcv_fpin(struct lpfc_vport *vport, void *p, u32 fpin_length)
drivers/scsi/lpfc/lpfc_els.c
10342
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
10351
if (vport->port_state < LPFC_DISC_AUTH)
drivers/scsi/lpfc/lpfc_els.c
1039
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
10440
fc_host_fpin_rcv(lpfc_shost_from_vport(vport),
drivers/scsi/lpfc/lpfc_els.c
10462
struct lpfc_vport *vport, struct lpfc_iocbq *elsiocb)
drivers/scsi/lpfc/lpfc_els.c
1047
clear_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
10472
if (!vport || !elsiocb->cmd_dmabuf)
drivers/scsi/lpfc/lpfc_els.c
1048
clear_bit(FC_PUBLIC_LOOP, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
10489
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
1049
clear_bit(FC_PT2PT_NO_NVME, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
10496
if (lpfc_els_chk_latt(vport))
drivers/scsi/lpfc/lpfc_els.c
10500
if (test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_els.c
10504
if (test_bit(FC_DISC_DELAYED, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_els.c
10508
ndlp = lpfc_findnode_did(vport, did);
drivers/scsi/lpfc/lpfc_els.c
10511
ndlp = lpfc_nlp_init(vport, did);
drivers/scsi/lpfc/lpfc_els.c
10514
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_els.c
10519
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_els.c
10535
elsiocb->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
10541
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
10544
cmd, did, kref_read(&ndlp->kref), vport->port_state,
drivers/scsi/lpfc/lpfc_els.c
10545
vport->fc_flag, vport->fc_myDID, vport->fc_prevDID);
drivers/scsi/lpfc/lpfc_els.c
10548
if ((vport->port_state < LPFC_FABRIC_CFG_LINK) &&
drivers/scsi/lpfc/lpfc_els.c
10550
!((cmd == ELS_CMD_PLOGI) && test_bit(FC_PT2PT, &vport->fc_flag))) {
drivers/scsi/lpfc/lpfc_els.c
10558
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
1056
vport->cfg_discovery_threads = LPFC_MAX_DISC_THREADS;
drivers/scsi/lpfc/lpfc_els.c
10560
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10566
vport->fc_prevDID = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_els.c
10571
vport->fc_myDID =
drivers/scsi/lpfc/lpfc_els.c
10574
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
10576
"%x\n", vport->fc_myDID,
drivers/scsi/lpfc/lpfc_els.c
10577
vport->fc_prevDID);
drivers/scsi/lpfc/lpfc_els.c
1058
(!test_bit(FC_VFI_REGISTERED, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_els.c
10580
lpfc_send_els_event(vport, ndlp, payload);
drivers/scsi/lpfc/lpfc_els.c
10583
if (test_bit(FC_DISC_DELAYED, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
10589
if (vport->port_state < LPFC_DISC_AUTH) {
drivers/scsi/lpfc/lpfc_els.c
1059
(vport->fc_prevDID != vport->fc_myDID) ||
drivers/scsi/lpfc/lpfc_els.c
10598
lpfc_disc_state_machine(vport, ndlp, elsiocb,
drivers/scsi/lpfc/lpfc_els.c
10603
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10605
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
1061
if (test_bit(FC_VFI_REGISTERED, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
10612
if (vport->port_state >= LPFC_LOCAL_CFG_LINK &&
drivers/scsi/lpfc/lpfc_els.c
10613
test_bit(FC_PT2PT, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_els.c
10614
vport->rcv_flogi_cnt >= 1) {
drivers/scsi/lpfc/lpfc_els.c
10621
lpfc_els_rcv_flogi(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10626
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10630
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10632
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10635
lpfc_send_els_event(vport, ndlp, payload);
drivers/scsi/lpfc/lpfc_els.c
10636
if (vport->port_state < LPFC_DISC_AUTH) {
drivers/scsi/lpfc/lpfc_els.c
10641
lpfc_disc_state_machine(vport, ndlp, elsiocb, NLP_EVT_RCV_LOGO);
drivers/scsi/lpfc/lpfc_els.c
10643
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10647
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10649
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
1065
&vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
10652
lpfc_send_els_event(vport, ndlp, payload);
drivers/scsi/lpfc/lpfc_els.c
10653
if (vport->port_state < LPFC_DISC_AUTH) {
drivers/scsi/lpfc/lpfc_els.c
10658
lpfc_disc_state_machine(vport, ndlp, elsiocb, NLP_EVT_RCV_PRLO);
drivers/scsi/lpfc/lpfc_els.c
10662
lpfc_els_rcv_lcb(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10666
lpfc_els_rcv_rdp(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10670
lpfc_els_rcv_rscn(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10672
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10676
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10678
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
1068
lpfc_sli4_unreg_all_rpis(vport);
drivers/scsi/lpfc/lpfc_els.c
10680
lpfc_send_els_event(vport, ndlp, payload);
drivers/scsi/lpfc/lpfc_els.c
10682
if (vport->port_state < LPFC_DISC_AUTH) {
drivers/scsi/lpfc/lpfc_els.c
10687
lpfc_disc_state_machine(vport, ndlp, elsiocb,
drivers/scsi/lpfc/lpfc_els.c
10691
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10693
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10696
if (vport->port_state < LPFC_DISC_AUTH) {
drivers/scsi/lpfc/lpfc_els.c
10701
lpfc_disc_state_machine(vport, ndlp, elsiocb,
drivers/scsi/lpfc/lpfc_els.c
10705
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10707
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10710
lpfc_els_rcv_farpr(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10713
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10715
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10718
lpfc_els_rcv_farp(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10721
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10723
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10726
lpfc_els_rcv_fan(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
1073
if (!lpfc_error_lost_link(vport, ulp_status, ulp_word4))
drivers/scsi/lpfc/lpfc_els.c
10730
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10732
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10735
if ((vport->port_state < LPFC_DISC_AUTH) &&
drivers/scsi/lpfc/lpfc_els.c
10736
test_bit(FC_FABRIC, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
1074
lpfc_issue_reg_vfi(vport);
drivers/scsi/lpfc/lpfc_els.c
10741
lpfc_disc_state_machine(vport, ndlp, elsiocb, NLP_EVT_RCV_PRLI);
drivers/scsi/lpfc/lpfc_els.c
10744
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10746
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10749
lpfc_els_rcv_lirr(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10751
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10755
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10757
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10760
lpfc_els_rcv_rls(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10762
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10766
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10768
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10771
lpfc_els_rcv_rpl(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10773
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10777
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10779
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10782
lpfc_els_rcv_rnid(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10784
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10788
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10790
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10792
lpfc_els_rcv_rtv(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10794
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10798
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
1080
clear_bit(FC_VPORT_CVL_RCVD, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
10800
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10803
lpfc_els_rcv_rrq(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10805
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10809
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
1081
clear_bit(FC_VPORT_LOGO_RCVD, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
10811
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10814
lpfc_els_rcv_echo(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10816
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10825
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10828
did, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
10830
lpfc_els_rcv_fpin(vport, (struct fc_els_fpin *)payload,
drivers/scsi/lpfc/lpfc_els.c
10836
lpfc_els_rcv_edc(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10842
lpfc_printf_vlog(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
10850
lpfc_els_rcv_rdf(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
10853
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
10855
cmd, did, vport->port_state);
drivers/scsi/lpfc/lpfc_els.c
10862
lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
10866
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10877
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, elsiocb, ndlp,
drivers/scsi/lpfc/lpfc_els.c
10881
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
10903
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
10912
if (vport && !test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_els.c
10913
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
10937
struct lpfc_vport *vport = elsiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
1095
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
10976
vport = phba->pport;
drivers/scsi/lpfc/lpfc_els.c
10978
vport = lpfc_find_vport_by_vpid(phba,
drivers/scsi/lpfc/lpfc_els.c
11009
lpfc_els_unsol_buffer(phba, pring, vport, elsiocb);
drivers/scsi/lpfc/lpfc_els.c
1101
vport->port_state, vport->fc_flag,
drivers/scsi/lpfc/lpfc_els.c
11027
lpfc_start_fdmi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
11035
ndlp = lpfc_findnode_did(vport, FDMI_DID);
drivers/scsi/lpfc/lpfc_els.c
11037
ndlp = lpfc_nlp_init(vport, FDMI_DID);
drivers/scsi/lpfc/lpfc_els.c
11045
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
11046
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_els.c
1106
lpfc_reinit_vmid(vport);
drivers/scsi/lpfc/lpfc_els.c
11063
lpfc_do_scr_ns_plogi(struct lpfc_hba *phba, struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
1107
vport->vmid_flag = 0;
drivers/scsi/lpfc/lpfc_els.c
11072
if (test_bit(FC_DISC_DELAYED, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
11073
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11076
mod_timer(&vport->delayed_disc_tmo,
drivers/scsi/lpfc/lpfc_els.c
11081
ndlp = lpfc_findnode_did(vport, NameServer_DID);
drivers/scsi/lpfc/lpfc_els.c
11083
ndlp = lpfc_nlp_init(vport, NameServer_DID);
drivers/scsi/lpfc/lpfc_els.c
11086
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_els.c
11089
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
11090
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11098
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
1110
vport->vmid_flag |= (LPFC_VMID_ISSUE_QFPA |
drivers/scsi/lpfc/lpfc_els.c
11100
if (lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0)) {
drivers/scsi/lpfc/lpfc_els.c
11101
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
11102
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11109
test_bit(FC_ALLOW_FDMI, &vport->load_flag))
drivers/scsi/lpfc/lpfc_els.c
11110
lpfc_start_fdmi(vport);
drivers/scsi/lpfc/lpfc_els.c
11128
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_els.c
11129
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
11134
clear_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11137
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11150
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
11151
clear_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11152
clear_bit(FC_PUBLIC_LOOP, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11153
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
11157
set_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11158
lpfc_init_vpi(phba, pmb, vport->vpi);
drivers/scsi/lpfc/lpfc_els.c
11159
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
11164
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_els.c
11176
lpfc_sli4_unreg_all_rpis(vport);
drivers/scsi/lpfc/lpfc_els.c
11177
lpfc_mbx_unreg_vpi(vport);
drivers/scsi/lpfc/lpfc_els.c
11178
set_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
1118
lpfc_check_nlp_post_devloss(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
11181
if ((vport->port_type == LPFC_PHYSICAL_PORT) &&
drivers/scsi/lpfc/lpfc_els.c
11182
!test_bit(FC_LOGO_RCVD_DID_CHNG, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
11184
lpfc_issue_init_vfi(vport);
drivers/scsi/lpfc/lpfc_els.c
11186
lpfc_initial_flogi(vport);
drivers/scsi/lpfc/lpfc_els.c
11188
lpfc_initial_fdisc(vport);
drivers/scsi/lpfc/lpfc_els.c
1119
if (vport->port_state == LPFC_FLOGI) {
drivers/scsi/lpfc/lpfc_els.c
11194
vport->vpi_state |= LPFC_VPI_REGISTERED;
drivers/scsi/lpfc/lpfc_els.c
11196
if (vport == phba->pport) {
drivers/scsi/lpfc/lpfc_els.c
11198
lpfc_issue_fabric_reglogin(vport);
drivers/scsi/lpfc/lpfc_els.c
112
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11204
if (vport->port_state != LPFC_FDISC)
drivers/scsi/lpfc/lpfc_els.c
11206
lpfc_do_scr_ns_plogi(phba, vport);
drivers/scsi/lpfc/lpfc_els.c
11209
lpfc_do_scr_ns_plogi(phba, vport);
drivers/scsi/lpfc/lpfc_els.c
11224
lpfc_reinit_vmid(vport);
drivers/scsi/lpfc/lpfc_els.c
11225
vport->vmid_flag = vport->phba->pport->vmid_flag;
drivers/scsi/lpfc/lpfc_els.c
11240
lpfc_register_new_vport(struct lpfc_hba *phba, struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_els.c
11247
lpfc_reg_vpi(vport, mbox);
drivers/scsi/lpfc/lpfc_els.c
11248
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
1125
rc = lpfc_cmpl_els_flogi_fabric(vport, ndlp, sp,
drivers/scsi/lpfc/lpfc_els.c
11264
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11269
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11276
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
11277
clear_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
1128
rc = lpfc_cmpl_els_flogi_nport(vport, ndlp, sp);
drivers/scsi/lpfc/lpfc_els.c
1130
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11389
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
11402
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
11405
vport->fc_prevDID);
drivers/scsi/lpfc/lpfc_els.c
11411
lpfc_set_disctmo(piocb->vport);
drivers/scsi/lpfc/lpfc_els.c
11414
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
11416
ulp_status, ulp_word4, vport->fc_prevDID);
drivers/scsi/lpfc/lpfc_els.c
11429
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
11440
lpfc_check_nlp_post_devloss(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
11442
clear_bit(FC_VPORT_CVL_RCVD, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11443
clear_bit(FC_VPORT_LOGO_RCVD, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11444
set_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11445
if (vport->phba->fc_topology == LPFC_TOPOLOGY_LOOP)
drivers/scsi/lpfc/lpfc_els.c
11446
set_bit(FC_PUBLIC_LOOP, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11448
vport->fc_myDID = ulp_word4 & Mask_DID;
drivers/scsi/lpfc/lpfc_els.c
11449
lpfc_vport_set_state(vport, FC_VPORT_ACTIVE);
drivers/scsi/lpfc/lpfc_els.c
11457
fabric_param_changed = lpfc_check_clean_addr_bit(vport, sp);
drivers/scsi/lpfc/lpfc_els.c
11458
memcpy(&vport->fabric_portname, &sp->portName,
drivers/scsi/lpfc/lpfc_els.c
11460
memcpy(&vport->fabric_nodename, &sp->nodeName,
drivers/scsi/lpfc/lpfc_els.c
11463
!test_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
11469
&vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_els.c
11474
lpfc_unreg_rpi(vport, np);
drivers/scsi/lpfc/lpfc_els.c
11476
lpfc_cleanup_pending_mbox(vport);
drivers/scsi/lpfc/lpfc_els.c
11479
lpfc_sli4_unreg_all_rpis(vport);
drivers/scsi/lpfc/lpfc_els.c
11481
lpfc_mbx_unreg_vpi(vport);
drivers/scsi/lpfc/lpfc_els.c
11482
set_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11484
set_bit(FC_VPORT_NEEDS_INIT_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11486
set_bit(FC_LOGO_RCVD_DID_CHNG, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11488
!test_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
11493
lpfc_register_new_vport(phba, vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
11494
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_els.c
11498
if (test_bit(FC_VPORT_NEEDS_INIT_VPI, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
11499
lpfc_issue_init_vpi(vport);
drivers/scsi/lpfc/lpfc_els.c
11500
else if (test_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
11501
lpfc_register_new_vport(phba, vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
11503
lpfc_do_scr_ns_plogi(phba, vport);
drivers/scsi/lpfc/lpfc_els.c
11508
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_els.c
11512
if (vport->fc_vport &&
drivers/scsi/lpfc/lpfc_els.c
11513
(vport->fc_vport->vport_state != FC_VPORT_NO_FABRIC_RSCS))
drivers/scsi/lpfc/lpfc_els.c
11514
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
11516
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
11542
lpfc_issue_els_fdisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_els.c
11545
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
11555
vport->port_state = LPFC_FDISC;
drivers/scsi/lpfc/lpfc_els.c
11556
vport->fc_myDID = 0;
drivers/scsi/lpfc/lpfc_els.c
11558
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did,
drivers/scsi/lpfc/lpfc_els.c
11561
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
11562
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11582
memcpy(pcmd, &vport->phba->pport->fc_sparam, sizeof(struct serv_parm));
drivers/scsi/lpfc/lpfc_els.c
11603
memcpy(pcmd, &vport->fc_portname, 8);
drivers/scsi/lpfc/lpfc_els.c
11606
memcpy(pcmd, &vport->fc_nodename, 8);
drivers/scsi/lpfc/lpfc_els.c
11609
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
11614
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
11628
lpfc_vport_set_state(vport, FC_VPORT_INITIALIZING);
drivers/scsi/lpfc/lpfc_els.c
11633
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
11634
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
11657
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
1166
lpfc_printf_vlog(vport, KERN_INFO, LOG_FIP |
drivers/scsi/lpfc/lpfc_els.c
11676
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
11681
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
11685
tmo, vport->num_disc_nodes,
drivers/scsi/lpfc/lpfc_els.c
11690
clear_bit(FC_NDISC_ACTIVE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11691
clear_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
11692
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
11725
lpfc_issue_els_npiv_logo(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_els.c
11728
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
11734
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, 0, ndlp, ndlp->nlp_DID,
drivers/scsi/lpfc/lpfc_els.c
11744
*((uint32_t *) (pcmd)) = be32_to_cpu(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
11746
memcpy(pcmd, &vport->fc_portname, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
11748
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
1179
} else if (vport->port_state > LPFC_FLOGI &&
drivers/scsi/lpfc/lpfc_els.c
1180
test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
11837
lpfc_debugfs_disc_trc(iocb->vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
11839
iocb->vport->port_state, 0, 0);
drivers/scsi/lpfc/lpfc_els.c
1195
if (!lpfc_error_lost_link(vport, ulp_status, ulp_word4)) {
drivers/scsi/lpfc/lpfc_els.c
1197
lpfc_disc_list_loopmap(vport);
drivers/scsi/lpfc/lpfc_els.c
1200
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_els.c
12002
lpfc_debugfs_disc_trc(iocb->vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
12004
iocb->vport->port_state, 0, 0);
drivers/scsi/lpfc/lpfc_els.c
12034
static void lpfc_fabric_abort_vport(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
12037
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
12044
if (piocb->vport != vport)
drivers/scsi/lpfc/lpfc_els.c
1208
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_els.c
12126
lpfc_sli4_vport_delete_els_xri_aborted(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
12128
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
12136
if (sglq_entry->ndlp && sglq_entry->ndlp->vport == vport) {
drivers/scsi/lpfc/lpfc_els.c
12145
if (test_bit(FC_UNLOADING, &vport->load_flag) &&
drivers/scsi/lpfc/lpfc_els.c
12237
lpfc_sli_abts_recover_port(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_els.c
12244
shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
12245
phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
12257
vport->vpi, ndlp->nlp_rpi, ndlp->nlp_state,
drivers/scsi/lpfc/lpfc_els.c
12267
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
12270
static void lpfc_init_cs_ctl_bitmap(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
12272
bitmap_zero(vport->vmid_priority_range, LPFC_VMID_MAX_PRIORITY_RANGE);
drivers/scsi/lpfc/lpfc_els.c
12276
lpfc_vmid_set_cs_ctl_range(struct lpfc_vport *vport, u32 min, u32 max)
drivers/scsi/lpfc/lpfc_els.c
12284
set_bit(i, vport->vmid_priority_range);
drivers/scsi/lpfc/lpfc_els.c
12287
static void lpfc_vmid_put_cs_ctl(struct lpfc_vport *vport, u32 ctcl_vmid)
drivers/scsi/lpfc/lpfc_els.c
12289
set_bit(ctcl_vmid, vport->vmid_priority_range);
drivers/scsi/lpfc/lpfc_els.c
12292
u32 lpfc_vmid_get_cs_ctl(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
12296
i = find_first_bit(vport->vmid_priority_range,
drivers/scsi/lpfc/lpfc_els.c
123
set_bit(FC_ABORT_DISCOVERY, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
12302
clear_bit(i, vport->vmid_priority_range);
drivers/scsi/lpfc/lpfc_els.c
12312
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
12331
lpfc_printf_vlog(vport, KERN_WARNING, LOG_SLI,
drivers/scsi/lpfc/lpfc_els.c
12337
lpfc_printf_vlog(vport, KERN_ERR, LOG_SLI,
drivers/scsi/lpfc/lpfc_els.c
12343
if (!vport->qfpa_res) {
drivers/scsi/lpfc/lpfc_els.c
12344
max_desc = FCELSSIZE / sizeof(*vport->qfpa_res);
drivers/scsi/lpfc/lpfc_els.c
12345
vport->qfpa_res = kzalloc_objs(*vport->qfpa_res, max_desc);
drivers/scsi/lpfc/lpfc_els.c
12346
if (!vport->qfpa_res)
drivers/scsi/lpfc/lpfc_els.c
12352
memcpy(vport->qfpa_res, pcmd, len + 8);
drivers/scsi/lpfc/lpfc_els.c
12356
vmid_range = vport->vmid_priority.vmid_range;
drivers/scsi/lpfc/lpfc_els.c
12360
kfree(vport->qfpa_res);
drivers/scsi/lpfc/lpfc_els.c
12363
vport->vmid_priority.vmid_range = vmid_range;
drivers/scsi/lpfc/lpfc_els.c
12365
vport->vmid_priority.num_descriptors = len;
drivers/scsi/lpfc/lpfc_els.c
12368
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
12378
vport->vmid_flag |= LPFC_VMID_QOS_ENABLED;
drivers/scsi/lpfc/lpfc_els.c
12386
lpfc_init_cs_ctl_bitmap(vport);
drivers/scsi/lpfc/lpfc_els.c
12387
for (i = 0; i < vport->vmid_priority.num_descriptors; i++) {
drivers/scsi/lpfc/lpfc_els.c
12388
lpfc_vmid_set_cs_ctl_range(vport,
drivers/scsi/lpfc/lpfc_els.c
12389
vport->vmid_priority.vmid_range[i].low,
drivers/scsi/lpfc/lpfc_els.c
12390
vport->vmid_priority.vmid_range[i].high);
drivers/scsi/lpfc/lpfc_els.c
12393
vport->vmid_flag |= LPFC_VMID_QFPA_CMPL;
drivers/scsi/lpfc/lpfc_els.c
12399
int lpfc_issue_els_qfpa(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
12401
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
12411
elsiocb = lpfc_prep_els_iocb(vport, 1, LPFC_QFPA_SIZE, 2, ndlp,
drivers/scsi/lpfc/lpfc_els.c
12425
lpfc_els_free_iocb(vport->phba, elsiocb);
drivers/scsi/lpfc/lpfc_els.c
12435
vport->vmid_flag &= ~LPFC_VMID_QOS_ENABLED;
drivers/scsi/lpfc/lpfc_els.c
12440
lpfc_vmid_uvem(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_els.c
12452
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_els.c
12459
elsiocb = lpfc_prep_els_iocb(vport, 1, LPFC_UVEM_SIZE, 2,
drivers/scsi/lpfc/lpfc_els.c
12464
lpfc_printf_vlog(vport, KERN_DEBUG, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
12473
if (!memchr_inv(vport->lpfc_vmid_host_uuid, 0,
drivers/scsi/lpfc/lpfc_els.c
12474
sizeof(vport->lpfc_vmid_host_uuid)))
drivers/scsi/lpfc/lpfc_els.c
12475
memcpy(vport->lpfc_vmid_host_uuid, vmid->host_vmid,
drivers/scsi/lpfc/lpfc_els.c
12476
sizeof(vport->lpfc_vmid_host_uuid));
drivers/scsi/lpfc/lpfc_els.c
12485
memcpy(vem_id_desc->vem_id, vport->lpfc_vmid_host_uuid,
drivers/scsi/lpfc/lpfc_els.c
12494
bf_set(lpfc_instantiated_nport_id, inst_desc, vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
12501
lpfc_vmid_put_cs_ctl(vport, vmid->un.cs_ctl_vmid);
drivers/scsi/lpfc/lpfc_els.c
12509
lpfc_els_free_iocb(vport->phba, elsiocb);
drivers/scsi/lpfc/lpfc_els.c
12513
ret = lpfc_sli_issue_iocb(vport->phba, LPFC_ELS_RING, elsiocb, 0);
drivers/scsi/lpfc/lpfc_els.c
12515
lpfc_els_free_iocb(vport->phba, elsiocb);
drivers/scsi/lpfc/lpfc_els.c
12530
struct lpfc_vport *vport = icmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
12552
lpfc_printf_vlog(vport, KERN_WARNING, LOG_SLI,
drivers/scsi/lpfc/lpfc_els.c
12557
lpfc_printf_vlog(vport, KERN_WARNING, LOG_SLI,
drivers/scsi/lpfc/lpfc_els.c
12564
vport->vmid_flag |= LPFC_VMID_IN_USE;
drivers/scsi/lpfc/lpfc_els.c
12569
write_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_els.c
12572
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_els.c
126
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_els.c
1275
lpfc_issue_els_flogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_els.c
1278
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
1303
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
1307
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
1308
lpfc_printf_vlog(vport, KERN_WARNING, LOG_ELS | LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
1320
memcpy(pcmd, &vport->fc_sparam, sizeof(struct serv_parm));
drivers/scsi/lpfc/lpfc_els.c
1337
if (!memchr_inv(vport->lpfc_vmid_host_uuid, 0,
drivers/scsi/lpfc/lpfc_els.c
1338
sizeof(vport->lpfc_vmid_host_uuid))) {
drivers/scsi/lpfc/lpfc_els.c
1339
memcpy(vport->lpfc_vmid_host_uuid, phba->wwpn,
drivers/scsi/lpfc/lpfc_els.c
1341
memcpy(&vport->lpfc_vmid_host_uuid[8], phba->wwnn,
drivers/scsi/lpfc/lpfc_els.c
1390
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
1396
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
1422
ndlp = lpfc_findnode_did(vport, 0);
drivers/scsi/lpfc/lpfc_els.c
1426
did = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_els.c
1427
vport->fc_myDID = Fabric_DID;
drivers/scsi/lpfc/lpfc_els.c
1453
lpfc_els_rsp_acc(vport, ELS_CMD_FLOGI, &defer_flogi_acc,
drivers/scsi/lpfc/lpfc_els.c
1466
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
1474
vport->fc_myDID = did;
drivers/scsi/lpfc/lpfc_els.c
1481
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
1482
lpfc_printf_vlog(vport, KERN_WARNING, LOG_ELS | LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
1563
lpfc_initial_flogi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
1567
vport->port_state = LPFC_FLOGI;
drivers/scsi/lpfc/lpfc_els.c
1568
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
1571
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_els.c
1574
ndlp = lpfc_nlp_init(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_els.c
1581
lpfc_enqueue_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
1585
clear_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
1586
if (lpfc_issue_els_flogi(vport, ndlp, 0)) {
drivers/scsi/lpfc/lpfc_els.c
1616
lpfc_initial_fdisc(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
1621
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_els.c
1624
ndlp = lpfc_nlp_init(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_els.c
1632
lpfc_enqueue_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
1635
if (lpfc_issue_els_fdisc(vport, ndlp, 0)) {
drivers/scsi/lpfc/lpfc_els.c
1660
lpfc_more_plogi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
1662
if (vport->num_disc_nodes)
drivers/scsi/lpfc/lpfc_els.c
1663
vport->num_disc_nodes--;
drivers/scsi/lpfc/lpfc_els.c
1666
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
1669
vport->num_disc_nodes,
drivers/scsi/lpfc/lpfc_els.c
1670
atomic_read(&vport->fc_plogi_cnt),
drivers/scsi/lpfc/lpfc_els.c
1671
vport->fc_flag, vport->port_state);
drivers/scsi/lpfc/lpfc_els.c
1673
if (test_bit(FC_NLP_MORE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
1675
lpfc_els_disc_plogi(vport);
drivers/scsi/lpfc/lpfc_els.c
169
lpfc_prep_els_iocb(struct lpfc_vport *vport, u8 expect_rsp,
drivers/scsi/lpfc/lpfc_els.c
1715
struct lpfc_vport *vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_els.c
1733
new_ndlp = lpfc_findnode_wwpn(vport, &sp->portName);
drivers/scsi/lpfc/lpfc_els.c
174
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
1747
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS | LOG_NODE,
drivers/scsi/lpfc/lpfc_els.c
1764
new_ndlp = lpfc_nlp_init(vport, ndlp->nlp_DID);
drivers/scsi/lpfc/lpfc_els.c
1782
lpfc_nlp_unreg_node(vport, new_ndlp);
drivers/scsi/lpfc/lpfc_els.c
1792
if (test_bit(FC_FABRIC, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
1797
lpfc_unreg_rpi(vport, new_ndlp);
drivers/scsi/lpfc/lpfc_els.c
1861
lpfc_nlp_set_state(vport, new_ndlp, ndlp->nlp_state);
drivers/scsi/lpfc/lpfc_els.c
1873
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
1883
lpfc_nlp_set_state(vport, ndlp, keep_nlp_state);
drivers/scsi/lpfc/lpfc_els.c
1891
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
1895
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
1915
lpfc_nlp_set_state(vport, ndlp, keep_nlp_state);
drivers/scsi/lpfc/lpfc_els.c
1924
lpfc_disc_state_machine(vport, ndlp, NULL, NLP_EVT_DEVICE_RM);
drivers/scsi/lpfc/lpfc_els.c
1931
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS | LOG_NODE,
drivers/scsi/lpfc/lpfc_els.c
1951
lpfc_end_rscn(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
1954
if (test_bit(FC_RSCN_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
1959
if (vport->fc_rscn_id_cnt ||
drivers/scsi/lpfc/lpfc_els.c
1960
test_bit(FC_RSCN_DISCOVERY, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
1961
lpfc_els_handle_rscn(vport);
drivers/scsi/lpfc/lpfc_els.c
1963
clear_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
1983
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
1993
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
2000
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
2013
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
2044
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
2068
lpfc_printf_vlog(vport, KERN_INFO, LOG_ENCRYPTION,
drivers/scsi/lpfc/lpfc_els.c
2101
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
2124
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
2128
ndlp = lpfc_findnode_did(vport, did);
drivers/scsi/lpfc/lpfc_els.c
2130
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
2143
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
2149
disc, vport->num_disc_nodes);
drivers/scsi/lpfc/lpfc_els.c
2152
if (lpfc_els_chk_latt(vport)) {
drivers/scsi/lpfc/lpfc_els.c
2170
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
2177
if (!lpfc_error_lost_link(vport, ulp_status, ulp_word4))
drivers/scsi/lpfc/lpfc_els.c
2178
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
2204
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
2234
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
2238
if (disc && vport->num_disc_nodes) {
drivers/scsi/lpfc/lpfc_els.c
2240
lpfc_more_plogi(vport);
drivers/scsi/lpfc/lpfc_els.c
2242
if (vport->num_disc_nodes == 0) {
drivers/scsi/lpfc/lpfc_els.c
2243
clear_bit(FC_NDISC_ACTIVE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
2245
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
2246
lpfc_end_rscn(vport);
drivers/scsi/lpfc/lpfc_els.c
2251
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE,
drivers/scsi/lpfc/lpfc_els.c
2285
lpfc_issue_els_plogi(struct lpfc_vport *vport, uint32_t did, uint8_t retry)
drivers/scsi/lpfc/lpfc_els.c
2287
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
2295
ndlp = lpfc_findnode_did(vport, did);
drivers/scsi/lpfc/lpfc_els.c
2306
!test_bit(FC_OFFLINE_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
2307
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
2321
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did,
drivers/scsi/lpfc/lpfc_els.c
2331
memcpy(pcmd, &vport->fc_sparam, sizeof(struct serv_parm));
drivers/scsi/lpfc/lpfc_els.c
2338
if (test_bit(FC_FABRIC, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_els.c
2339
!test_bit(FC_PUBLIC_LOOP, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
2350
if (!test_bit(FC_PT2PT, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
2355
if (vport->vmid_priority_tagging)
drivers/scsi/lpfc/lpfc_els.c
2361
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
2377
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
2413
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
2432
vport->fc_prli_sent--;
drivers/scsi/lpfc/lpfc_els.c
2436
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
2442
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
2446
vport->num_disc_nodes, ndlp->fc4_prli_sent,
drivers/scsi/lpfc/lpfc_els.c
2450
if (lpfc_els_chk_latt(vport))
drivers/scsi/lpfc/lpfc_els.c
2463
if (test_bit(FC_FABRIC, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_els.c
2464
vport->cfg_enable_fc4_type != LPFC_ENABLE_BOTH)
drivers/scsi/lpfc/lpfc_els.c
2470
lpfc_vlog_msg(vport, mode, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
2478
if (!lpfc_error_lost_link(vport, ulp_status, ulp_word4))
drivers/scsi/lpfc/lpfc_els.c
2479
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
2490
lpfc_printf_vlog(vport, KERN_ERR, LOG_NODE,
drivers/scsi/lpfc/lpfc_els.c
2502
if (test_bit(FC_PT2PT, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
2520
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
2528
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
2559
lpfc_issue_els_prli(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_els.c
2563
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
2578
test_bit(FC_RSCN_MODE, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_els.c
2579
vport->nvmei_support)
drivers/scsi/lpfc/lpfc_els.c
2603
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
2614
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
2617
lpfc_disc_state_machine(vport, ndlp, NULL, NLP_EVT_DEVICE_RM);
drivers/scsi/lpfc/lpfc_els.c
2621
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
2654
vport->cfg_first_burst_size)
drivers/scsi/lpfc/lpfc_els.c
2703
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
271
lpfc_sli_prep_els_req_rsp(phba, elsiocb, vport, bmp, cmd_size, did,
drivers/scsi/lpfc/lpfc_els.c
2725
vport->fc_prli_sent++;
drivers/scsi/lpfc/lpfc_els.c
2752
lpfc_rscn_disc(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
2754
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
2758
if (atomic_read(&vport->fc_npr_cnt))
drivers/scsi/lpfc/lpfc_els.c
2759
if (lpfc_els_disc_plogi(vport))
drivers/scsi/lpfc/lpfc_els.c
2762
lpfc_end_rscn(vport);
drivers/scsi/lpfc/lpfc_els.c
2776
lpfc_adisc_done(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
2778
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
2785
!test_bit(FC_RSCN_MODE, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_els.c
2803
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_els.c
2804
lpfc_issue_reg_vpi(phba, vport);
drivers/scsi/lpfc/lpfc_els.c
2811
if (vport->port_state < LPFC_VPORT_READY) {
drivers/scsi/lpfc/lpfc_els.c
2813
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_els.c
2814
if (!test_bit(FC_ABORT_DISCOVERY, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
2815
vport->num_disc_nodes = 0;
drivers/scsi/lpfc/lpfc_els.c
2817
if (atomic_read(&vport->fc_npr_cnt))
drivers/scsi/lpfc/lpfc_els.c
2818
lpfc_els_disc_plogi(vport);
drivers/scsi/lpfc/lpfc_els.c
2819
if (!vport->num_disc_nodes) {
drivers/scsi/lpfc/lpfc_els.c
2820
clear_bit(FC_NDISC_ACTIVE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
2821
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
2822
lpfc_end_rscn(vport);
drivers/scsi/lpfc/lpfc_els.c
2825
vport->port_state = LPFC_VPORT_READY;
drivers/scsi/lpfc/lpfc_els.c
2827
lpfc_rscn_disc(vport);
drivers/scsi/lpfc/lpfc_els.c
2840
lpfc_more_adisc(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
2842
if (vport->num_disc_nodes)
drivers/scsi/lpfc/lpfc_els.c
2843
vport->num_disc_nodes--;
drivers/scsi/lpfc/lpfc_els.c
2845
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
2848
vport->num_disc_nodes,
drivers/scsi/lpfc/lpfc_els.c
2849
atomic_read(&vport->fc_adisc_cnt),
drivers/scsi/lpfc/lpfc_els.c
2850
vport->fc_flag, vport->port_state);
drivers/scsi/lpfc/lpfc_els.c
2852
if (test_bit(FC_NLP_MORE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
2853
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
2855
lpfc_els_disc_adisc(vport);
drivers/scsi/lpfc/lpfc_els.c
2857
if (!vport->num_disc_nodes)
drivers/scsi/lpfc/lpfc_els.c
2858
lpfc_adisc_done(vport);
drivers/scsi/lpfc/lpfc_els.c
2882
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
2906
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
291
elsiocb->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
2917
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
2922
tmo, disc, vport->num_disc_nodes);
drivers/scsi/lpfc/lpfc_els.c
2925
if (lpfc_els_chk_latt(vport)) {
drivers/scsi/lpfc/lpfc_els.c
2936
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
2941
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
2945
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
2961
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
2965
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
2969
if (disc && vport->num_disc_nodes)
drivers/scsi/lpfc/lpfc_els.c
2970
lpfc_more_adisc(vport);
drivers/scsi/lpfc/lpfc_els.c
298
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
2997
lpfc_issue_els_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_els.c
3001
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
3008
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
3022
memcpy(&ap->portName, &vport->fc_portname, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
3023
memcpy(&ap->nodeName, &vport->fc_nodename, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
3024
ap->DID = be32_to_cpu(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
303
vport->port_state, ndlp->nlp_rpi,
drivers/scsi/lpfc/lpfc_els.c
3035
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
304
vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
3069
struct lpfc_vport *vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_els.c
307
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
3096
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
3102
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
3109
tmo, vport->num_disc_nodes);
drivers/scsi/lpfc/lpfc_els.c
3111
if (lpfc_els_chk_latt(vport)) {
drivers/scsi/lpfc/lpfc_els.c
312
cmd_size, vport->port_state,
drivers/scsi/lpfc/lpfc_els.c
3123
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
313
ndlp->nlp_rpi, vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
3130
if (lpfc_error_lost_link(vport, ulp_status, ulp_word4))
drivers/scsi/lpfc/lpfc_els.c
3135
lpfc_disc_state_machine(vport, ndlp, cmdiocb, NLP_EVT_CMPL_LOGO);
drivers/scsi/lpfc/lpfc_els.c
3153
lpfc_cancel_retry_delay_tmo(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
3156
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
3161
vport->num_disc_nodes);
drivers/scsi/lpfc/lpfc_els.c
3166
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_els.c
3177
lpfc_disc_state_machine(vport, ndlp, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
3208
lpfc_issue_els_logo(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_els.c
3211
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
3221
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
3231
*((uint32_t *) (pcmd)) = be32_to_cpu(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
3233
memcpy(pcmd, &vport->fc_portname, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
3245
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
3259
lpfc_nlp_set_state(vport, ndlp, NLP_STE_LOGO_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
3286
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
3304
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
3309
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
3314
lpfc_els_chk_latt(vport);
drivers/scsi/lpfc/lpfc_els.c
3337
lpfc_reg_fab_ctrl_node(struct lpfc_vport *vport, struct lpfc_nodelist *fc_ndlp)
drivers/scsi/lpfc/lpfc_els.c
3340
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
3347
ns_ndlp = lpfc_findnode_did(vport, NameServer_DID);
drivers/scsi/lpfc/lpfc_els.c
3351
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_els.c
3360
lpfc_printf_vlog(vport, KERN_ERR, LOG_NODE,
drivers/scsi/lpfc/lpfc_els.c
3367
rc = lpfc_reg_rpi(phba, vport->vpi, fc_ndlp->nlp_DID,
drivers/scsi/lpfc/lpfc_els.c
3382
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
3390
lpfc_nlp_set_state(vport, fc_ndlp,
drivers/scsi/lpfc/lpfc_els.c
3396
lpfc_printf_vlog(vport, KERN_ERR, LOG_NODE,
drivers/scsi/lpfc/lpfc_els.c
3420
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
3442
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
3447
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS | LOG_CGN_MGMT,
drivers/scsi/lpfc/lpfc_els.c
3468
lpfc_issue_els_scr(vport, cmdiocb->retry);
drivers/scsi/lpfc/lpfc_els.c
3471
lpfc_issue_els_edc(vport, cmdiocb->retry);
drivers/scsi/lpfc/lpfc_els.c
3474
lpfc_issue_els_rdf(vport, cmdiocb->retry);
drivers/scsi/lpfc/lpfc_els.c
3489
lpfc_printf_vlog(vport, KERN_WARNING, LOG_ELS | LOG_CGN_MGMT,
drivers/scsi/lpfc/lpfc_els.c
350
lpfc_issue_fabric_reglogin(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
352
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
3522
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_els.c
3534
lpfc_els_chk_latt(vport);
drivers/scsi/lpfc/lpfc_els.c
3561
lpfc_issue_els_scr(struct lpfc_vport *vport, uint8_t retry)
drivers/scsi/lpfc/lpfc_els.c
3564
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
3573
ndlp = lpfc_findnode_did(vport, Fabric_Cntl_DID);
drivers/scsi/lpfc/lpfc_els.c
3575
ndlp = lpfc_nlp_init(vport, Fabric_Cntl_DID);
drivers/scsi/lpfc/lpfc_els.c
3578
lpfc_enqueue_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
3582
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
3588
rc = lpfc_reg_fab_ctrl_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
3590
lpfc_printf_vlog(vport, KERN_ERR, LOG_NODE,
drivers/scsi/lpfc/lpfc_els.c
360
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_els.c
3605
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
3615
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
3655
lpfc_issue_els_rscn(struct lpfc_vport *vport, uint8_t retry)
drivers/scsi/lpfc/lpfc_els.c
3658
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
3670
!test_bit(FC_PUBLIC_LOOP, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
3673
if (test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
3675
ndlp = lpfc_findnode_mapped(vport);
drivers/scsi/lpfc/lpfc_els.c
3681
ndlp = lpfc_findnode_did(vport, nportid);
drivers/scsi/lpfc/lpfc_els.c
3684
ndlp = lpfc_nlp_init(vport, nportid);
drivers/scsi/lpfc/lpfc_els.c
3687
lpfc_enqueue_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
3691
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
3703
nportid = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_els.c
3718
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
372
vport->port_state = LPFC_FABRIC_CFG_LINK;
drivers/scsi/lpfc/lpfc_els.c
375
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
3754
lpfc_issue_els_farpr(struct lpfc_vport *vport, uint32_t nportid, uint8_t retry)
drivers/scsi/lpfc/lpfc_els.c
3757
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
3768
ndlp = lpfc_findnode_did(vport, nportid);
drivers/scsi/lpfc/lpfc_els.c
3770
ndlp = lpfc_nlp_init(vport, nportid);
drivers/scsi/lpfc/lpfc_els.c
3773
lpfc_enqueue_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
3776
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
3791
*lp++ = be32_to_cpu(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
3795
memcpy(&fp->RportName, &vport->fc_portname, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
3796
memcpy(&fp->RnodeName, &vport->fc_nodename, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
3797
ondlp = lpfc_findnode_did(vport, nportid);
drivers/scsi/lpfc/lpfc_els.c
3805
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
3853
lpfc_issue_els_rdf(struct lpfc_vport *vport, uint8_t retry)
drivers/scsi/lpfc/lpfc_els.c
3855
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
3867
if (vport->port_type == LPFC_NPIV_PORT)
drivers/scsi/lpfc/lpfc_els.c
3870
ndlp = lpfc_findnode_did(vport, Fabric_Cntl_DID);
drivers/scsi/lpfc/lpfc_els.c
3872
ndlp = lpfc_nlp_init(vport, Fabric_Cntl_DID);
drivers/scsi/lpfc/lpfc_els.c
3875
lpfc_enqueue_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
3879
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
388
rc = lpfc_reg_rpi(phba, vport->vpi, Fabric_DID, (uint8_t *)sp, mbox,
drivers/scsi/lpfc/lpfc_els.c
3901
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS | LOG_CGN_MGMT,
drivers/scsi/lpfc/lpfc_els.c
3914
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
3950
lpfc_els_rcv_rdf(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
3955
rc = lpfc_els_rsp_acc(vport, ELS_CMD_RDF, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
3958
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS | LOG_CGN_MGMT,
drivers/scsi/lpfc/lpfc_els.c
396
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
3960
ndlp->nlp_DID, vport->fc_myDID, rc);
drivers/scsi/lpfc/lpfc_els.c
3964
rc = lpfc_issue_els_rdf(vport, 0);
drivers/scsi/lpfc/lpfc_els.c
3967
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS | LOG_CGN_MGMT,
drivers/scsi/lpfc/lpfc_els.c
3969
vport->fc_myDID, rc);
drivers/scsi/lpfc/lpfc_els.c
422
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
423
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
4379
lpfc_issue_els_edc(struct lpfc_vport *vport, uint8_t retry)
drivers/scsi/lpfc/lpfc_els.c
4381
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
4391
if (vport->port_type == LPFC_NPIV_PORT)
drivers/scsi/lpfc/lpfc_els.c
4394
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_els.c
4409
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
441
lpfc_issue_reg_vfi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
443
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
4431
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS | LOG_CGN_MGMT,
drivers/scsi/lpfc/lpfc_els.c
4444
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
4461
rc = lpfc_issue_els_rdf(vport, 0);
drivers/scsi/lpfc/lpfc_els.c
4478
lpfc_cancel_retry_delay_tmo(struct lpfc_vport *vport, struct lpfc_nodelist *nlp)
drivers/scsi/lpfc/lpfc_els.c
4493
if (vport->num_disc_nodes) {
drivers/scsi/lpfc/lpfc_els.c
4494
if (vport->port_state < LPFC_VPORT_READY) {
drivers/scsi/lpfc/lpfc_els.c
4496
lpfc_more_adisc(vport);
drivers/scsi/lpfc/lpfc_els.c
4499
lpfc_more_plogi(vport);
drivers/scsi/lpfc/lpfc_els.c
4500
if (vport->num_disc_nodes == 0) {
drivers/scsi/lpfc/lpfc_els.c
4502
&vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
4503
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
4504
lpfc_end_rscn(vport);
drivers/scsi/lpfc/lpfc_els.c
452
!test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
453
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_els.c
4531
struct lpfc_vport *vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_els.c
4532
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
4567
struct lpfc_vport *vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_els.c
4589
lpfc_issue_els_flogi(vport, ndlp, retry);
drivers/scsi/lpfc/lpfc_els.c
4592
if (!lpfc_issue_els_plogi(vport, ndlp->nlp_DID, retry)) {
drivers/scsi/lpfc/lpfc_els.c
4594
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
4598
if (!lpfc_issue_els_adisc(vport, ndlp, retry)) {
drivers/scsi/lpfc/lpfc_els.c
4600
lpfc_nlp_set_state(vport, ndlp, NLP_STE_ADISC_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
4605
if (!lpfc_issue_els_prli(vport, ndlp, retry)) {
drivers/scsi/lpfc/lpfc_els.c
4607
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PRLI_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
4611
if (!lpfc_issue_els_logo(vport, ndlp, retry)) {
drivers/scsi/lpfc/lpfc_els.c
4613
lpfc_nlp_set_state(vport, ndlp, NLP_STE_LOGO_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
4617
if (!test_bit(FC_VPORT_NEEDS_INIT_VPI, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
4618
lpfc_issue_els_fdisc(vport, ndlp, retry);
drivers/scsi/lpfc/lpfc_els.c
4637
lpfc_link_reset(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
4639
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
4644
lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
4667
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
467
if (test_bit(FC_FABRIC, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_els.c
468
test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
4705
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
4735
ndlp = lpfc_findnode_did(vport, did);
drivers/scsi/lpfc/lpfc_els.c
4740
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
4766
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
479
vport->port_state = LPFC_FABRIC_CFG_LINK;
drivers/scsi/lpfc/lpfc_els.c
481
lpfc_reg_vfi(mboxq, vport, dmabuf->phys);
drivers/scsi/lpfc/lpfc_els.c
485
lpfc_reg_vfi(mboxq, vport, 0);
drivers/scsi/lpfc/lpfc_els.c
4856
if (test_bit(FC_PT2PT, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_els.c
4863
lpfc_printf_vlog(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
4869
set_bit(FC_PT2PT_NO_NVME, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
4883
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_els.c
489
mboxq->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
4924
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
4928
lpfc_vport_set_state(vport,
drivers/scsi/lpfc/lpfc_els.c
4972
vport->fc_sparam.cmn.bbRcvSizeMsb &= 0xf;
drivers/scsi/lpfc/lpfc_els.c
4974
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
500
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_els.c
5001
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
5005
lpfc_vport_set_state(vport,
drivers/scsi/lpfc/lpfc_els.c
501
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
5039
rc = lpfc_link_reset(vport);
drivers/scsi/lpfc/lpfc_els.c
5056
!lpfc_error_lost_link(vport, ulp_status, ulp_word4)) {
drivers/scsi/lpfc/lpfc_els.c
5070
!lpfc_error_lost_link(vport, ulp_status, ulp_word4)) {
drivers/scsi/lpfc/lpfc_els.c
5073
maxretry = vport->cfg_devloss_tmo;
drivers/scsi/lpfc/lpfc_els.c
5083
if (test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_els.c
5091
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
5101
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
5113
if (timer_pending(&vport->fc_disctmo) ||
drivers/scsi/lpfc/lpfc_els.c
5114
test_bit(FC_RSCN_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
5115
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
5131
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_els.c
5134
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_els.c
5142
lpfc_issue_els_flogi(vport, ndlp, cmdiocb->retry);
drivers/scsi/lpfc/lpfc_els.c
5145
lpfc_issue_els_fdisc(vport, ndlp, cmdiocb->retry);
drivers/scsi/lpfc/lpfc_els.c
5150
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_els.c
5153
lpfc_issue_els_plogi(vport, did, cmdiocb->retry);
drivers/scsi/lpfc/lpfc_els.c
5157
lpfc_nlp_set_state(vport, ndlp, NLP_STE_ADISC_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
5158
lpfc_issue_els_adisc(vport, ndlp, cmdiocb->retry);
drivers/scsi/lpfc/lpfc_els.c
5163
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PRLI_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
5164
lpfc_issue_els_prli(vport, ndlp, cmdiocb->retry);
drivers/scsi/lpfc/lpfc_els.c
5168
lpfc_nlp_set_state(vport, ndlp, NLP_STE_LOGO_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
5169
lpfc_issue_els_logo(vport, ndlp, cmdiocb->retry);
drivers/scsi/lpfc/lpfc_els.c
5175
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
518
lpfc_issue_unreg_vfi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
5183
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
520
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
532
lpfc_unreg_vfi(mboxq, vport);
drivers/scsi/lpfc/lpfc_els.c
533
mboxq->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
5339
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
5345
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
5349
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
5367
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
5375
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
5376
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_els.c
54
static void lpfc_fabric_abort_vport(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_els.c
5409
lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_els.c
5425
lpfc_drop_node(ndlp->vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
5449
struct lpfc_vport *vport = ndlp ? ndlp->vport : NULL;
drivers/scsi/lpfc/lpfc_els.c
5450
struct Scsi_Host *shost = vport ? lpfc_shost_from_vport(vport) : NULL;
drivers/scsi/lpfc/lpfc_els.c
5456
if (!vport) {
drivers/scsi/lpfc/lpfc_els.c
546
clear_bit(FC_VFI_REGISTERED, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
5478
if (!ndlp || lpfc_els_chk_latt(vport)) {
drivers/scsi/lpfc/lpfc_els.c
5487
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
5491
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
5494
iotag, vport->fc_flag, ulp_status, ulp_word4, tmo,
drivers/scsi/lpfc/lpfc_els.c
5497
if (mbox && !test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
55
static int lpfc_issue_els_fdisc(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_els.c
5500
if (!lpfc_unreg_rpi(vport, ndlp) &&
drivers/scsi/lpfc/lpfc_els.c
5501
!test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
5505
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_els.c
5525
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
5532
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_els.c
5548
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
5556
} else if (mbox && test_bit(FC_PT2PT, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_els.c
5572
vport->port_type == LPFC_NPIV_PORT &&
drivers/scsi/lpfc/lpfc_els.c
5584
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
5593
if (test_bit(FC_PT2PT, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_els.c
5595
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_els.c
5600
vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
5641
lpfc_els_rsp_acc(struct lpfc_vport *vport, uint32_t flag,
drivers/scsi/lpfc/lpfc_els.c
5645
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
5661
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
drivers/scsi/lpfc/lpfc_els.c
569
lpfc_check_clean_addr_bit(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_els.c
5691
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
5698
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
drivers/scsi/lpfc/lpfc_els.c
572
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
5745
memcpy(&sp->portName, &vport->fc_sparam.portName,
drivers/scsi/lpfc/lpfc_els.c
5747
memcpy(&sp->nodeName, &vport->fc_sparam.nodeName,
drivers/scsi/lpfc/lpfc_els.c
575
if ((vport->fc_prevDID != vport->fc_myDID) ||
drivers/scsi/lpfc/lpfc_els.c
5750
memcpy(pcmd, &vport->fc_sparam,
drivers/scsi/lpfc/lpfc_els.c
5756
if (!test_bit(FC_PT2PT, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
576
memcmp(&vport->fabric_portname, &sp->portName,
drivers/scsi/lpfc/lpfc_els.c
5770
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
5776
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
drivers/scsi/lpfc/lpfc_els.c
578
memcmp(&vport->fabric_nodename, &sp->nodeName,
drivers/scsi/lpfc/lpfc_els.c
580
(vport->vport_flag & FAWWPN_PARAM_CHG)) {
drivers/scsi/lpfc/lpfc_els.c
5808
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
5814
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry,
drivers/scsi/lpfc/lpfc_els.c
582
vport->vport_flag &= ~FAWWPN_PARAM_CHG;
drivers/scsi/lpfc/lpfc_els.c
5878
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
5884
ndlp->nlp_rpi, vport->fc_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_els.c
5911
lpfc_els_rsp_reject(struct lpfc_vport *vport, uint32_t rejectError,
drivers/scsi/lpfc/lpfc_els.c
5916
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
5925
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
595
(vport->fc_prevDID || phba->cfg_delay_discovery))
drivers/scsi/lpfc/lpfc_els.c
5953
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
596
set_bit(FC_DISC_DELAYED, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
5960
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
5997
lpfc_issue_els_edc_rsp(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
6000
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
6016
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, cmdiocb->retry,
drivers/scsi/lpfc/lpfc_els.c
6051
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
6072
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
6078
ndlp->nlp_rpi, vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
6103
lpfc_els_rsp_adisc_acc(struct lpfc_vport *vport, struct lpfc_iocbq *oldiocb,
drivers/scsi/lpfc/lpfc_els.c
6106
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
6117
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
6141
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
6154
memcpy(&ap->portName, &vport->fc_portname, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
6155
memcpy(&ap->nodeName, &vport->fc_nodename, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
6156
ap->DID = be32_to_cpu(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
6158
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
6200
lpfc_els_rsp_prli_acc(struct lpfc_vport *vport, struct lpfc_iocbq *oldiocb,
drivers/scsi/lpfc/lpfc_els.c
6203
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
6227
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
623
lpfc_cmpl_els_flogi_fabric(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_els.c
6241
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
626
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
6263
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
6304
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_els.c
631
set_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
6334
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_els.c
6345
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
6350
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
6393
lpfc_els_rsp_rnid_acc(struct lpfc_vport *vport, uint8_t format,
drivers/scsi/lpfc/lpfc_els.c
6396
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
641
set_bit(FC_PUBLIC_LOOP, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
6411
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
643
vport->fc_myDID = ulp_word4 & Mask_DID;
drivers/scsi/lpfc/lpfc_els.c
6433
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
6444
memcpy(&rn->portName, &vport->fc_portname, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
6445
memcpy(&rn->nodeName, &vport->fc_nodename, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
6453
&vport->fc_portname, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_els.c
6464
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
6495
lpfc_els_clear_rrq(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_els.c
6498
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
6512
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
6521
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
6524
if (vport->fc_myDID == be32_to_cpu(bf_get(rrq_did, rrq)))
drivers/scsi/lpfc/lpfc_els.c
6528
prrq = lpfc_get_active_rrq(vport, xri, ndlp->nlp_DID);
drivers/scsi/lpfc/lpfc_els.c
6546
lpfc_els_rsp_echo_acc(struct lpfc_vport *vport, uint8_t *data,
drivers/scsi/lpfc/lpfc_els.c
6549
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
656
fabric_param_changed = lpfc_check_clean_addr_bit(vport, sp);
drivers/scsi/lpfc/lpfc_els.c
6568
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
6590
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
6598
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_RSP,
drivers/scsi/lpfc/lpfc_els.c
662
vport->fdmi_hba_mask = LPFC_FDMI2_HBA_ATTR;
drivers/scsi/lpfc/lpfc_els.c
664
vport->fdmi_port_mask = LPFC_FDMI2_SMART_ATTR;
drivers/scsi/lpfc/lpfc_els.c
6640
lpfc_els_disc_adisc(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
6646
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_els.c
666
vport->fdmi_port_mask = LPFC_FDMI2_PORT_ATTR;
drivers/scsi/lpfc/lpfc_els.c
6662
lpfc_nlp_unreg_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
6663
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
6668
lpfc_nlp_set_state(vport, ndlp, NLP_STE_ADISC_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
6669
lpfc_issue_els_adisc(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_els.c
6671
vport->num_disc_nodes++;
drivers/scsi/lpfc/lpfc_els.c
6672
if (vport->num_disc_nodes >=
drivers/scsi/lpfc/lpfc_els.c
6673
vport->cfg_discovery_threads) {
drivers/scsi/lpfc/lpfc_els.c
6674
set_bit(FC_NLP_MORE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
668
vport->fdmi_hba_mask = 0;
drivers/scsi/lpfc/lpfc_els.c
6680
clear_bit(FC_NLP_MORE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
669
vport->fdmi_port_mask = 0;
drivers/scsi/lpfc/lpfc_els.c
67
static void lpfc_init_cs_ctl_bitmap(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_els.c
6704
lpfc_els_disc_plogi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
6710
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_els.c
6716
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
6717
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_els.c
6719
vport->num_disc_nodes++;
drivers/scsi/lpfc/lpfc_els.c
6720
if (vport->num_disc_nodes >=
drivers/scsi/lpfc/lpfc_els.c
6721
vport->cfg_discovery_threads) {
drivers/scsi/lpfc/lpfc_els.c
6722
set_bit(FC_NLP_MORE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
6728
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
673
memcpy(&vport->fabric_portname, &sp->portName,
drivers/scsi/lpfc/lpfc_els.c
6730
sentplogi, vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
6733
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
6735
clear_bit(FC_NLP_MORE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
675
memcpy(&vport->fabric_nodename, &sp->nodeName,
drivers/scsi/lpfc/lpfc_els.c
68
static void lpfc_vmid_set_cs_ctl_range(struct lpfc_vport *vport, u32 min, u32 max);
drivers/scsi/lpfc/lpfc_els.c
681
lpfc_printf_vlog(vport, KERN_WARNING,
drivers/scsi/lpfc/lpfc_els.c
6847
struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
6853
bbCredit = vport->fc_sparam.cmn.bbCreditLsb |
drivers/scsi/lpfc/lpfc_els.c
6854
(vport->fc_sparam.cmn.bbCreditMsb << 8);
drivers/scsi/lpfc/lpfc_els.c
6856
if (vport->phba->fc_topology != LPFC_TOPOLOGY_LOOP) {
drivers/scsi/lpfc/lpfc_els.c
6857
bbCredit = vport->phba->fc_fabparam.cmn.bbCreditLsb |
drivers/scsi/lpfc/lpfc_els.c
6858
(vport->phba->fc_fabparam.cmn.bbCreditMsb << 8);
drivers/scsi/lpfc/lpfc_els.c
69
static void lpfc_vmid_put_cs_ctl(struct lpfc_vport *vport, u32 ctcl_vmid);
drivers/scsi/lpfc/lpfc_els.c
692
lpfc_printf_vlog(vport, KERN_WARNING,
drivers/scsi/lpfc/lpfc_els.c
7017
uint8_t *page_a0, struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
7125
struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
713
if (test_bit(FC_VFI_REGISTERED, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
7130
memcpy(desc->port_names.wwnn, &vport->fc_nodename,
drivers/scsi/lpfc/lpfc_els.c
7133
memcpy(desc->port_names.wwpn, &vport->fc_portname,
drivers/scsi/lpfc/lpfc_els.c
714
lpfc_issue_reg_vfi(vport);
drivers/scsi/lpfc/lpfc_els.c
7142
struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_els.c
7146
if (test_bit(FC_FABRIC, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
7147
memcpy(desc->port_names.wwnn, &vport->fabric_nodename,
drivers/scsi/lpfc/lpfc_els.c
7150
memcpy(desc->port_names.wwpn, &vport->fabric_portname,
drivers/scsi/lpfc/lpfc_els.c
7169
struct lpfc_vport *vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_els.c
718
!test_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
7188
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize,
drivers/scsi/lpfc/lpfc_els.c
7208
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
7237
(len + pcmd), vport);
drivers/scsi/lpfc/lpfc_els.c
7239
(len + pcmd), vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
724
&vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_els.c
7243
&rdp_context->link_stat, vport);
drivers/scsi/lpfc/lpfc_els.c
7260
rdp_context->page_a0, vport);
drivers/scsi/lpfc/lpfc_els.c
7288
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, lpfc_max_els_tries,
drivers/scsi/lpfc/lpfc_els.c
729
lpfc_unreg_rpi(vport, np);
drivers/scsi/lpfc/lpfc_els.c
731
lpfc_cleanup_pending_mbox(vport);
drivers/scsi/lpfc/lpfc_els.c
734
lpfc_sli4_unreg_all_rpis(vport);
drivers/scsi/lpfc/lpfc_els.c
735
lpfc_mbx_unreg_vpi(vport);
drivers/scsi/lpfc/lpfc_els.c
7350
mbox->vport = rdp_context->ndlp->vport;
drivers/scsi/lpfc/lpfc_els.c
736
set_bit(FC_VPORT_NEEDS_INIT_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
7411
mbox->vport = phba->pport;
drivers/scsi/lpfc/lpfc_els.c
743
set_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
7438
mbox->vport = phba->pport;
drivers/scsi/lpfc/lpfc_els.c
745
!test_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
750
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_els.c
751
lpfc_register_new_vport(phba, vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
7515
lpfc_els_rcv_rdp(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
7518
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
7544
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
756
lpfc_nlp_set_state(vport, ndlp, NLP_STE_REG_LOGIN_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
7579
lpfc_printf_vlog(ndlp->vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
758
test_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
759
lpfc_register_new_vport(phba, vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
7596
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
761
lpfc_issue_fabric_reglogin(vport);
drivers/scsi/lpfc/lpfc_els.c
764
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_els.c
765
if ((!test_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag)) &&
drivers/scsi/lpfc/lpfc_els.c
766
(vport->vpi_state & LPFC_VPI_REGISTERED)) {
drivers/scsi/lpfc/lpfc_els.c
768
lpfc_do_scr_ns_plogi(phba, vport);
drivers/scsi/lpfc/lpfc_els.c
769
} else if (test_bit(FC_VFI_REGISTERED, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
770
lpfc_issue_init_vpi(vport);
drivers/scsi/lpfc/lpfc_els.c
772
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
774
vport->fc_prevDID, vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
7740
lpfc_sli4_set_beacon(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_els.c
7744
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
775
lpfc_issue_reg_vfi(vport);
drivers/scsi/lpfc/lpfc_els.c
7761
mbox->vport = phba->pport;
drivers/scsi/lpfc/lpfc_els.c
7826
lpfc_els_rcv_lcb(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
7829
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
7841
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
7885
if (lpfc_sli4_set_beacon(vport, lcb_context, state)) {
drivers/scsi/lpfc/lpfc_els.c
7886
lpfc_printf_vlog(ndlp->vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
7899
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
7914
lpfc_els_flush_rscn(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
7916
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
7917
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
7921
if (vport->fc_rscn_flush) {
drivers/scsi/lpfc/lpfc_els.c
7927
vport->fc_rscn_flush = 1;
drivers/scsi/lpfc/lpfc_els.c
7930
for (i = 0; i < vport->fc_rscn_id_cnt; i++) {
drivers/scsi/lpfc/lpfc_els.c
7931
lpfc_in_buf_free(phba, vport->fc_rscn_id_list[i]);
drivers/scsi/lpfc/lpfc_els.c
7932
vport->fc_rscn_id_list[i] = NULL;
drivers/scsi/lpfc/lpfc_els.c
7934
clear_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
7935
clear_bit(FC_RSCN_DISCOVERY, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
7937
vport->fc_rscn_id_cnt = 0;
drivers/scsi/lpfc/lpfc_els.c
7939
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
7941
vport->fc_rscn_flush = 0;
drivers/scsi/lpfc/lpfc_els.c
7957
lpfc_rscn_payload_check(struct lpfc_vport *vport, uint32_t did)
drivers/scsi/lpfc/lpfc_els.c
7963
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
7972
if (test_bit(FC_RSCN_DISCOVERY, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_els.c
7976
if (vport->fc_rscn_flush) {
drivers/scsi/lpfc/lpfc_els.c
7982
vport->fc_rscn_flush = 1;
drivers/scsi/lpfc/lpfc_els.c
7984
for (i = 0; i < vport->fc_rscn_id_cnt; i++) {
drivers/scsi/lpfc/lpfc_els.c
7985
lp = vport->fc_rscn_id_list[i]->virt;
drivers/scsi/lpfc/lpfc_els.c
8013
vport->fc_rscn_flush = 0;
drivers/scsi/lpfc/lpfc_els.c
8017
vport->fc_rscn_flush = 0;
drivers/scsi/lpfc/lpfc_els.c
802
lpfc_cmpl_els_flogi_nport(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_els.c
8033
lpfc_rscn_recovery_check(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
8038
list_for_each_entry_safe(ndlp, n, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_els.c
8039
if (test_bit(FC_UNLOADING, &vport->load_flag)) {
drivers/scsi/lpfc/lpfc_els.c
8040
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
8047
!lpfc_rscn_payload_check(vport, ndlp->nlp_DID))
drivers/scsi/lpfc/lpfc_els.c
805
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
8051
if (vport->phba->nvmet_support)
drivers/scsi/lpfc/lpfc_els.c
8066
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_els.c
8068
lpfc_cancel_retry_delay_tmo(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
8082
lpfc_send_rscn_event(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_els.c
8086
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
809
clear_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8098
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
810
clear_bit(FC_PUBLIC_LOOP, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
811
set_bit(FC_PT2PT, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8139
lpfc_els_rcv_rscn(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
8142
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
8143
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
8157
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
8159
vport->fc_flag, payload_len, *lp,
drivers/scsi/lpfc/lpfc_els.c
8160
vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_els.c
8163
lpfc_send_rscn_event(vport, cmdiocb);
drivers/scsi/lpfc/lpfc_els.c
8170
if (test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
8172
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
8174
*lp, vport->fc_flag, payload_len);
drivers/scsi/lpfc/lpfc_els.c
8175
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
8182
lpfc_nvme_rescan_port(vport, ndlp);
drivers/scsi/lpfc/lpfc_els.c
8189
if (vport->port_state <= LPFC_NS_QRY) {
drivers/scsi/lpfc/lpfc_els.c
819
clear_bit(FC_VFI_REGISTERED, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8190
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
8192
ndlp->nlp_DID, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
8194
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
8202
!(vport->cfg_peer_port_login)) {
drivers/scsi/lpfc/lpfc_els.c
8215
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
8218
vport->fc_flag, payload_len,
drivers/scsi/lpfc/lpfc_els.c
8219
*lp, vport->fc_rscn_id_cnt);
drivers/scsi/lpfc/lpfc_els.c
8220
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
8222
ndlp->nlp_DID, vport->port_state,
drivers/scsi/lpfc/lpfc_els.c
8225
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
8228
if (test_bit(FC_DISC_TMO, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
823
rc = memcmp(&vport->fc_portname, &sp->portName,
drivers/scsi/lpfc/lpfc_els.c
8230
mod_timer(&vport->fc_disctmo,
drivers/scsi/lpfc/lpfc_els.c
8238
if (vport->fc_rscn_flush) {
drivers/scsi/lpfc/lpfc_els.c
824
sizeof(vport->fc_portname));
drivers/scsi/lpfc/lpfc_els.c
8241
set_bit(FC_RSCN_DISCOVERY, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8243
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
8247
vport->fc_rscn_flush = 1;
drivers/scsi/lpfc/lpfc_els.c
8250
rscn_cnt = vport->fc_rscn_id_cnt;
drivers/scsi/lpfc/lpfc_els.c
8254
if (test_bit(FC_RSCN_MODE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_els.c
8255
test_bit(FC_NDISC_ACTIVE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
8256
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
8258
ndlp->nlp_DID, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
8260
set_bit(FC_RSCN_DEFERRED, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8263
if (test_bit(FC_DISC_TMO, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
8265
mod_timer(&vport->fc_disctmo,
drivers/scsi/lpfc/lpfc_els.c
8269
!test_bit(FC_RSCN_DISCOVERY, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_els.c
8270
set_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8272
cmd = vport->fc_rscn_id_list[rscn_cnt-1]->virt;
drivers/scsi/lpfc/lpfc_els.c
828
set_bit(FC_PT2PT_PLOGI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8282
vport->fc_rscn_id_list[rscn_cnt] = pcmd;
drivers/scsi/lpfc/lpfc_els.c
8283
vport->fc_rscn_id_cnt++;
drivers/scsi/lpfc/lpfc_els.c
8290
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
8293
vport->fc_rscn_id_cnt, vport->fc_flag,
drivers/scsi/lpfc/lpfc_els.c
8294
vport->port_state);
drivers/scsi/lpfc/lpfc_els.c
8296
set_bit(FC_RSCN_DISCOVERY, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8298
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
8301
vport->fc_rscn_id_cnt, vport->fc_flag,
drivers/scsi/lpfc/lpfc_els.c
8302
vport->port_state);
drivers/scsi/lpfc/lpfc_els.c
8305
vport->fc_rscn_flush = 0;
drivers/scsi/lpfc/lpfc_els.c
8307
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
8309
lpfc_rscn_recovery_check(vport);
drivers/scsi/lpfc/lpfc_els.c
8312
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_UNSOL,
drivers/scsi/lpfc/lpfc_els.c
8314
ndlp->nlp_DID, vport->port_state, ndlp->nlp_flag);
drivers/scsi/lpfc/lpfc_els.c
8316
set_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8317
vport->fc_rscn_id_list[vport->fc_rscn_id_cnt++] = pcmd;
drivers/scsi/lpfc/lpfc_els.c
8319
vport->fc_rscn_flush = 0;
drivers/scsi/lpfc/lpfc_els.c
8325
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
8327
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
8329
lpfc_rscn_recovery_check(vport);
drivers/scsi/lpfc/lpfc_els.c
8330
return lpfc_els_handle_rscn(vport);
drivers/scsi/lpfc/lpfc_els.c
8350
lpfc_els_handle_rscn(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
8353
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
8356
if (test_bit(FC_UNLOADING, &vport->load_flag)) {
drivers/scsi/lpfc/lpfc_els.c
8357
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_els.c
8362
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
8365
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_els.c
8367
vport->fc_flag, 0, vport->fc_rscn_id_cnt,
drivers/scsi/lpfc/lpfc_els.c
8368
vport->port_state, vport->num_disc_nodes,
drivers/scsi/lpfc/lpfc_els.c
8369
vport->gidft_inp);
drivers/scsi/lpfc/lpfc_els.c
837
vport->fc_myDID = PT2PT_LocalID;
drivers/scsi/lpfc/lpfc_els.c
8372
vport->fc_ns_retry = 0;
drivers/scsi/lpfc/lpfc_els.c
8373
vport->num_disc_nodes = 0;
drivers/scsi/lpfc/lpfc_els.c
8375
ndlp = lpfc_findnode_did(vport, NameServer_DID);
drivers/scsi/lpfc/lpfc_els.c
8383
if (lpfc_issue_gidft(vport) > 0)
drivers/scsi/lpfc/lpfc_els.c
8386
if (lpfc_issue_gidpt(vport) > 0)
drivers/scsi/lpfc/lpfc_els.c
8395
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
8397
ndlp = lpfc_nlp_init(vport, NameServer_DID);
drivers/scsi/lpfc/lpfc_els.c
8399
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_els.c
8403
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_els.c
8406
lpfc_issue_els_plogi(vport, NameServer_DID, 0);
drivers/scsi/lpfc/lpfc_els.c
8413
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_els.c
8443
lpfc_els_rcv_flogi(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
8446
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
8447
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
846
ndlp = lpfc_findnode_did(vport, PT2PT_RemoteID);
drivers/scsi/lpfc/lpfc_els.c
8466
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_els.c
8474
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
8481
(void) lpfc_check_sparm(vport, ndlp, sp, CLASS3, 1);
drivers/scsi/lpfc/lpfc_els.c
8488
rc = memcmp(&vport->fc_portname, &sp->portName,
drivers/scsi/lpfc/lpfc_els.c
8503
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
8515
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS | LOG_LIBDFC,
drivers/scsi/lpfc/lpfc_els.c
852
ndlp = lpfc_nlp_init(vport, PT2PT_RemoteID);
drivers/scsi/lpfc/lpfc_els.c
8525
set_bit(FC_PT2PT_PLOGI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8532
vport->fc_myDID = PT2PT_LocalID;
drivers/scsi/lpfc/lpfc_els.c
8534
vport->fc_myDID = PT2PT_RemoteID;
drivers/scsi/lpfc/lpfc_els.c
8542
fc_flag = vport->fc_flag;
drivers/scsi/lpfc/lpfc_els.c
8543
port_state = vport->port_state;
drivers/scsi/lpfc/lpfc_els.c
8547
vport->rcv_flogi_cnt++;
drivers/scsi/lpfc/lpfc_els.c
8549
set_bit(FC_PT2PT, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8550
clear_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8551
clear_bit(FC_PUBLIC_LOOP, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_els.c
8552
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
8555
port_state, vport->port_state,
drivers/scsi/lpfc/lpfc_els.c
8556
fc_flag, vport->fc_flag, phba->hba_flag);
drivers/scsi/lpfc/lpfc_els.c
8563
did = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_els.c
8564
vport->fc_myDID = Fabric_DID;
drivers/scsi/lpfc/lpfc_els.c
8575
vport->fc_myDID = did;
drivers/scsi/lpfc/lpfc_els.c
8585
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
8596
lpfc_els_rsp_acc(vport, ELS_CMD_FLOGI, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
8599
vport->fc_myDID = did;
drivers/scsi/lpfc/lpfc_els.c
862
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_els.c
8621
lpfc_els_rcv_rnid(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
8641
lpfc_els_rsp_rnid_acc(vport, rn->Format, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
8649
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp,
drivers/scsi/lpfc/lpfc_els.c
8665
lpfc_els_rcv_echo(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
8675
lpfc_els_rsp_echo_acc(vport, pcmd, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
8693
lpfc_els_rcv_lirr(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
8703
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
872
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
8724
lpfc_els_rcv_rrq(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
8727
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
8728
if (vport->phba->sli_rev == LPFC_SLI_REV4)
drivers/scsi/lpfc/lpfc_els.c
8729
lpfc_els_clear_rrq(vport, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
8818
lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
8859
lpfc_els_rcv_rls(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
8862
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
887
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_els.c
8880
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_els.c
8899
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
8925
lpfc_els_rcv_rtv(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
8931
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
8980
lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
9009
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
9027
lpfc_issue_els_rrq(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_els.c
9030
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
9042
elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, 0, ndlp, did,
drivers/scsi/lpfc/lpfc_els.c
9056
bf_set(rrq_did, els_rrq, vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
9061
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
9098
struct lpfc_nodelist *ndlp = lpfc_findnode_did(rrq->vport,
drivers/scsi/lpfc/lpfc_els.c
9104
return lpfc_issue_els_rrq(rrq->vport, ndlp,
drivers/scsi/lpfc/lpfc_els.c
9130
lpfc_els_rsp_rpl_acc(struct lpfc_vport *vport, uint16_t cmdsize,
drivers/scsi/lpfc/lpfc_els.c
9134
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
9142
elsiocb = lpfc_prep_els_iocb(vport, 0, cmdsize, oldiocb->retry, ndlp,
drivers/scsi/lpfc/lpfc_els.c
9172
rpl_rsp.port_num_blk.portID = be32_to_cpu(vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
9173
memcpy(&rpl_rsp.port_num_blk.portName, &vport->fc_portname,
drivers/scsi/lpfc/lpfc_els.c
9177
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
9219
lpfc_els_rcv_rpl(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
922
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_els.c
9236
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp,
drivers/scsi/lpfc/lpfc_els.c
9255
lpfc_els_rsp_rpl_acc(vport, cmdsize, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
9285
lpfc_els_rcv_farp(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
9293
did = get_job_els_rsp64_did(vport->phba, cmdiocb);
drivers/scsi/lpfc/lpfc_els.c
9300
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
9310
if (memcmp(&fp->RportName, &vport->fc_portname,
drivers/scsi/lpfc/lpfc_els.c
9317
if (memcmp(&fp->RnodeName, &vport->fc_nodename,
drivers/scsi/lpfc/lpfc_els.c
9328
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_els.c
933
if (lpfc_els_chk_latt(vport)) {
drivers/scsi/lpfc/lpfc_els.c
9330
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_els.c
9335
lpfc_issue_els_farpr(vport, did, 0);
drivers/scsi/lpfc/lpfc_els.c
9356
lpfc_els_rcv_farpr(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
9361
did = get_job_els_rsp64_did(vport->phba, cmdiocb);
drivers/scsi/lpfc/lpfc_els.c
9364
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
9367
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_els.c
9392
lpfc_els_rcv_fan(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
9395
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
9399
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS, "0265 FAN received\n");
drivers/scsi/lpfc/lpfc_els.c
94
lpfc_els_chk_latt(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
9403
if ((vport == phba->pport) &&
drivers/scsi/lpfc/lpfc_els.c
9404
(vport->port_state == LPFC_LOCAL_CFG_LINK)) {
drivers/scsi/lpfc/lpfc_els.c
9410
lpfc_issue_init_vfi(vport);
drivers/scsi/lpfc/lpfc_els.c
9413
vport->fc_myDID = vport->fc_prevDID;
drivers/scsi/lpfc/lpfc_els.c
9415
lpfc_issue_fabric_reglogin(vport);
drivers/scsi/lpfc/lpfc_els.c
9417
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
9419
vport->fc_prevDID, vport->fc_myDID);
drivers/scsi/lpfc/lpfc_els.c
9420
lpfc_issue_reg_vfi(vport);
drivers/scsi/lpfc/lpfc_els.c
9437
lpfc_els_rcv_edc(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
drivers/scsi/lpfc/lpfc_els.c
9440
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
9455
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_els.c
9553
lpfc_issue_els_edc_rsp(vport, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_els.c
957
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_els.c
9572
struct lpfc_vport *vport = timer_container_of(vport, t, els_tmofunc);
drivers/scsi/lpfc/lpfc_els.c
9573
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
9577
spin_lock_irqsave(&vport->work_port_lock, iflag);
drivers/scsi/lpfc/lpfc_els.c
9578
tmo_posted = vport->work_port_events & WORKER_ELS_TMO;
drivers/scsi/lpfc/lpfc_els.c
9579
if (!tmo_posted && !test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_els.c
9580
vport->work_port_events |= WORKER_ELS_TMO;
drivers/scsi/lpfc/lpfc_els.c
9581
spin_unlock_irqrestore(&vport->work_port_lock, iflag);
drivers/scsi/lpfc/lpfc_els.c
9583
if (!tmo_posted && !test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_els.c
9599
lpfc_els_timeout_handler(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
96
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
960
vport->port_state);
drivers/scsi/lpfc/lpfc_els.c
9601
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
9644
if (piocb->vport != vport)
drivers/scsi/lpfc/lpfc_els.c
9669
ndlp = __lpfc_findnode_rpi(vport, ulp_context);
drivers/scsi/lpfc/lpfc_els.c
9680
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
9696
mod_timer(&vport->els_tmofunc,
drivers/scsi/lpfc/lpfc_els.c
9721
lpfc_els_flush_cmd(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_els.c
9725
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_els.c
9732
lpfc_fabric_abort_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
9755
if (piocb->vport != vport)
drivers/scsi/lpfc/lpfc_els.c
9758
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
9817
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
9842
if (piocb->vport != vport)
drivers/scsi/lpfc/lpfc_els.c
9850
if (vport == phba->pport) {
drivers/scsi/lpfc/lpfc_els.c
9889
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_els.c
989
rc = lpfc_sli4_fcf_rr_next_proc(vport, fcf_index);
drivers/scsi/lpfc/lpfc_els.c
9892
list_for_each_entry(vport, &phba->port_list, listentry)
drivers/scsi/lpfc/lpfc_els.c
9893
lpfc_els_flush_cmd(vport);
drivers/scsi/lpfc/lpfc_els.c
99
if (vport->port_state >= LPFC_VPORT_READY ||
drivers/scsi/lpfc/lpfc_els.c
9913
struct lpfc_vport *vport = cmdiocbp->vport;
drivers/scsi/lpfc/lpfc_els.c
9914
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
9979
lpfc_send_els_event(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_els.c
9985
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_els.c
999
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_els.c
9990
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_els.c
9999
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
1016
vport = phba->pport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1018
vport = vports[i];
drivers/scsi/lpfc/lpfc_hbadisc.c
1019
if (vport == NULL)
drivers/scsi/lpfc/lpfc_hbadisc.c
1021
spin_lock_irq(&vport->work_port_lock);
drivers/scsi/lpfc/lpfc_hbadisc.c
1022
work_port_events = vport->work_port_events;
drivers/scsi/lpfc/lpfc_hbadisc.c
1023
vport->work_port_events &= ~work_port_events;
drivers/scsi/lpfc/lpfc_hbadisc.c
1024
spin_unlock_irq(&vport->work_port_lock);
drivers/scsi/lpfc/lpfc_hbadisc.c
1028
lpfc_disc_timeout_handler(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1030
lpfc_els_timeout_handler(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1040
lpfc_delayed_disc_timeout_handler(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1160
lpfc_cleanup_rpis(struct lpfc_vport *vport, int remove)
drivers/scsi/lpfc/lpfc_hbadisc.c
1162
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
1165
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_hbadisc.c
1167
((vport->port_type == LPFC_NPIV_PORT) &&
drivers/scsi/lpfc/lpfc_hbadisc.c
1171
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
1183
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_hbadisc.c
1190
lpfc_sli4_unreg_all_rpis(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1191
lpfc_mbx_unreg_vpi(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1192
set_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1197
lpfc_port_link_failure(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
1199
lpfc_vport_set_state(vport, FC_VPORT_LINKDOWN);
drivers/scsi/lpfc/lpfc_hbadisc.c
1202
lpfc_cleanup_rcv_buffers(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1205
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1208
lpfc_els_flush_cmd(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1210
lpfc_cleanup_rpis(vport, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
1213
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1217
lpfc_linkdown_port(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
1219
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
1220
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1222
if (vport->cfg_enable_fc4_type != LPFC_ENABLE_NVME)
drivers/scsi/lpfc/lpfc_hbadisc.c
1226
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_hbadisc.c
1228
vport->port_state, vport->fc_ns_retry, vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
123
if (!ndlp->vport) {
drivers/scsi/lpfc/lpfc_hbadisc.c
1230
lpfc_port_link_failure(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1233
clear_bit(FC_DISC_DELAYED, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1234
timer_delete_sync(&vport->delayed_disc_tmo);
drivers/scsi/lpfc/lpfc_hbadisc.c
1237
vport->port_type == LPFC_PHYSICAL_PORT &&
drivers/scsi/lpfc/lpfc_hbadisc.c
1247
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1248
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1302
if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
1303
(vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
1320
mb->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1335
mb->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1351
lpfc_linkup_cleanup_nodes(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
1355
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_hbadisc.c
1365
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
1366
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
137
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1371
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
1377
lpfc_linkup_port(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
1379
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1380
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
1382
if (test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_hbadisc.c
1385
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_hbadisc.c
1391
(vport != phba->pport))
drivers/scsi/lpfc/lpfc_hbadisc.c
1395
clear_bit(FC_ABORT_DISCOVERY, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1396
clear_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1397
clear_bit(FC_NLP_MORE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1398
clear_bit(FC_RSCN_DISCOVERY, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1400
clear_bit(FC_PT2PT, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1401
clear_bit(FC_PT2PT_PLOGI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1402
clear_bit(FC_ABORT_DISCOVERY, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1403
clear_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1404
clear_bit(FC_NLP_MORE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1405
clear_bit(FC_RSCN_DISCOVERY, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1407
set_bit(FC_NDISC_ACTIVE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1410
vport->fc_ns_retry = 0;
drivers/scsi/lpfc/lpfc_hbadisc.c
1412
lpfc_setup_fdmi_mask(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1414
lpfc_linkup_cleanup_nodes(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
144
vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
145
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT,
drivers/scsi/lpfc/lpfc_hbadisc.c
1456
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1468
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
1471
mb->mbxStatus, vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
1476
if (vport->port_type == LPFC_PHYSICAL_PORT)
drivers/scsi/lpfc/lpfc_hbadisc.c
1491
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
1495
clear_bit(FC_ABORT_DISCOVERY, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
1497
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
150
lpfc_sli_abort_iocb(vport, ndlp->nlp_sid, 0, LPFC_CTX_TGT);
drivers/scsi/lpfc/lpfc_hbadisc.c
1515
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1532
test_bit(FC_PUBLIC_LOOP, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_hbadisc.c
1533
!test_bit(FC_LBIT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
1538
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1545
if (vport->port_state != LPFC_FLOGI) {
drivers/scsi/lpfc/lpfc_hbadisc.c
1561
sparam_mb->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1572
lpfc_initial_flogi(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1575
if (test_bit(FC_PT2PT, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_hbadisc.c
1576
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
1581
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
1583
status, vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
1588
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
1590
vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
1592
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
160
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1621
struct lpfc_vport *vport = mboxq->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
1624
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
1627
vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
1648
if (vport->port_state != LPFC_FLOGI) {
drivers/scsi/lpfc/lpfc_hbadisc.c
1650
lpfc_issue_init_vfi(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
170
vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
171
phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
173
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT,
drivers/scsi/lpfc/lpfc_hbadisc.c
177
lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
181
vport->load_flag, kref_read(&ndlp->kref),
drivers/scsi/lpfc/lpfc_hbadisc.c
185
if (test_bit(FC_UNLOADING, &vport->load_flag) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
1914
fcf_mbxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_hbadisc.c
236
lpfc_vlog_msg(vport, KERN_WARNING, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
2391
int lpfc_sli4_fcf_rr_next_proc(struct lpfc_vport *vport, uint16_t fcf_index)
drivers/scsi/lpfc/lpfc_hbadisc.c
2393
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
2454
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
246
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
254
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
294
lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
299
vport->load_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
303
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_hbadisc.c
3158
struct lpfc_vport *vport = mboxq->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
316
static void lpfc_check_inactive_vmid_one(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
3168
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3172
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
3176
if (!lpfc_initial_flogi(vport)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
3177
lpfc_printf_vlog(vport, KERN_ERR, LOG_MBOX | LOG_ELS,
drivers/scsi/lpfc/lpfc_hbadisc.c
3179
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
3193
lpfc_issue_init_vfi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
3197
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
3201
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
3206
lpfc_init_vfi(mboxq, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3210
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3212
mempool_free(mboxq, vport->phba->mbox_mem_pool);
drivers/scsi/lpfc/lpfc_hbadisc.c
3226
struct lpfc_vport *vport = mboxq->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3230
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3234
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
3237
clear_bit(FC_VPORT_NEEDS_INIT_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
324
write_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_hbadisc.c
3240
if ((phba->pport == vport) || (vport->port_state == LPFC_FDISC)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
3241
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_hbadisc.c
3243
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
3248
lpfc_register_new_vport(phba, vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
3254
if (!lpfc_initial_fdisc(vport)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
3255
lpfc_printf_vlog(vport, KERN_WARNING,
drivers/scsi/lpfc/lpfc_hbadisc.c
3258
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
326
if (!vport->cur_vmid_cnt)
drivers/scsi/lpfc/lpfc_hbadisc.c
3262
lpfc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP);
drivers/scsi/lpfc/lpfc_hbadisc.c
3263
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3278
lpfc_issue_init_vpi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
3283
if ((vport->port_type != LPFC_PHYSICAL_PORT) && (!vport->vpi)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
3284
vpi = lpfc_alloc_vpi(vport->phba);
drivers/scsi/lpfc/lpfc_hbadisc.c
3286
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3288
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
3291
vport->vpi = vpi;
drivers/scsi/lpfc/lpfc_hbadisc.c
3294
mboxq = mempool_alloc(vport->phba->mbox_mem_pool, GFP_KERNEL);
drivers/scsi/lpfc/lpfc_hbadisc.c
3296
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
330
hash_for_each(vport->hash_table, bucket, vmp, hnode) {
drivers/scsi/lpfc/lpfc_hbadisc.c
3301
lpfc_init_vpi(vport->phba, mboxq, vport->vpi);
drivers/scsi/lpfc/lpfc_hbadisc.c
3302
mboxq->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3304
rc = lpfc_sli_issue_mbox(vport->phba, mboxq, MBX_NOWAIT);
drivers/scsi/lpfc/lpfc_hbadisc.c
3306
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3308
mempool_free(mboxq, vport->phba->mbox_mem_pool);
drivers/scsi/lpfc/lpfc_hbadisc.c
3364
struct lpfc_vport *vport = mboxq->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3365
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3375
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3378
mboxq->u.mb.mbxStatus, vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
3381
lpfc_disc_list_loopmap(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3383
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3386
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
3394
if (test_bit(FC_VFI_REGISTERED, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_hbadisc.c
3396
test_bit(FC_PT2PT, &vport->fc_flag)))
drivers/scsi/lpfc/lpfc_hbadisc.c
3400
set_bit(FC_VFI_REGISTERED, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3401
clear_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3402
clear_bit(FC_VPORT_NEEDS_INIT_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3404
vport->vpi_state |= LPFC_VPI_REGISTERED;
drivers/scsi/lpfc/lpfc_hbadisc.c
341
if ((vport->vmid_inactivity_timeout *
drivers/scsi/lpfc/lpfc_hbadisc.c
3414
lpfc_printf_vlog(vport, KERN_INFO, LOG_SLI,
drivers/scsi/lpfc/lpfc_hbadisc.c
3417
vport->port_state, vport->fc_flag, vport->fc_myDID,
drivers/scsi/lpfc/lpfc_hbadisc.c
3418
vport->phba->alpa_map[0],
drivers/scsi/lpfc/lpfc_hbadisc.c
3421
if (vport->port_state == LPFC_FABRIC_CFG_LINK) {
drivers/scsi/lpfc/lpfc_hbadisc.c
3426
if (test_bit(FC_PT2PT, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
3428
!test_bit(FC_PUBLIC_LOOP, &vport->fc_flag))) {
drivers/scsi/lpfc/lpfc_hbadisc.c
3431
lpfc_disc_list_loopmap(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3433
if (test_bit(FC_PT2PT, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_hbadisc.c
3434
vport->port_state = LPFC_VPORT_READY;
drivers/scsi/lpfc/lpfc_hbadisc.c
3436
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3439
lpfc_do_scr_ns_plogi(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3452
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3453
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3454
struct serv_parm *sp = &vport->fc_sparam;
drivers/scsi/lpfc/lpfc_hbadisc.c
3460
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3463
mb->mbxStatus, vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
3468
memcpy((uint8_t *) &vport->fc_sparam, (uint8_t *) mp->virt,
drivers/scsi/lpfc/lpfc_hbadisc.c
3482
lpfc_update_vport_wwn(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3483
fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn);
drivers/scsi/lpfc/lpfc_hbadisc.c
3484
if (vport->port_type == LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_hbadisc.c
3485
memcpy(&phba->wwnn, &vport->fc_nodename, sizeof(phba->wwnn));
drivers/scsi/lpfc/lpfc_hbadisc.c
3486
memcpy(&phba->wwpn, &vport->fc_portname, sizeof(phba->wwnn));
drivers/scsi/lpfc/lpfc_hbadisc.c
3495
lpfc_initial_flogi(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3502
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3508
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_hbadisc.c
353
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_hbadisc.c
354
if (vport->vmid_priority_tagging)
drivers/scsi/lpfc/lpfc_hbadisc.c
355
r = lpfc_vmid_uvem(vport, vmp, false);
drivers/scsi/lpfc/lpfc_hbadisc.c
3561
set_bit(FC_LBIT, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3563
vport->fc_myDID = bf_get(lpfc_mbx_read_top_alpa_granted, la);
drivers/scsi/lpfc/lpfc_hbadisc.c
3569
if (vport->cfg_log_verbose & LOG_LINK_EVENT) {
drivers/scsi/lpfc/lpfc_hbadisc.c
357
r = lpfc_vmid_cmd(vport,
drivers/scsi/lpfc/lpfc_hbadisc.c
3609
vport->fc_myDID = phba->fc_pref_DID;
drivers/scsi/lpfc/lpfc_hbadisc.c
3610
set_bit(FC_LBIT, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3626
sparam_mbox->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
363
write_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_hbadisc.c
3638
vport->port_state = LPFC_LOCAL_CFG_LINK;
drivers/scsi/lpfc/lpfc_hbadisc.c
3640
cfglink_mbox->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3648
vport->port_state = LPFC_VPORT_UNKNOWN;
drivers/scsi/lpfc/lpfc_hbadisc.c
367
vport->cur_vmid_cnt--;
drivers/scsi/lpfc/lpfc_hbadisc.c
3709
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
3710
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3712
vport->port_state, sparam_mbox, cfglink_mbox);
drivers/scsi/lpfc/lpfc_hbadisc.c
3713
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3752
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3768
mb->mbxStatus, vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
377
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_hbadisc.c
3780
set_bit(FC_BYPASSED_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3782
clear_bit(FC_BYPASSED_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3832
phba->pport->port_state, vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3838
phba->pport->port_state, vport->fc_flag,
drivers/scsi/lpfc/lpfc_hbadisc.c
3845
phba->pport->port_state, vport->fc_flag,
drivers/scsi/lpfc/lpfc_hbadisc.c
3869
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3880
lpfc_printf_vlog(vport, KERN_INFO, LOG_SLI | LOG_NODE | LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
3905
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
3909
lpfc_disc_state_machine(vport, ndlp, pmb, NLP_EVT_CMPL_REG_LOGIN);
drivers/scsi/lpfc/lpfc_hbadisc.c
392
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3925
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3926
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3931
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
3937
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3939
vport->vpi, mb->mbxStatus);
drivers/scsi/lpfc/lpfc_hbadisc.c
3945
set_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3947
vport->vpi_state &= ~LPFC_VPI_REGISTERED;
drivers/scsi/lpfc/lpfc_hbadisc.c
3950
lpfc_cleanup_vports_rrqs(vport, NULL);
drivers/scsi/lpfc/lpfc_hbadisc.c
3955
if (test_bit(FC_UNLOADING, &vport->load_flag) && vport != phba->pport)
drivers/scsi/lpfc/lpfc_hbadisc.c
3960
lpfc_mbx_unreg_vpi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
3962
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
3970
lpfc_unreg_vpi(phba, vport->vpi, mbox);
drivers/scsi/lpfc/lpfc_hbadisc.c
3971
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3975
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
3986
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
3987
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
3994
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
3997
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
3998
clear_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
3999
clear_bit(FC_PUBLIC_LOOP, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
4000
vport->fc_myDID = 0;
drivers/scsi/lpfc/lpfc_hbadisc.c
4002
if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
4003
(vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4007
lpfc_nvme_update_localport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
4012
clear_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
4014
vport->vpi_state |= LPFC_VPI_REGISTERED;
drivers/scsi/lpfc/lpfc_hbadisc.c
4016
vport->num_disc_nodes = 0;
drivers/scsi/lpfc/lpfc_hbadisc.c
4018
if (atomic_read(&vport->fc_npr_cnt))
drivers/scsi/lpfc/lpfc_hbadisc.c
4019
lpfc_els_disc_plogi(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
402
vport = phba->pport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4021
if (!vport->num_disc_nodes) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4022
clear_bit(FC_NDISC_ACTIVE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
4023
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
4025
vport->port_state = LPFC_VPORT_READY;
drivers/scsi/lpfc/lpfc_hbadisc.c
404
vport = vports[i];
drivers/scsi/lpfc/lpfc_hbadisc.c
405
if (!vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
4050
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
408
lpfc_check_inactive_vmid_one(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
4090
pmb->vport = phba->pport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4164
vport = *(struct lpfc_vport **)new_fc_vport->dd_data;
drivers/scsi/lpfc/lpfc_hbadisc.c
4165
vport->vport_flag |= STATIC_VPORT;
drivers/scsi/lpfc/lpfc_hbadisc.c
4183
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4190
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
4196
lpfc_disc_list_loopmap(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
4199
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
4207
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
4219
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
4221
if (vport->port_state == LPFC_FABRIC_CFG_LINK) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4224
if (!test_and_clear_bit(FC_LOGO_RCVD_DID_CHNG, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_hbadisc.c
4226
lpfc_do_scr_ns_plogi(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
423
lpfc_check_nlp_post_devloss(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_hbadisc.c
4243
lpfc_issue_gidft(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
4246
if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
4247
(vport->cfg_enable_fc4_type == LPFC_ENABLE_FCP)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4248
if (lpfc_ns_cmd(vport, SLI_CTNS_GID_FT, 0, SLI_CTPT_FCP)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4252
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
4260
vport->gidft_inp++;
drivers/scsi/lpfc/lpfc_hbadisc.c
4263
if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
4264
(vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4265
if (lpfc_ns_cmd(vport, SLI_CTNS_GID_FT, 0, SLI_CTPT_NVME)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4269
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
4275
vport->gidft_inp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4276
if (vport->gidft_inp == 0)
drivers/scsi/lpfc/lpfc_hbadisc.c
4279
vport->gidft_inp++;
drivers/scsi/lpfc/lpfc_hbadisc.c
428
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY | LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
4281
return vport->gidft_inp;
drivers/scsi/lpfc/lpfc_hbadisc.c
4295
lpfc_issue_gidpt(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
4298
if (lpfc_ns_cmd(vport, SLI_CTNS_GID_PT, 0, GID_PT_N_PORT)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4302
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
4309
vport->gidft_inp++;
drivers/scsi/lpfc/lpfc_hbadisc.c
4324
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4328
vport->gidft_inp = 0;
drivers/scsi/lpfc/lpfc_hbadisc.c
433
ndlp->nlp_flag, vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
4331
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
4357
lpfc_disc_list_loopmap(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
4360
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
4363
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_hbadisc.c
4371
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
4372
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE | LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
4378
if (vport->port_state < LPFC_VPORT_READY) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4380
lpfc_ns_cmd(vport, SLI_CTNS_RNN_ID, 0, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4381
lpfc_ns_cmd(vport, SLI_CTNS_RSNN_NN, 0, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4382
lpfc_ns_cmd(vport, SLI_CTNS_RSPN_ID, 0, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4384
lpfc_ns_cmd(vport, SLI_CTNS_RSPNI_PNI, 0, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4385
lpfc_ns_cmd(vport, SLI_CTNS_RFT_ID, 0, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4387
if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
4388
(vport->cfg_enable_fc4_type == LPFC_ENABLE_FCP))
drivers/scsi/lpfc/lpfc_hbadisc.c
4389
lpfc_ns_cmd(vport, SLI_CTNS_RFF_ID, 0, FC_TYPE_FCP);
drivers/scsi/lpfc/lpfc_hbadisc.c
4391
if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
4392
(vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME))
drivers/scsi/lpfc/lpfc_hbadisc.c
4393
lpfc_ns_cmd(vport, SLI_CTNS_RFF_ID, 0,
drivers/scsi/lpfc/lpfc_hbadisc.c
4397
lpfc_issue_els_scr(vport, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4408
rc = lpfc_issue_els_edc(vport, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4415
lpfc_issue_els_edc(vport, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4417
lpfc_issue_els_rdf(vport, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4421
vport->fc_ns_retry = 0;
drivers/scsi/lpfc/lpfc_hbadisc.c
4422
if (lpfc_issue_gidft(vport) == 0)
drivers/scsi/lpfc/lpfc_hbadisc.c
4445
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4451
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
4457
lpfc_check_nlp_post_devloss(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4462
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
4470
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
4482
lpfc_register_remote_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_hbadisc.c
4484
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
4488
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
4491
if (vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)
drivers/scsi/lpfc/lpfc_hbadisc.c
450
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4501
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT,
drivers/scsi/lpfc/lpfc_hbadisc.c
4506
if (test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_hbadisc.c
4547
lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
4564
struct lpfc_vport *vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4566
if (vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)
drivers/scsi/lpfc/lpfc_hbadisc.c
4569
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT,
drivers/scsi/lpfc/lpfc_hbadisc.c
4573
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
4584
lpfc_nlp_counters(struct lpfc_vport *vport, int state, int count)
drivers/scsi/lpfc/lpfc_hbadisc.c
4588
atomic_add(count, &vport->fc_unused_cnt);
drivers/scsi/lpfc/lpfc_hbadisc.c
459
vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4591
atomic_add(count, &vport->fc_plogi_cnt);
drivers/scsi/lpfc/lpfc_hbadisc.c
4594
atomic_add(count, &vport->fc_adisc_cnt);
drivers/scsi/lpfc/lpfc_hbadisc.c
4597
atomic_add(count, &vport->fc_reglogin_cnt);
drivers/scsi/lpfc/lpfc_hbadisc.c
4600
atomic_add(count, &vport->fc_prli_cnt);
drivers/scsi/lpfc/lpfc_hbadisc.c
4603
atomic_add(count, &vport->fc_unmap_cnt);
drivers/scsi/lpfc/lpfc_hbadisc.c
4606
atomic_add(count, &vport->fc_map_cnt);
drivers/scsi/lpfc/lpfc_hbadisc.c
4609
if (!atomic_read(&vport->fc_npr_cnt) && count == -1)
drivers/scsi/lpfc/lpfc_hbadisc.c
461
phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
4610
atomic_set(&vport->fc_npr_cnt, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
4612
atomic_add(count, &vport->fc_npr_cnt);
drivers/scsi/lpfc/lpfc_hbadisc.c
4619
lpfc_nlp_reg_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_hbadisc.c
4623
lpfc_check_nlp_post_devloss(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4632
lpfc_nvme_rescan_port(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4641
vport->phba->nport_event_cnt++;
drivers/scsi/lpfc/lpfc_hbadisc.c
4646
lpfc_register_remote_port(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4654
if (vport->phba->sli_rev >= LPFC_SLI_REV4 &&
drivers/scsi/lpfc/lpfc_hbadisc.c
4656
if (vport->phba->nvmet_support == 0) {
drivers/scsi/lpfc/lpfc_hbadisc.c
466
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT,
drivers/scsi/lpfc/lpfc_hbadisc.c
4662
vport->phba->nport_event_cnt++;
drivers/scsi/lpfc/lpfc_hbadisc.c
4663
lpfc_nvme_register_port(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4676
lpfc_nlp_unreg_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_hbadisc.c
4683
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_hbadisc.c
4697
vport->phba->nport_event_cnt++;
drivers/scsi/lpfc/lpfc_hbadisc.c
470
lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
4700
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_hbadisc.c
4710
vport->phba->nport_event_cnt++;
drivers/scsi/lpfc/lpfc_hbadisc.c
4711
if (vport->phba->nvmet_support == 0) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4712
lpfc_nvme_unregister_port(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4725
lpfc_handle_adisc_state(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_hbadisc.c
4746
lpfc_nlp_reg_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4759
lpfc_nlp_unreg_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4766
lpfc_nlp_state_cleanup(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_hbadisc.c
477
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
4772
lpfc_handle_adisc_state(vport, ndlp, new_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
4792
!lpfc_is_link_up(vport->phba))
drivers/scsi/lpfc/lpfc_hbadisc.c
4793
lpfc_nlp_unreg_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4798
lpfc_nlp_reg_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4812
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
4839
lpfc_nlp_set_state(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_hbadisc.c
4847
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
4853
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
4865
lpfc_cancel_retry_delay_tmo(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4872
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
4873
list_add_tail(&ndlp->nlp_listp, &vport->fc_nodes);
drivers/scsi/lpfc/lpfc_hbadisc.c
4874
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
4876
lpfc_nlp_counters(vport, old_state, -1);
drivers/scsi/lpfc/lpfc_hbadisc.c
4879
lpfc_nlp_counters(vport, state, 1);
drivers/scsi/lpfc/lpfc_hbadisc.c
4880
lpfc_nlp_state_cleanup(vport, ndlp, old_state, state);
drivers/scsi/lpfc/lpfc_hbadisc.c
4884
lpfc_enqueue_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_hbadisc.c
4889
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
4890
list_add_tail(&ndlp->nlp_listp, &vport->fc_nodes);
drivers/scsi/lpfc/lpfc_hbadisc.c
4891
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
4896
lpfc_dequeue_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_hbadisc.c
4900
lpfc_cancel_retry_delay_tmo(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4902
lpfc_nlp_counters(vport, ndlp->nlp_state, -1);
drivers/scsi/lpfc/lpfc_hbadisc.c
4903
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
4905
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
4906
lpfc_nlp_state_cleanup(vport, ndlp, ndlp->nlp_state,
drivers/scsi/lpfc/lpfc_hbadisc.c
4925
lpfc_initialize_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_hbadisc.c
4934
ndlp->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4935
ndlp->phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
4940
ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth;
drivers/scsi/lpfc/lpfc_hbadisc.c
4945
lpfc_drop_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_hbadisc.c
4954
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNUSED_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
4955
if (vport->phba->sli_rev == LPFC_SLI_REV4) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4956
lpfc_cleanup_vports_rrqs(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4957
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
4972
lpfc_set_disctmo(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
4974
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
4977
if (vport->port_state == LPFC_LOCAL_CFG_LINK) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4988
if (!timer_pending(&vport->fc_disctmo)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
4989
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_hbadisc.c
499
fc_vport = vport->fc_vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
4991
tmo, vport->port_state, vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
4994
mod_timer(&vport->fc_disctmo, jiffies + secs_to_jiffies(tmo));
drivers/scsi/lpfc/lpfc_hbadisc.c
4995
set_bit(FC_DISC_TMO, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
4998
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
5001
vport->port_state, tmo,
drivers/scsi/lpfc/lpfc_hbadisc.c
5002
(unsigned long)&vport->fc_disctmo,
drivers/scsi/lpfc/lpfc_hbadisc.c
5003
atomic_read(&vport->fc_plogi_cnt),
drivers/scsi/lpfc/lpfc_hbadisc.c
5004
atomic_read(&vport->fc_adisc_cnt));
drivers/scsi/lpfc/lpfc_hbadisc.c
5013
lpfc_can_disctmo(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
5017
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_hbadisc.c
5019
vport->port_state, vport->fc_ns_retry, vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
5022
if (test_bit(FC_DISC_TMO, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
5023
timer_pending(&vport->fc_disctmo)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5024
clear_bit(FC_DISC_TMO, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
5025
timer_delete_sync(&vport->fc_disctmo);
drivers/scsi/lpfc/lpfc_hbadisc.c
5026
spin_lock_irqsave(&vport->work_port_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
5027
vport->work_port_events &= ~WORKER_DISC_TMO;
drivers/scsi/lpfc/lpfc_hbadisc.c
5028
spin_unlock_irqrestore(&vport->work_port_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
5032
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
5035
vport->port_state, vport->fc_flag,
drivers/scsi/lpfc/lpfc_hbadisc.c
5036
atomic_read(&vport->fc_plogi_cnt),
drivers/scsi/lpfc/lpfc_hbadisc.c
5037
atomic_read(&vport->fc_adisc_cnt));
drivers/scsi/lpfc/lpfc_hbadisc.c
5051
struct lpfc_vport *vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
5056
if (iocb->vport != vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
5177
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
5183
lpfc_issue_els_logo(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
5188
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
5196
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
5215
lpfc_set_unreg_login_mbx_cmpl(struct lpfc_hba *phba, struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_hbadisc.c
5228
!test_bit(FC_UNLOADING, &vport->load_flag) &&
drivers/scsi/lpfc/lpfc_hbadisc.c
5247
lpfc_unreg_rpi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_hbadisc.c
5249
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
5257
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_hbadisc.c
5269
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_hbadisc.c
5287
lpfc_unreg_login(phba, vport->vpi, rpi, mbox);
drivers/scsi/lpfc/lpfc_hbadisc.c
5288
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
5289
lpfc_set_unreg_login_mbx_cmpl(phba, vport, ndlp, mbox);
drivers/scsi/lpfc/lpfc_hbadisc.c
5299
if (!test_bit(FC_OFFLINE_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_hbadisc.c
5302
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_hbadisc.c
5318
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_hbadisc.c
5331
if (!test_bit(FC_UNLOADING, &vport->load_flag)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5333
lpfc_issue_els_logo(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
5335
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_hbadisc.c
5395
lpfc_unreg_all_rpis(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
5397
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
5402
lpfc_sli4_unreg_all_rpis(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5408
lpfc_unreg_login(phba, vport->vpi, LPFC_UNREG_ALL_RPIS_VPORT,
drivers/scsi/lpfc/lpfc_hbadisc.c
5410
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
5418
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
5426
lpfc_unreg_default_rpis(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
5428
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
543
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_hbadisc.c
5438
lpfc_unreg_did(phba, vport->vpi, LPFC_UNREG_ALL_DFLT_RPIS,
drivers/scsi/lpfc/lpfc_hbadisc.c
5440
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
5448
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
5460
lpfc_cleanup_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_hbadisc.c
5462
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
5466
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
5471
lpfc_dequeue_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
550
vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
5521
lpfc_cleanup_vports_rrqs(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
5526
lpfc_matchdid(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_hbadisc.c
5539
mydid.un.word = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_hbadisc.c
5560
vport->phba->fc_topology ==
drivers/scsi/lpfc/lpfc_hbadisc.c
558
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_hbadisc.c
5582
__lpfc_findnode_did(struct lpfc_vport *vport, uint32_t did)
drivers/scsi/lpfc/lpfc_hbadisc.c
5588
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5589
if (lpfc_matchdid(vport, ndlp, did)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5594
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE_VERBOSE,
drivers/scsi/lpfc/lpfc_hbadisc.c
5610
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
5617
lpfc_findnode_did(struct lpfc_vport *vport, uint32_t did)
drivers/scsi/lpfc/lpfc_hbadisc.c
5619
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5624
ndlp = __lpfc_findnode_did(vport, did);
drivers/scsi/lpfc/lpfc_hbadisc.c
5630
lpfc_findnode_mapped(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
5636
spin_lock_irqsave(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
5638
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5645
spin_unlock_irqrestore(&vport->fc_nodes_list_lock,
drivers/scsi/lpfc/lpfc_hbadisc.c
5647
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE_VERBOSE,
drivers/scsi/lpfc/lpfc_hbadisc.c
565
vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
5656
spin_unlock_irqrestore(&vport->fc_nodes_list_lock, iflags);
drivers/scsi/lpfc/lpfc_hbadisc.c
5659
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
5665
lpfc_setup_disc_node(struct lpfc_vport *vport, uint32_t did)
drivers/scsi/lpfc/lpfc_hbadisc.c
5669
ndlp = lpfc_findnode_did(vport, did);
drivers/scsi/lpfc/lpfc_hbadisc.c
5671
if (vport->phba->nvmet_support)
drivers/scsi/lpfc/lpfc_hbadisc.c
5673
if (test_bit(FC_RSCN_MODE, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_hbadisc.c
5674
lpfc_rscn_payload_check(vport, did) == 0)
drivers/scsi/lpfc/lpfc_hbadisc.c
5676
ndlp = lpfc_nlp_init(vport, did);
drivers/scsi/lpfc/lpfc_hbadisc.c
5679
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
5681
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
5685
ndlp->nlp_state, vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
5695
if (test_bit(FC_RSCN_MODE, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_hbadisc.c
5696
!test_bit(FC_NDISC_ACTIVE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5697
if (lpfc_rscn_payload_check(vport, did)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5702
lpfc_cancel_retry_delay_tmo(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
5704
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
5708
ndlp->nlp_state, vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
5715
if (vport->phba->nvmet_support)
drivers/scsi/lpfc/lpfc_hbadisc.c
5720
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_hbadisc.c
5726
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
5730
ndlp->nlp_state, vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
5734
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
5738
ndlp->nlp_state, vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
5746
(!vport->phba->nvmet_support &&
drivers/scsi/lpfc/lpfc_hbadisc.c
5750
if (vport->phba->nvmet_support)
drivers/scsi/lpfc/lpfc_hbadisc.c
5756
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
576
lpfc_sli_abort_iocb(vport, ndlp->nlp_sid, 0, LPFC_CTX_TGT);
drivers/scsi/lpfc/lpfc_hbadisc.c
5764
lpfc_disc_list_loopmap(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
5766
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
5780
if (((vport->fc_myDID & 0xff) == alpa) || (alpa == 0))
drivers/scsi/lpfc/lpfc_hbadisc.c
5782
lpfc_setup_disc_node(vport, alpa);
drivers/scsi/lpfc/lpfc_hbadisc.c
5790
if (vport->cfg_scan_down)
drivers/scsi/lpfc/lpfc_hbadisc.c
5795
if ((vport->fc_myDID & 0xff) == alpa)
drivers/scsi/lpfc/lpfc_hbadisc.c
5797
lpfc_setup_disc_node(vport, alpa);
drivers/scsi/lpfc/lpfc_hbadisc.c
580
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
5805
lpfc_issue_clear_la(struct lpfc_hba *phba, struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
5818
(vport->port_type != LPFC_PHYSICAL_PORT) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
5827
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
5831
lpfc_disc_flush_list(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5841
lpfc_issue_reg_vpi(struct lpfc_hba *phba, struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
5847
lpfc_reg_vpi(vport, regvpimbox);
drivers/scsi/lpfc/lpfc_hbadisc.c
5849
regvpimbox->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
5859
lpfc_disc_start(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
5861
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
5866
lpfc_printf_vlog(vport, KERN_INFO, LOG_SLI,
drivers/scsi/lpfc/lpfc_hbadisc.c
5877
if (vport->port_state < LPFC_VPORT_READY)
drivers/scsi/lpfc/lpfc_hbadisc.c
5878
vport->port_state = LPFC_DISC_AUTH;
drivers/scsi/lpfc/lpfc_hbadisc.c
5880
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5882
vport->fc_prevDID = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_hbadisc.c
5883
vport->num_disc_nodes = 0;
drivers/scsi/lpfc/lpfc_hbadisc.c
5886
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
5889
vport->port_state, vport->fc_flag,
drivers/scsi/lpfc/lpfc_hbadisc.c
5890
atomic_read(&vport->fc_plogi_cnt),
drivers/scsi/lpfc/lpfc_hbadisc.c
5891
atomic_read(&vport->fc_adisc_cnt),
drivers/scsi/lpfc/lpfc_hbadisc.c
5892
atomic_read(&vport->fc_npr_cnt));
drivers/scsi/lpfc/lpfc_hbadisc.c
5895
num_sent = lpfc_els_disc_adisc(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
590
lpfc_printf_vlog(vport, KERN_INFO, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_hbadisc.c
5902
!test_bit(FC_PT2PT, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_hbadisc.c
5903
!test_bit(FC_RSCN_MODE, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_hbadisc.c
5905
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5906
lpfc_issue_reg_vpi(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5914
if (vport->port_state < LPFC_VPORT_READY && !clear_la_pending) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5916
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5918
if (!test_bit(FC_ABORT_DISCOVERY, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5919
vport->num_disc_nodes = 0;
drivers/scsi/lpfc/lpfc_hbadisc.c
5921
if (atomic_read(&vport->fc_npr_cnt))
drivers/scsi/lpfc/lpfc_hbadisc.c
5922
lpfc_els_disc_plogi(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5924
if (!vport->num_disc_nodes) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5925
clear_bit(FC_NDISC_ACTIVE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
5926
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5929
vport->port_state = LPFC_VPORT_READY;
drivers/scsi/lpfc/lpfc_hbadisc.c
5932
num_sent = lpfc_els_disc_plogi(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5937
if (test_bit(FC_RSCN_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5941
if (vport->fc_rscn_id_cnt == 0 &&
drivers/scsi/lpfc/lpfc_hbadisc.c
5942
!test_bit(FC_RSCN_DISCOVERY, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
5943
clear_bit(FC_RSCN_MODE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
5944
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
5946
lpfc_els_handle_rscn(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6009
lpfc_disc_flush_list(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
6012
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
6014
if (atomic_read(&vport->fc_plogi_cnt) ||
drivers/scsi/lpfc/lpfc_hbadisc.c
6015
atomic_read(&vport->fc_adisc_cnt)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6016
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes,
drivers/scsi/lpfc/lpfc_hbadisc.c
6037
lpfc_notify_xport_npr(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
6041
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes,
drivers/scsi/lpfc/lpfc_hbadisc.c
6043
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
6047
lpfc_cleanup_discovery_resources(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
6049
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6050
lpfc_els_flush_cmd(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6051
lpfc_disc_flush_list(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6052
if (pci_channel_offline(vport->phba->pcidev))
drivers/scsi/lpfc/lpfc_hbadisc.c
6053
lpfc_notify_xport_npr(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6074
struct lpfc_vport *vport = timer_container_of(vport, t, fc_disctmo);
drivers/scsi/lpfc/lpfc_hbadisc.c
6075
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
6082
spin_lock_irqsave(&vport->work_port_lock, flags);
drivers/scsi/lpfc/lpfc_hbadisc.c
6083
tmo_posted = vport->work_port_events & WORKER_DISC_TMO;
drivers/scsi/lpfc/lpfc_hbadisc.c
6085
vport->work_port_events |= WORKER_DISC_TMO;
drivers/scsi/lpfc/lpfc_hbadisc.c
6086
spin_unlock_irqrestore(&vport->work_port_lock, flags);
drivers/scsi/lpfc/lpfc_hbadisc.c
6094
lpfc_disc_timeout_handler(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
6096
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_hbadisc.c
610
lpfc_disc_state_machine(vport, ndlp, NULL, NLP_EVT_DEVICE_RM);
drivers/scsi/lpfc/lpfc_hbadisc.c
6102
if (!test_and_clear_bit(FC_DISC_TMO, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_hbadisc.c
6105
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
drivers/scsi/lpfc/lpfc_hbadisc.c
6107
vport->port_state, vport->fc_ns_retry, vport->fc_flag);
drivers/scsi/lpfc/lpfc_hbadisc.c
6109
switch (vport->port_state) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6116
lpfc_printf_vlog(vport, KERN_WARNING, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
6120
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes,
drivers/scsi/lpfc/lpfc_hbadisc.c
6126
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
6132
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
6135
if (vport->port_state != LPFC_FLOGI) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6137
lpfc_initial_flogi(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6139
lpfc_issue_init_vfi(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6148
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
6151
vport->vpi ? "FDISC" : "FLOGI");
drivers/scsi/lpfc/lpfc_hbadisc.c
6158
lpfc_disc_list_loopmap(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6161
lpfc_disc_start(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6167
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
617
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
6172
ndlp = lpfc_findnode_did(vport, NameServer_DID);
drivers/scsi/lpfc/lpfc_hbadisc.c
6181
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
6185
vport->fc_ns_retry, LPFC_MAX_NS_RETRY);
drivers/scsi/lpfc/lpfc_hbadisc.c
6187
if (vport->fc_ns_retry < LPFC_MAX_NS_RETRY) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6189
vport->fc_ns_retry++;
drivers/scsi/lpfc/lpfc_hbadisc.c
6190
vport->gidft_inp = 0;
drivers/scsi/lpfc/lpfc_hbadisc.c
6191
rc = lpfc_issue_gidft(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6195
vport->fc_ns_retry = 0;
drivers/scsi/lpfc/lpfc_hbadisc.c
6205
lpfc_issue_reg_vpi(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6207
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6208
vport->port_state = LPFC_VPORT_READY;
drivers/scsi/lpfc/lpfc_hbadisc.c
6215
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
6227
initlinkmbox->vport = vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
6238
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
6241
lpfc_disc_flush_list(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6249
lpfc_issue_reg_vpi(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6251
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6252
vport->port_state = LPFC_VPORT_READY;
drivers/scsi/lpfc/lpfc_hbadisc.c
6258
if (test_bit(FC_RSCN_MODE, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6259
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
6263
vport->fc_ns_retry, LPFC_MAX_NS_RETRY,
drivers/scsi/lpfc/lpfc_hbadisc.c
6264
vport->port_state, vport->gidft_inp);
drivers/scsi/lpfc/lpfc_hbadisc.c
6267
lpfc_els_flush_cmd(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6269
lpfc_els_flush_rscn(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
627
vport = phba->pport;
drivers/scsi/lpfc/lpfc_hbadisc.c
6270
lpfc_disc_flush_list(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6275
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
6278
"vport State x%x\n", vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
6285
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
629
vport = vports[i];
drivers/scsi/lpfc/lpfc_hbadisc.c
6292
lpfc_issue_clear_la(phba, vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
630
if (!vport)
drivers/scsi/lpfc/lpfc_hbadisc.c
6300
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_hbadisc.c
6312
lpfc_disc_flush_list(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6319
vport->port_state = LPFC_VPORT_READY;
drivers/scsi/lpfc/lpfc_hbadisc.c
633
if (vport->vmid_flag & LPFC_VMID_ISSUE_QFPA) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6335
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
634
if (!lpfc_issue_els_qfpa(vport))
drivers/scsi/lpfc/lpfc_hbadisc.c
6343
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_hbadisc.c
6344
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE | LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_hbadisc.c
635
vport->vmid_flag &= ~LPFC_VMID_ISSUE_QFPA;
drivers/scsi/lpfc/lpfc_hbadisc.c
6355
if (vport->port_type == LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6357
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_DHBA, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
6359
lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_DPRT, 0);
drivers/scsi/lpfc/lpfc_hbadisc.c
6387
__lpfc_find_node(struct lpfc_vport *vport, node_filter filter, void *param)
drivers/scsi/lpfc/lpfc_hbadisc.c
6391
list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6393
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE_VERBOSE,
drivers/scsi/lpfc/lpfc_hbadisc.c
6404
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
6414
__lpfc_findnode_rpi(struct lpfc_vport *vport, uint16_t rpi)
drivers/scsi/lpfc/lpfc_hbadisc.c
6416
return __lpfc_find_node(vport, lpfc_filter_by_rpi, &rpi);
drivers/scsi/lpfc/lpfc_hbadisc.c
6424
lpfc_findnode_wwpn(struct lpfc_vport *vport, struct lpfc_name *wwpn)
drivers/scsi/lpfc/lpfc_hbadisc.c
6426
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6430
ndlp = __lpfc_find_node(vport, lpfc_filter_by_wwpn, wwpn);
drivers/scsi/lpfc/lpfc_hbadisc.c
6441
lpfc_findnode_rpi(struct lpfc_vport *vport, uint16_t rpi)
drivers/scsi/lpfc/lpfc_hbadisc.c
6443
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
6448
ndlp = __lpfc_findnode_rpi(vport, rpi);
drivers/scsi/lpfc/lpfc_hbadisc.c
6469
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
6493
list_for_each_entry(vport, &phba->port_list, listentry) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6494
if (vport->vpi == i) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6496
return vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
6504
lpfc_nlp_init(struct lpfc_vport *vport, uint32_t did)
drivers/scsi/lpfc/lpfc_hbadisc.c
6509
if (vport->phba->sli_rev == LPFC_SLI_REV4) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6510
rpi = lpfc_sli4_alloc_rpi(vport->phba);
drivers/scsi/lpfc/lpfc_hbadisc.c
6515
ndlp = mempool_alloc(vport->phba->nlp_mem_pool, GFP_KERNEL);
drivers/scsi/lpfc/lpfc_hbadisc.c
6517
if (vport->phba->sli_rev == LPFC_SLI_REV4)
drivers/scsi/lpfc/lpfc_hbadisc.c
6518
lpfc_sli4_free_rpi(vport->phba, rpi);
drivers/scsi/lpfc/lpfc_hbadisc.c
6526
lpfc_initialize_node(vport, ndlp, did);
drivers/scsi/lpfc/lpfc_hbadisc.c
6528
if (vport->phba->sli_rev == LPFC_SLI_REV4) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6530
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_hbadisc.c
6538
mempool_alloc(vport->phba->active_rrq_pool,
drivers/scsi/lpfc/lpfc_hbadisc.c
6547
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
6562
struct lpfc_vport *vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
6564
lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
6568
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
6574
lpfc_cancel_retry_delay_tmo(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
6575
lpfc_cleanup_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
6580
if (vport->phba->sli_rev == LPFC_SLI_REV4) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6581
lpfc_sli4_free_rpi(vport->phba, ndlp->nlp_rpi);
drivers/scsi/lpfc/lpfc_hbadisc.c
6588
ndlp->vport = NULL;
drivers/scsi/lpfc/lpfc_hbadisc.c
6636
lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_NODE,
drivers/scsi/lpfc/lpfc_hbadisc.c
6718
struct lpfc_vport *vport = mboxq->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
6724
mboxq->u.mb.mbxStatus, vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
6741
struct lpfc_vport *vport = mboxq->vport;
drivers/scsi/lpfc/lpfc_hbadisc.c
6747
mboxq->u.mb.mbxStatus, vport->port_state);
drivers/scsi/lpfc/lpfc_hbadisc.c
6842
mbox->vport = phba->pport;
drivers/scsi/lpfc/lpfc_hbadisc.c
71
static void lpfc_disc_flush_list(struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
7209
lpfc_error_lost_link(struct lpfc_vport *vport, u32 ulp_status, u32 ulp_word4)
drivers/scsi/lpfc/lpfc_hbadisc.c
7218
lpfc_printf_vlog(vport, KERN_WARNING, LOG_SLI | LOG_ELS,
drivers/scsi/lpfc/lpfc_hbadisc.c
778
shost = lpfc_shost_from_vport(fast_evt_data->vport);
drivers/scsi/lpfc/lpfc_hbadisc.c
875
lpfc_sli_abts_recover_port(ndlp->vport, ndlp);
drivers/scsi/lpfc/lpfc_hbadisc.c
945
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_init.c
105
static int lpfc_vmid_res_alloc(struct lpfc_hba *phba, struct lpfc_vport *vport);
drivers/scsi/lpfc/lpfc_init.c
13896
struct lpfc_vport *vport = NULL;
drivers/scsi/lpfc/lpfc_init.c
13961
vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
13962
error = lpfc_alloc_sysfs_attr(vport);
drivers/scsi/lpfc/lpfc_init.c
13969
shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */
drivers/scsi/lpfc/lpfc_init.c
14023
lpfc_free_sysfs_attr(vport);
drivers/scsi/lpfc/lpfc_init.c
14056
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_init.c
14058
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
14061
set_bit(FC_UNLOADING, &vport->load_flag);
drivers/scsi/lpfc/lpfc_init.c
14063
lpfc_free_sysfs_attr(vport);
drivers/scsi/lpfc/lpfc_init.c
14080
lpfc_cleanup(vport);
drivers/scsi/lpfc/lpfc_init.c
14100
list_del_init(&vport->listentry);
drivers/scsi/lpfc/lpfc_init.c
14103
lpfc_debugfs_terminate(vport);
drivers/scsi/lpfc/lpfc_init.c
1464
pmboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
14717
struct lpfc_vport *vport = NULL;
drivers/scsi/lpfc/lpfc_init.c
14808
vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
14809
shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */
drivers/scsi/lpfc/lpfc_init.c
14812
error = lpfc_alloc_sysfs_attr(vport);
drivers/scsi/lpfc/lpfc_init.c
14844
error = lpfc_nvme_create_localport(vport);
drivers/scsi/lpfc/lpfc_init.c
14867
lpfc_free_sysfs_attr(vport);
drivers/scsi/lpfc/lpfc_init.c
14900
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_init.c
14902
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
14906
set_bit(FC_UNLOADING, &vport->load_flag);
drivers/scsi/lpfc/lpfc_init.c
14910
lpfc_free_sysfs_attr(vport);
drivers/scsi/lpfc/lpfc_init.c
14929
lpfc_cleanup(vport);
drivers/scsi/lpfc/lpfc_init.c
14931
lpfc_nvme_destroy_localport(vport);
drivers/scsi/lpfc/lpfc_init.c
14942
lpfc_debugfs_terminate(vport);
drivers/scsi/lpfc/lpfc_init.c
14946
list_del_init(&vport->listentry);
drivers/scsi/lpfc/lpfc_init.c
1781
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
1883
shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_init.c
1987
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
2159
shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_init.c
2192
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
2216
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_init.c
3054
lpfc_cleanup(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_init.c
3056
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
3061
lpfc_port_link_failure(vport);
drivers/scsi/lpfc/lpfc_init.c
3065
lpfc_vmid_vport_cleanup(vport);
drivers/scsi/lpfc/lpfc_init.c
3067
list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_init.c
3073
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_init.c
3077
lpfc_disc_state_machine(vport, ndlp, NULL,
drivers/scsi/lpfc/lpfc_init.c
3093
if (test_bit(FC_UNLOADING, &vport->load_flag) &&
drivers/scsi/lpfc/lpfc_init.c
3095
lpfc_sli_flush_io_rings(vport->phba);
drivers/scsi/lpfc/lpfc_init.c
3101
while (!list_empty(&vport->fc_nodes)) {
drivers/scsi/lpfc/lpfc_init.c
3103
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_init.c
3107
&vport->fc_nodes, nlp_listp) {
drivers/scsi/lpfc/lpfc_init.c
3108
lpfc_printf_vlog(ndlp->vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_init.c
3124
lpfc_cleanup_vports_rrqs(vport, NULL);
drivers/scsi/lpfc/lpfc_init.c
3136
lpfc_stop_vport_timers(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_init.c
3138
timer_delete_sync(&vport->els_tmofunc);
drivers/scsi/lpfc/lpfc_init.c
3139
timer_delete_sync(&vport->delayed_disc_tmo);
drivers/scsi/lpfc/lpfc_init.c
3140
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_init.c
3429
lpfc_printf_vlog(ndlp->vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_init.c
3439
lpfc_printf_vlog(ndlp->vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_init.c
352
lpfc_update_vport_wwn(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_init.c
354
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
360
if (vport->fc_nodename.u.wwn[0] == 0)
drivers/scsi/lpfc/lpfc_init.c
361
memcpy(&vport->fc_nodename, &vport->fc_sparam.nodeName,
drivers/scsi/lpfc/lpfc_init.c
364
memcpy(&vport->fc_sparam.nodeName, &vport->fc_nodename,
drivers/scsi/lpfc/lpfc_init.c
3704
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_init.c
371
if (vport->fc_portname.u.wwn[0] != 0 &&
drivers/scsi/lpfc/lpfc_init.c
3711
vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
3713
if (!test_bit(FC_OFFLINE_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_init.c
372
memcmp(&vport->fc_portname, &vport->fc_sparam.portName,
drivers/scsi/lpfc/lpfc_init.c
374
vport->vport_flag |= FAWWPN_PARAM_CHG;
drivers/scsi/lpfc/lpfc_init.c
377
vport->port_type == LPFC_PHYSICAL_PORT &&
drivers/scsi/lpfc/lpfc_init.c
3811
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
3819
if (test_bit(FC_OFFLINE_MODE, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_init.c
386
wwn_to_u64(vport->fc_portname.u.wwn),
drivers/scsi/lpfc/lpfc_init.c
388
(vport->fc_sparam.portName.u.wwn),
drivers/scsi/lpfc/lpfc_init.c
389
vport->vport_flag,
drivers/scsi/lpfc/lpfc_init.c
391
memcpy(&vport->fc_portname, &vport->fc_sparam.portName,
drivers/scsi/lpfc/lpfc_init.c
396
if (vport->fc_portname.u.wwn[0] == 0)
drivers/scsi/lpfc/lpfc_init.c
397
memcpy(&vport->fc_portname, &vport->fc_sparam.portName,
drivers/scsi/lpfc/lpfc_init.c
400
memcpy(&vport->fc_sparam.portName, &vport->fc_portname,
drivers/scsi/lpfc/lpfc_init.c
420
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
421
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_init.c
453
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_init.c
4636
lpfc_vmid_res_alloc(struct lpfc_hba *phba, struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_init.c
4645
vport->vmid =
drivers/scsi/lpfc/lpfc_init.c
4647
if (!vport->vmid)
drivers/scsi/lpfc/lpfc_init.c
4650
rwlock_init(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_init.c
4653
vport->vmid_priority_tagging = phba->cfg_vmid_priority_tagging;
drivers/scsi/lpfc/lpfc_init.c
4654
vport->vmid_inactivity_timeout =
drivers/scsi/lpfc/lpfc_init.c
4656
vport->max_vmid = phba->cfg_max_vmid;
drivers/scsi/lpfc/lpfc_init.c
4657
vport->cur_vmid_cnt = 0;
drivers/scsi/lpfc/lpfc_init.c
4659
vport->vmid_priority_range = bitmap_zalloc
drivers/scsi/lpfc/lpfc_init.c
4662
if (!vport->vmid_priority_range) {
drivers/scsi/lpfc/lpfc_init.c
4663
kfree(vport->vmid);
drivers/scsi/lpfc/lpfc_init.c
4667
hash_init(vport->hash_table);
drivers/scsi/lpfc/lpfc_init.c
4691
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_init.c
470
memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm));
drivers/scsi/lpfc/lpfc_init.c
474
lpfc_update_vport_wwn(vport);
drivers/scsi/lpfc/lpfc_init.c
4752
vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_init.c
4753
vport->phba = phba;
drivers/scsi/lpfc/lpfc_init.c
4754
set_bit(FC_LOADING, &vport->load_flag);
drivers/scsi/lpfc/lpfc_init.c
4755
set_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_init.c
4756
vport->fc_rscn_flush = 0;
drivers/scsi/lpfc/lpfc_init.c
4757
atomic_set(&vport->fc_plogi_cnt, 0);
drivers/scsi/lpfc/lpfc_init.c
4758
atomic_set(&vport->fc_adisc_cnt, 0);
drivers/scsi/lpfc/lpfc_init.c
4759
atomic_set(&vport->fc_reglogin_cnt, 0);
drivers/scsi/lpfc/lpfc_init.c
4760
atomic_set(&vport->fc_prli_cnt, 0);
drivers/scsi/lpfc/lpfc_init.c
4761
atomic_set(&vport->fc_unmap_cnt, 0);
drivers/scsi/lpfc/lpfc_init.c
4762
atomic_set(&vport->fc_map_cnt, 0);
drivers/scsi/lpfc/lpfc_init.c
4763
atomic_set(&vport->fc_npr_cnt, 0);
drivers/scsi/lpfc/lpfc_init.c
4764
atomic_set(&vport->fc_unused_cnt, 0);
drivers/scsi/lpfc/lpfc_init.c
4765
lpfc_get_vport_cfgparam(vport);
drivers/scsi/lpfc/lpfc_init.c
4768
vport->cfg_enable_fc4_type = phba->cfg_enable_fc4_type;
drivers/scsi/lpfc/lpfc_init.c
477
fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn);
drivers/scsi/lpfc/lpfc_init.c
4772
shost->max_lun = vport->cfg_max_luns;
drivers/scsi/lpfc/lpfc_init.c
478
fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn);
drivers/scsi/lpfc/lpfc_init.c
4817
vport->port_type = LPFC_NPIV_PORT;
drivers/scsi/lpfc/lpfc_init.c
4820
vport->port_type = LPFC_PHYSICAL_PORT;
drivers/scsi/lpfc/lpfc_init.c
4826
vport->port_type, shost->sg_tablesize,
drivers/scsi/lpfc/lpfc_init.c
4830
rc = lpfc_vmid_res_alloc(phba, vport);
drivers/scsi/lpfc/lpfc_init.c
4836
INIT_LIST_HEAD(&vport->fc_nodes);
drivers/scsi/lpfc/lpfc_init.c
4837
spin_lock_init(&vport->fc_nodes_list_lock);
drivers/scsi/lpfc/lpfc_init.c
4838
INIT_LIST_HEAD(&vport->rcv_buffer_list);
drivers/scsi/lpfc/lpfc_init.c
4839
spin_lock_init(&vport->work_port_lock);
drivers/scsi/lpfc/lpfc_init.c
4841
timer_setup(&vport->fc_disctmo, lpfc_disc_timeout, 0);
drivers/scsi/lpfc/lpfc_init.c
4843
timer_setup(&vport->els_tmofunc, lpfc_els_timeout, 0);
drivers/scsi/lpfc/lpfc_init.c
4845
timer_setup(&vport->delayed_disc_tmo, lpfc_delayed_disc_tmo, 0);
drivers/scsi/lpfc/lpfc_init.c
4855
list_add_tail(&vport->listentry, &phba->port_list);
drivers/scsi/lpfc/lpfc_init.c
4857
return vport;
drivers/scsi/lpfc/lpfc_init.c
486
outptr = &vport->fc_nodename.u.s.IEEE[0];
drivers/scsi/lpfc/lpfc_init.c
4860
kfree(vport->vmid);
drivers/scsi/lpfc/lpfc_init.c
4861
bitmap_free(vport->vmid_priority_range);
drivers/scsi/lpfc/lpfc_init.c
4876
destroy_port(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_init.c
4878
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_init.c
4879
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
4881
lpfc_debugfs_terminate(vport);
drivers/scsi/lpfc/lpfc_init.c
4886
list_del_init(&vport->listentry);
drivers/scsi/lpfc/lpfc_init.c
4889
lpfc_cleanup(vport);
drivers/scsi/lpfc/lpfc_init.c
4929
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_init.c
4930
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
4935
if (test_bit(FC_UNLOADING, &vport->load_flag)) {
drivers/scsi/lpfc/lpfc_init.c
4955
if (vport->port_state != LPFC_VPORT_READY)
drivers/scsi/lpfc/lpfc_init.c
4957
if (vport->num_disc_nodes || vport->fc_prli_sent)
drivers/scsi/lpfc/lpfc_init.c
4959
if (!atomic_read(&vport->fc_map_cnt) &&
drivers/scsi/lpfc/lpfc_init.c
4974
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
drivers/scsi/lpfc/lpfc_init.c
4975
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
5016
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_init.c
5017
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
5022
fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn);
drivers/scsi/lpfc/lpfc_init.c
5023
fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn);
drivers/scsi/lpfc/lpfc_init.c
5031
lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost),
drivers/scsi/lpfc/lpfc_init.c
5037
(((uint32_t) vport->fc_sparam.cmn.bbRcvSizeMsb & 0x0F) << 8) |
drivers/scsi/lpfc/lpfc_init.c
5038
(uint32_t) vport->fc_sparam.cmn.bbRcvSizeLsb;
drivers/scsi/lpfc/lpfc_init.c
5040
fc_host_dev_loss_tmo(shost) = vport->cfg_devloss_tmo;
drivers/scsi/lpfc/lpfc_init.c
5049
clear_bit(FC_LOADING, &vport->load_flag);
drivers/scsi/lpfc/lpfc_init.c
508
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_init.c
5463
pmb->vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
598
mod_timer(&vport->els_tmofunc,
drivers/scsi/lpfc/lpfc_init.c
6354
pmb->vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
639
pmb->vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
659
pmb->vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
6672
lpfc_sli4_perform_vport_cvl(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_init.c
6678
if (!vport)
drivers/scsi/lpfc/lpfc_init.c
6680
phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
6683
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_init.c
6686
ndlp = lpfc_nlp_init(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_init.c
6692
lpfc_enqueue_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_init.c
6698
if ((vport != phba->pport) && (vport->port_state < LPFC_FDISC)
drivers/scsi/lpfc/lpfc_init.c
6699
&& (vport->port_state != LPFC_VPORT_FAILED))
drivers/scsi/lpfc/lpfc_init.c
6701
shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_init.c
6704
lpfc_linkdown_port(vport);
drivers/scsi/lpfc/lpfc_init.c
6705
lpfc_cleanup_pending_mbox(vport);
drivers/scsi/lpfc/lpfc_init.c
6706
set_bit(FC_VPORT_CVL_RCVD, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_init.c
6744
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_init.c
6890
vport = lpfc_find_vport_by_vpid(phba,
drivers/scsi/lpfc/lpfc_init.c
6892
ndlp = lpfc_sli4_perform_vport_cvl(vport);
drivers/scsi/lpfc/lpfc_init.c
6916
if (!test_bit(FC_UNLOADING, &vport->load_flag) &&
drivers/scsi/lpfc/lpfc_init.c
6926
vport->port_state = LPFC_FDISC;
drivers/scsi/lpfc/lpfc_init.c
763
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
774
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_init.c
9061
lpfc_setup_fdmi_mask(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_init.c
9063
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_init.c
9065
set_bit(FC_ALLOW_FDMI, &vport->load_flag);
drivers/scsi/lpfc/lpfc_init.c
9069
vport->fdmi_hba_mask = LPFC_FDMI2_HBA_ATTR;
drivers/scsi/lpfc/lpfc_init.c
9071
vport->fdmi_port_mask = LPFC_FDMI2_SMART_ATTR;
drivers/scsi/lpfc/lpfc_init.c
9073
vport->fdmi_port_mask = LPFC_FDMI2_PORT_ATTR;
drivers/scsi/lpfc/lpfc_init.c
9076
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_init.c
9078
vport->fdmi_hba_mask, vport->fdmi_port_mask);
drivers/scsi/lpfc/lpfc_init.c
9095
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_init.c
9105
vport = lpfc_create_port(phba, phba->brd_no, &phba->pcidev->dev);
drivers/scsi/lpfc/lpfc_init.c
9106
if (!vport)
drivers/scsi/lpfc/lpfc_init.c
9109
shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_init.c
9110
phba->pport = vport;
drivers/scsi/lpfc/lpfc_init.c
9120
lpfc_debugfs_initialize(vport);
drivers/scsi/lpfc/lpfc_init.c
9124
lpfc_setup_fdmi_mask(vport);
drivers/scsi/lpfc/lpfc_init.c
9143
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_init.c
9146
destroy_port(vport);
drivers/scsi/lpfc/lpfc_logmsg.h
58
#define lpfc_vlog_msg(vport, level, mask, fmt, arg...) \
drivers/scsi/lpfc/lpfc_logmsg.h
59
{ if (((mask) & (vport)->cfg_log_verbose) || (level[1] <= '5')) \
drivers/scsi/lpfc/lpfc_logmsg.h
60
dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \
drivers/scsi/lpfc/lpfc_logmsg.h
61
fmt, (vport)->phba->brd_no, vport->vpi, ##arg); }
drivers/scsi/lpfc/lpfc_logmsg.h
74
#define lpfc_printf_vlog(vport, level, mask, fmt, arg...) \
drivers/scsi/lpfc/lpfc_logmsg.h
76
{ if (((mask) & (vport)->cfg_log_verbose) || (level[1] <= '3')) { \
drivers/scsi/lpfc/lpfc_logmsg.h
77
if ((mask) & LOG_TRACE_EVENT && !(vport)->cfg_log_verbose) \
drivers/scsi/lpfc/lpfc_logmsg.h
78
lpfc_dmp_dbg((vport)->phba); \
drivers/scsi/lpfc/lpfc_logmsg.h
79
dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \
drivers/scsi/lpfc/lpfc_logmsg.h
80
fmt, (vport)->phba->brd_no, vport->vpi, ##arg); \
drivers/scsi/lpfc/lpfc_logmsg.h
81
} else if (!(vport)->cfg_log_verbose) \
drivers/scsi/lpfc/lpfc_logmsg.h
82
lpfc_dbg_print((vport)->phba, "%d:(%d):" fmt, \
drivers/scsi/lpfc/lpfc_logmsg.h
83
(vport)->phba->brd_no, (vport)->vpi, ##arg); \
drivers/scsi/lpfc/lpfc_mbox.c
1632
if (!mboxq->vport) {
drivers/scsi/lpfc/lpfc_mbox.c
2182
lpfc_init_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_mbox.c
2187
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_mbox.c
2194
vport->phba->sli4_hba.vfi_ids[vport->vfi]);
drivers/scsi/lpfc/lpfc_mbox.c
2196
vport->phba->vpi_ids[vport->vpi]);
drivers/scsi/lpfc/lpfc_mbox.c
2198
vport->phba->fcf.fcfi);
drivers/scsi/lpfc/lpfc_mbox.c
2213
lpfc_reg_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport, dma_addr_t phys)
drivers/scsi/lpfc/lpfc_mbox.c
2216
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_mbox.c
2224
phba->sli4_hba.vfi_ids[vport->vfi]);
drivers/scsi/lpfc/lpfc_mbox.c
2226
bf_set(lpfc_reg_vfi_vpi, reg_vfi, phba->vpi_ids[vport->vpi]);
drivers/scsi/lpfc/lpfc_mbox.c
2227
memcpy(reg_vfi->wwn, &vport->fc_portname, sizeof(struct lpfc_name));
drivers/scsi/lpfc/lpfc_mbox.c
2235
reg_vfi->bde.tus.f.bdeSize = sizeof(vport->fc_sparam);
drivers/scsi/lpfc/lpfc_mbox.c
2238
bf_set(lpfc_reg_vfi_nport_id, reg_vfi, vport->fc_myDID);
drivers/scsi/lpfc/lpfc_mbox.c
2242
test_bit(FC_VFI_REGISTERED, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_mbox.c
2267
lpfc_printf_vlog(vport, KERN_INFO, LOG_MBOX,
drivers/scsi/lpfc/lpfc_mbox.c
2271
vport->fc_myDID,
drivers/scsi/lpfc/lpfc_mbox.c
2273
phba->sli4_hba.vfi_ids[vport->vfi],
drivers/scsi/lpfc/lpfc_mbox.c
2274
phba->vpi_ids[vport->vpi],
drivers/scsi/lpfc/lpfc_mbox.c
2275
reg_vfi->wwn[0], reg_vfi->wwn[1], vport->fc_flag,
drivers/scsi/lpfc/lpfc_mbox.c
2276
vport->port_state, phba->fc_topology_changed,
drivers/scsi/lpfc/lpfc_mbox.c
2315
lpfc_unreg_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_mbox.c
2320
vport->phba->sli4_hba.vfi_ids[vport->vfi]);
drivers/scsi/lpfc/lpfc_mbox.c
2392
mbox->vport = rdp_context->ndlp->vport;
drivers/scsi/lpfc/lpfc_mbox.c
2428
mbox->vport = rdp_context->ndlp->vport;
drivers/scsi/lpfc/lpfc_mbox.c
419
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_mbox.c
433
mb->un.varCfgLnk.myId = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_mbox.c
898
lpfc_sli4_unreg_all_rpis(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_mbox.c
900
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_mbox.c
913
lpfc_unreg_login(phba, vport->vpi, phba->vpi_ids[vport->vpi],
drivers/scsi/lpfc/lpfc_mbox.c
916
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_mbox.c
939
lpfc_reg_vpi(struct lpfc_vport *vport, LPFC_MBOXQ_t *pmb)
drivers/scsi/lpfc/lpfc_mbox.c
942
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_mbox.c
949
!test_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_mbox.c
952
mb->un.varRegVpi.vpi = phba->vpi_ids[vport->vpi];
drivers/scsi/lpfc/lpfc_mbox.c
953
mb->un.varRegVpi.sid = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_mbox.c
955
mb->un.varRegVpi.vfi = phba->sli4_hba.vfi_ids[vport->vfi];
drivers/scsi/lpfc/lpfc_mbox.c
957
mb->un.varRegVpi.vfi = vport->vfi + vport->phba->vfi_base;
drivers/scsi/lpfc/lpfc_mbox.c
958
memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname,
drivers/scsi/lpfc/lpfc_nportdisc.c
1038
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1056
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1060
if (vport->cfg_enable_fc4_type != LPFC_ENABLE_NVME)
drivers/scsi/lpfc/lpfc_nportdisc.c
1066
lpfc_disc_set_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_nportdisc.c
1073
if (!test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1075
if (vport->cfg_use_adisc &&
drivers/scsi/lpfc/lpfc_nportdisc.c
1076
(test_bit(FC_RSCN_MODE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_nportdisc.c
1085
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1100
lpfc_release_rpi(struct lpfc_hba *phba, struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1110
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_nportdisc.c
1123
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1126
lpfc_unreg_login(phba, vport->vpi, rpi, pmb);
drivers/scsi/lpfc/lpfc_nportdisc.c
1128
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_nportdisc.c
1136
(!test_bit(FC_OFFLINE_MODE, &vport->fc_flag)))
drivers/scsi/lpfc/lpfc_nportdisc.c
1139
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_nportdisc.c
1153
lpfc_disc_illegal(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1160
phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1165
lpfc_release_rpi(phba, vport, ndlp, rpi);
drivers/scsi/lpfc/lpfc_nportdisc.c
1167
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1176
lpfc_cmpl_plogi_illegal(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1185
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1196
lpfc_rcv_plogi_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1203
if (lpfc_rcv_plogi(vport, ndlp, cmdiocb)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1210
lpfc_rcv_els_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1213
lpfc_issue_els_logo(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_nportdisc.c
1218
lpfc_rcv_logo_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1224
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
1230
lpfc_cmpl_logo_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1237
lpfc_device_rm_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1244
lpfc_device_recov_unused_node(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1252
lpfc_rcv_plogi_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1255
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1269
port_cmp = memcmp(&vport->fc_portname, &sp->portName,
drivers/scsi/lpfc/lpfc_nportdisc.c
1277
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1280
if (lpfc_rcv_plogi(vport, ndlp, cmdiocb) &&
drivers/scsi/lpfc/lpfc_nportdisc.c
1282
vport->num_disc_nodes) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1285
lpfc_more_plogi(vport);
drivers/scsi/lpfc/lpfc_nportdisc.c
1286
if (vport->num_disc_nodes == 0) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1287
clear_bit(FC_NDISC_ACTIVE, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_nportdisc.c
1288
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_nportdisc.c
1289
lpfc_end_rscn(vport);
drivers/scsi/lpfc/lpfc_nportdisc.c
1298
lpfc_rcv_prli_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1307
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
1312
lpfc_rcv_logo_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1318
if (vport->phba->sli_rev == LPFC_SLI_REV3)
drivers/scsi/lpfc/lpfc_nportdisc.c
1321
lpfc_els_abort(vport->phba, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1323
lpfc_rcv_logo(vport, ndlp, cmdiocb, ELS_CMD_LOGO);
drivers/scsi/lpfc/lpfc_nportdisc.c
1328
lpfc_rcv_els_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1331
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1338
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
1340
lpfc_issue_els_logo(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_nportdisc.c
1348
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1354
lpfc_cmpl_plogi_plogi_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1359
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1397
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1401
if (!lpfc_check_sparm(vport, ndlp, sp, CLASS3, 0))
drivers/scsi/lpfc/lpfc_nportdisc.c
1404
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_nportdisc.c
1408
if (vport->cfg_fcp_class == 2 && (sp->cls2.classValid))
drivers/scsi/lpfc/lpfc_nportdisc.c
1423
if (test_bit(FC_PT2PT, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_nportdisc.c
1424
test_bit(FC_PT2PT_PLOGI, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1453
lpfc_issue_reg_vfi(vport);
drivers/scsi/lpfc/lpfc_nportdisc.c
1457
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_nportdisc.c
1470
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_nportdisc.c
1479
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1483
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1493
if (lpfc_reg_rpi(phba, vport->vpi, did,
drivers/scsi/lpfc/lpfc_nportdisc.c
1513
mbox->vport = vport;
drivers/scsi/lpfc/lpfc_nportdisc.c
1516
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1526
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1534
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1544
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_nportdisc.c
1545
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1555
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1560
lpfc_cmpl_logo_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1567
lpfc_cmpl_reglogin_plogi_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1575
phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1580
lpfc_release_rpi(phba, vport, ndlp, rpi);
drivers/scsi/lpfc/lpfc_nportdisc.c
1586
lpfc_device_rm_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1594
lpfc_els_abort(vport->phba, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1596
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1601
lpfc_device_recov_plogi_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1606
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1609
if (lpfc_check_unload_and_clr_rscn(&vport->fc_flag))
drivers/scsi/lpfc/lpfc_nportdisc.c
1616
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1624
lpfc_rcv_plogi_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1627
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1635
if (lpfc_rcv_plogi(vport, ndlp, cmdiocb)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1637
if (vport->num_disc_nodes)
drivers/scsi/lpfc/lpfc_nportdisc.c
1638
lpfc_more_adisc(vport);
drivers/scsi/lpfc/lpfc_nportdisc.c
164
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1643
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_nportdisc.c
1644
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1650
lpfc_rcv_prli_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1655
if (lpfc_rcv_prli_support_check(vport, ndlp, cmdiocb))
drivers/scsi/lpfc/lpfc_nportdisc.c
1656
lpfc_els_rsp_prli_acc(vport, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1661
lpfc_rcv_logo_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1664
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1672
lpfc_rcv_logo(vport, ndlp, cmdiocb, ELS_CMD_LOGO);
drivers/scsi/lpfc/lpfc_nportdisc.c
1677
lpfc_rcv_padisc_adisc_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1685
lpfc_rcv_padisc(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
1690
lpfc_rcv_prlo_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1698
lpfc_rcv_logo(vport, ndlp, cmdiocb, ELS_CMD_PRLO);
drivers/scsi/lpfc/lpfc_nportdisc.c
1703
lpfc_cmpl_adisc_adisc_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1707
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1721
(!lpfc_check_adisc(vport, ndlp, &ap->nodeName, &ap->portName))) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1729
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1730
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1751
lpfc_nlp_set_state(vport, ndlp, NLP_STE_MAPPED_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1754
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1761
lpfc_device_rm_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
1769
lpfc_els_abort(vport->phba, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1771
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1776
lpfc_device_recov_adisc_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1781
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1784
if (lpfc_check_unload_and_clr_rscn(&vport->fc_flag))
drivers/scsi/lpfc/lpfc_nportdisc.c
1791
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1794
lpfc_disc_set_adisc(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1799
lpfc_rcv_plogi_reglogin_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1806
lpfc_rcv_plogi(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
1811
lpfc_rcv_prli_reglogin_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1819
if (!lpfc_rcv_prli_support_check(vport, ndlp, cmdiocb)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1822
if (vport->phba->nvmet_support) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1828
lpfc_rcv_prli(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
1829
lpfc_els_rsp_prli_acc(vport, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1838
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb,
drivers/scsi/lpfc/lpfc_nportdisc.c
1844
lpfc_els_rsp_prli_acc(vport, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
1850
lpfc_rcv_logo_reglogin_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1855
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1886
lpfc_rcv_logo(vport, ndlp, cmdiocb, ELS_CMD_LOGO);
drivers/scsi/lpfc/lpfc_nportdisc.c
1891
lpfc_rcv_padisc_reglogin_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1898
lpfc_rcv_padisc(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
1903
lpfc_rcv_prlo_reglogin_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1911
lpfc_els_rsp_acc(vport, ELS_CMD_PRLO, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
1916
lpfc_cmpl_reglogin_reglogin_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
1921
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
1928
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
1931
did, mb->mbxStatus, vport->port_state,
drivers/scsi/lpfc/lpfc_nportdisc.c
1940
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
1950
lpfc_issue_els_logo(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_nportdisc.c
1961
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_nportdisc.c
1971
if (test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1977
if ((!test_bit(FC_PT2PT_NO_NVME, &vport->fc_flag)) &&
drivers/scsi/lpfc/lpfc_nportdisc.c
1978
(vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH ||
drivers/scsi/lpfc/lpfc_nportdisc.c
1979
vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1982
lpfc_nvme_update_localport(vport);
drivers/scsi/lpfc/lpfc_nportdisc.c
1993
if (vport->cfg_enable_fc4_type != LPFC_ENABLE_FCP) {
drivers/scsi/lpfc/lpfc_nportdisc.c
1994
lpfc_ns_cmd(vport, SLI_CTNS_GFT_ID, 0,
drivers/scsi/lpfc/lpfc_nportdisc.c
2002
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PRLI_ISSUE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2003
if (lpfc_issue_els_prli(vport, ndlp, 0)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
2004
lpfc_issue_els_logo(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_nportdisc.c
2006
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2009
if (test_bit(FC_PT2PT, &vport->fc_flag) && phba->nvmet_support)
drivers/scsi/lpfc/lpfc_nportdisc.c
2010
phba->targetport->port_id = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_nportdisc.c
2018
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2025
lpfc_device_rm_reglogin_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2034
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2039
lpfc_device_recov_reglogin_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2045
if (lpfc_check_unload_and_clr_rscn(&vport->fc_flag))
drivers/scsi/lpfc/lpfc_nportdisc.c
2049
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2055
!vport->phba->nvmet_support)
drivers/scsi/lpfc/lpfc_nportdisc.c
2060
lpfc_disc_set_adisc(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2065
lpfc_rcv_plogi_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2072
lpfc_rcv_plogi(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
2077
lpfc_rcv_prli_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2082
if (!lpfc_rcv_prli_support_check(vport, ndlp, cmdiocb))
drivers/scsi/lpfc/lpfc_nportdisc.c
2084
lpfc_rcv_prli(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
2085
lpfc_els_rsp_prli_acc(vport, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2090
lpfc_rcv_logo_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2096
lpfc_els_abort(vport->phba, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2098
lpfc_rcv_logo(vport, ndlp, cmdiocb, ELS_CMD_LOGO);
drivers/scsi/lpfc/lpfc_nportdisc.c
2103
lpfc_rcv_padisc_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2108
lpfc_rcv_padisc(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
2118
lpfc_rcv_prlo_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2123
lpfc_els_rsp_acc(vport, ELS_CMD_PRLO, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2128
lpfc_cmpl_prli_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2132
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
2157
if ((vport->port_type == LPFC_NPIV_PORT) &&
drivers/scsi/lpfc/lpfc_nportdisc.c
2158
vport->cfg_restrict_login) {
drivers/scsi/lpfc/lpfc_nportdisc.c
2173
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_nportdisc.c
2251
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nportdisc.c
2262
(vport->port_type == LPFC_NPIV_PORT) &&
drivers/scsi/lpfc/lpfc_nportdisc.c
2263
vport->cfg_restrict_login) {
drivers/scsi/lpfc/lpfc_nportdisc.c
2265
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_nportdisc.c
2271
lpfc_issue_els_logo(vport, ndlp, 0);
drivers/scsi/lpfc/lpfc_nportdisc.c
2282
lpfc_nlp_set_state(vport, ndlp, NLP_STE_MAPPED_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2285
lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2287
lpfc_printf_vlog(vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2316
lpfc_device_rm_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2324
lpfc_els_abort(vport->phba, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2326
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2348
lpfc_device_recov_prli_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2353
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
2356
if (lpfc_check_unload_and_clr_rscn(&vport->fc_flag))
drivers/scsi/lpfc/lpfc_nportdisc.c
2363
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2366
lpfc_disc_set_adisc(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
237
lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_nportdisc.c
2371
lpfc_rcv_plogi_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2380
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2385
lpfc_rcv_prli_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2394
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2399
lpfc_rcv_logo_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2405
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2410
lpfc_rcv_padisc_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2419
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2424
lpfc_rcv_prlo_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2433
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2438
lpfc_cmpl_logo_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2442
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2445
lpfc_disc_set_adisc(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2450
lpfc_device_rm_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2458
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2460
lpfc_els_abort(vport->phba, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2461
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2466
lpfc_device_recov_logo_issue(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2479
lpfc_rcv_plogi_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2484
lpfc_rcv_plogi(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
2489
lpfc_rcv_prli_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2494
if (!lpfc_rcv_prli_support_check(vport, ndlp, cmdiocb))
drivers/scsi/lpfc/lpfc_nportdisc.c
2497
lpfc_rcv_prli(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
2498
lpfc_els_rsp_prli_acc(vport, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2503
lpfc_rcv_logo_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2508
lpfc_rcv_logo(vport, ndlp, cmdiocb, ELS_CMD_LOGO);
drivers/scsi/lpfc/lpfc_nportdisc.c
2513
lpfc_rcv_padisc_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2518
lpfc_rcv_padisc(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
2523
lpfc_rcv_prlo_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2528
lpfc_els_rsp_acc(vport, ELS_CMD_PRLO, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2533
lpfc_device_rm_unmap_node(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2538
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2543
lpfc_device_recov_unmap_node(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2549
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2555
lpfc_disc_set_adisc(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2561
lpfc_rcv_plogi_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2566
lpfc_rcv_plogi(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
2571
lpfc_rcv_prli_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2576
if (!lpfc_rcv_prli_support_check(vport, ndlp, cmdiocb))
drivers/scsi/lpfc/lpfc_nportdisc.c
2578
lpfc_els_rsp_prli_acc(vport, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2583
lpfc_rcv_logo_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2588
lpfc_rcv_logo(vport, ndlp, cmdiocb, ELS_CMD_LOGO);
drivers/scsi/lpfc/lpfc_nportdisc.c
2593
lpfc_rcv_padisc_mapped_node(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2599
lpfc_rcv_padisc(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
2604
lpfc_rcv_prlo_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2610
lpfc_sli_abort_iocb(vport, ndlp->nlp_sid, 0, LPFC_CTX_TGT);
drivers/scsi/lpfc/lpfc_nportdisc.c
2614
lpfc_els_rsp_acc(vport, ELS_CMD_PRLO, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2622
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE | LOG_ELS | LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_nportdisc.c
2628
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2634
lpfc_device_recov_mapped_node(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2639
lpfc_disc_set_adisc(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2642
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2652
lpfc_rcv_plogi_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2661
if (lpfc_rcv_plogi(vport, ndlp, cmdiocb)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
2662
lpfc_cancel_retry_delay_tmo(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2669
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2670
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_nportdisc.c
2677
lpfc_rcv_prli_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2686
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2697
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2698
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_nportdisc.c
2705
lpfc_rcv_logo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2710
lpfc_rcv_logo(vport, ndlp, cmdiocb, ELS_CMD_LOGO);
drivers/scsi/lpfc/lpfc_nportdisc.c
2715
lpfc_rcv_padisc_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2720
lpfc_rcv_padisc(vport, ndlp, cmdiocb);
drivers/scsi/lpfc/lpfc_nportdisc.c
2736
lpfc_nlp_set_state(vport, ndlp, NLP_STE_PLOGI_ISSUE);
drivers/scsi/lpfc/lpfc_nportdisc.c
2737
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_nportdisc.c
2744
lpfc_rcv_prlo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2751
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
2766
lpfc_cmpl_plogi_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2769
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
2785
lpfc_cmpl_prli_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2788
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
2798
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2805
lpfc_cmpl_logo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2810
clear_bit(FC_FABRIC, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_nportdisc.c
2811
clear_bit(FC_PUBLIC_LOOP, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_nportdisc.c
2813
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2818
lpfc_cmpl_adisc_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2821
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
2831
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2838
lpfc_cmpl_reglogin_npr_node(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
2847
if (vport->phba->sli_rev < LPFC_SLI_REV4)
drivers/scsi/lpfc/lpfc_nportdisc.c
2851
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2854
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2862
lpfc_device_rm_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2869
lpfc_drop_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
2874
lpfc_device_recov_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
2878
if (lpfc_check_unload_and_clr_rscn(&vport->fc_flag))
drivers/scsi/lpfc/lpfc_nportdisc.c
2881
lpfc_cancel_retry_delay_tmo(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
3078
lpfc_disc_state_machine(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
3095
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_nportdisc.c
3101
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_DSM,
drivers/scsi/lpfc/lpfc_nportdisc.c
3106
rc = (func) (vport, ndlp, arg, evt);
drivers/scsi/lpfc/lpfc_nportdisc.c
3112
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_nportdisc.c
3118
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_DSM,
drivers/scsi/lpfc/lpfc_nportdisc.c
3124
lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_nportdisc.c
3127
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_DSM,
drivers/scsi/lpfc/lpfc_nportdisc.c
328
if (test_bit(FC_PT2PT, &ndlp->vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
329
rc = lpfc_els_rsp_acc(login_mbox->vport, ELS_CMD_PLOGI,
drivers/scsi/lpfc/lpfc_nportdisc.c
332
rc = lpfc_els_rsp_acc(login_mbox->vport, ELS_CMD_PLOGI,
drivers/scsi/lpfc/lpfc_nportdisc.c
348
if (!test_bit(FC_PT2PT, &ndlp->vport->fc_flag) || mb->mbxStatus || rc) {
drivers/scsi/lpfc/lpfc_nportdisc.c
357
lpfc_rcv_plogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
360
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
381
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
385
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
390
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nportdisc.c
394
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
400
if ((lpfc_check_sparm(vport, ndlp, sp, CLASS3, 0) == 0)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
404
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
415
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_nportdisc.c
419
ndlp->nlp_rpi, vport->port_state,
drivers/scsi/lpfc/lpfc_nportdisc.c
420
vport->fc_flag);
drivers/scsi/lpfc/lpfc_nportdisc.c
422
if (vport->cfg_fcp_class == 2 && sp->cls2.classValid)
drivers/scsi/lpfc/lpfc_nportdisc.c
456
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_nportdisc.c
471
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
488
if (test_bit(FC_PT2PT, &vport->fc_flag) &&
drivers/scsi/lpfc/lpfc_nportdisc.c
489
!test_bit(FC_PT2PT_PLOGI, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
492
vport->fc_myDID = bf_get(els_rsp64_sid,
drivers/scsi/lpfc/lpfc_nportdisc.c
495
vport->fc_myDID = icmd->un.rcvels.parmRo;
drivers/scsi/lpfc/lpfc_nportdisc.c
528
rc = lpfc_issue_reg_vfi(vport);
drivers/scsi/lpfc/lpfc_nportdisc.c
536
link_mbox->vport = vport;
drivers/scsi/lpfc/lpfc_nportdisc.c
550
lpfc_can_disctmo(vport);
drivers/scsi/lpfc/lpfc_nportdisc.c
578
lpfc_unreg_rpi(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
587
rc = lpfc_reg_rpi(phba, vport->vpi, remote_did,
drivers/scsi/lpfc/lpfc_nportdisc.c
593
login_mbox->vport = vport;
drivers/scsi/lpfc/lpfc_nportdisc.c
606
test_bit(FC_FABRIC, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
611
if ((vport->port_type == LPFC_NPIV_PORT &&
drivers/scsi/lpfc/lpfc_nportdisc.c
612
vport->cfg_restrict_login)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
637
rc = lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb,
drivers/scsi/lpfc/lpfc_nportdisc.c
64
lpfc_check_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
676
lpfc_nlp_set_state(vport, ndlp, NLP_STE_REG_LOGIN_ISSUE);
drivers/scsi/lpfc/lpfc_nportdisc.c
687
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
702
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nportdisc.c
709
vport = mboxq->vport;
drivers/scsi/lpfc/lpfc_nportdisc.c
713
lpfc_els_rsp_adisc_acc(vport, elsiocb, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
715
lpfc_els_rsp_acc(vport, ELS_CMD_PLOGI, elsiocb,
drivers/scsi/lpfc/lpfc_nportdisc.c
727
lpfc_rcv_padisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
730
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
756
lpfc_check_adisc(vport, ndlp, pnn, ppn)) {
drivers/scsi/lpfc/lpfc_nportdisc.c
763
if (vport->phba->sli_rev == LPFC_SLI_REV4) {
drivers/scsi/lpfc/lpfc_nportdisc.c
791
lpfc_els_rsp_adisc_acc(vport, cmdiocb, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
793
lpfc_els_rsp_acc(vport, ELS_CMD_PLOGI, cmdiocb,
drivers/scsi/lpfc/lpfc_nportdisc.c
809
lpfc_nlp_set_state(vport, ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
82
lpfc_check_sparm(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
820
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
832
lpfc_rcv_logo(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
835
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nportdisc.c
845
lpfc_els_rsp_acc(vport, ELS_CMD_PRLO, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
847
lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
drivers/scsi/lpfc/lpfc_nportdisc.c
85
volatile struct serv_parm *hsp = &vport->fc_sparam;
drivers/scsi/lpfc/lpfc_nportdisc.c
864
if (vport->port_state <= LPFC_FDISC ||
drivers/scsi/lpfc/lpfc_nportdisc.c
865
test_bit(FC_PT2PT, &vport->fc_flag))
drivers/scsi/lpfc/lpfc_nportdisc.c
867
lpfc_linkdown_port(vport);
drivers/scsi/lpfc/lpfc_nportdisc.c
868
set_bit(FC_VPORT_LOGO_RCVD, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_nportdisc.c
888
if (!test_bit(FC_UNLOADING, &vport->load_flag) &&
drivers/scsi/lpfc/lpfc_nportdisc.c
898
vport->port_state = LPFC_FDISC;
drivers/scsi/lpfc/lpfc_nportdisc.c
904
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_nportdisc.c
909
ndlp->nlp_type, vport->fc_flag);
drivers/scsi/lpfc/lpfc_nportdisc.c
914
test_bit(FC_PT2PT, &vport->fc_flag))) ||
drivers/scsi/lpfc/lpfc_nportdisc.c
921
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_nportdisc.c
932
lpfc_nlp_unreg_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_nportdisc.c
935
lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
drivers/scsi/lpfc/lpfc_nportdisc.c
947
lpfc_rcv_prli_support_check(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nportdisc.c
960
if (vport->phba->nvmet_support) {
drivers/scsi/lpfc/lpfc_nportdisc.c
966
if (!vport->nvmei_support && (cmd == ELS_CMD_NVMEPRLI))
drivers/scsi/lpfc/lpfc_nportdisc.c
970
if (vport->port_type == LPFC_NPIV_PORT &&
drivers/scsi/lpfc/lpfc_nportdisc.c
976
lpfc_printf_vlog(vport, KERN_WARNING, LOG_DISCOVERY,
drivers/scsi/lpfc/lpfc_nportdisc.c
981
ndlp->nlp_flag, vport->port_type,
drivers/scsi/lpfc/lpfc_nportdisc.c
986
lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb,
drivers/scsi/lpfc/lpfc_nportdisc.c
992
lpfc_rcv_prli(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nportdisc.c
995
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
1001
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
1079
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME,
drivers/scsi/lpfc/lpfc_nvme.c
1090
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
1105
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_nvme.c
1116
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
1127
if (pci_channel_offline(vport->phba->pcidev) ||
drivers/scsi/lpfc/lpfc_nvme.c
1154
lpfc_printf_vlog(vport,
drivers/scsi/lpfc/lpfc_nvme.c
1207
lpfc_nvme_prep_io_cmd(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nvme.c
121
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME,
drivers/scsi/lpfc/lpfc_nvme.c
1212
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
1312
pwqeq->vport = vport;
drivers/scsi/lpfc/lpfc_nvme.c
1331
lpfc_nvme_prep_io_dma(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nvme.c
1334
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
1346
lpfc_nvme_adj_fcp_sgls(vport, lpfc_ncmd, nCmd);
drivers/scsi/lpfc/lpfc_nvme.c
149
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nvme.c
1512
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nvme.c
1536
vport = lport->vport;
drivers/scsi/lpfc/lpfc_nvme.c
1539
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
1546
phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
1548
if ((unlikely(test_bit(FC_UNLOADING, &vport->load_flag))) ||
drivers/scsi/lpfc/lpfc_nvme.c
155
vport = lport->vport;
drivers/scsi/lpfc/lpfc_nvme.c
1550
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
1559
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
157
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME,
drivers/scsi/lpfc/lpfc_nvme.c
1579
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE | LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
1591
lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE | LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
1633
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
1656
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
168
lpfc_printf_vlog(lport->vport, KERN_INFO, LOG_NVME,
drivers/scsi/lpfc/lpfc_nvme.c
1702
err = lpfc_vmid_get_appid(vport, uuid, iodir,
drivers/scsi/lpfc/lpfc_nvme.c
1722
lpfc_nvme_prep_io_cmd(vport, lpfc_ncmd, ndlp, cstat);
drivers/scsi/lpfc/lpfc_nvme.c
1723
ret = lpfc_nvme_prep_io_dma(vport, lpfc_ncmd);
drivers/scsi/lpfc/lpfc_nvme.c
1725
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
173
if (lport->vport->localport)
drivers/scsi/lpfc/lpfc_nvme.c
1741
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
1744
ret, vport->fc_myDID, ndlp->nlp_DID,
drivers/scsi/lpfc/lpfc_nvme.c
1761
lpfc_printf_vlog(vport,
drivers/scsi/lpfc/lpfc_nvme.c
1839
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nvme.c
1854
vport = lport->vport;
drivers/scsi/lpfc/lpfc_nvme.c
1857
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_ABTS,
drivers/scsi/lpfc/lpfc_nvme.c
1862
phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
1867
if (test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_nvme.c
1871
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_ABTS,
drivers/scsi/lpfc/lpfc_nvme.c
1879
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
1884
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
1892
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
1913
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
192
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nvme.c
1924
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
1938
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
1957
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
1964
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_ABTS,
drivers/scsi/lpfc/lpfc_nvme.c
203
vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_nvme.c
204
if (!vport) {
drivers/scsi/lpfc/lpfc_nvme.c
2119
lpfc_nvme_create_localport(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_nvme.c
2122
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
2132
nfcp_info.node_name = wwn_to_u64(vport->fc_nodename.u.wwn);
drivers/scsi/lpfc/lpfc_nvme.c
2133
nfcp_info.port_name = wwn_to_u64(vport->fc_portname.u.wwn);
drivers/scsi/lpfc/lpfc_nvme.c
2154
&vport->phba->pcidev->dev, &localport);
drivers/scsi/lpfc/lpfc_nvme.c
2156
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME | LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
216
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
2166
vport->localport = localport;
drivers/scsi/lpfc/lpfc_nvme.c
2167
lport->vport = vport;
drivers/scsi/lpfc/lpfc_nvme.c
2168
vport->nvmei_support = 1;
drivers/scsi/lpfc/lpfc_nvme.c
2202
lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nvme.c
2209
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
2228
if (!vport->localport || !qp || !qp->io_wq)
drivers/scsi/lpfc/lpfc_nvme.c
2243
if (!vport->localport ||
drivers/scsi/lpfc/lpfc_nvme.c
2244
test_bit(HBA_PCI_ERR, &vport->phba->bit_flags) ||
drivers/scsi/lpfc/lpfc_nvme.c
2246
test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_nvme.c
2249
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
2253
lport, vport->localport, pending,
drivers/scsi/lpfc/lpfc_nvme.c
2259
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR,
drivers/scsi/lpfc/lpfc_nvme.c
2261
lport, vport->localport);
drivers/scsi/lpfc/lpfc_nvme.c
2276
lpfc_nvme_destroy_localport(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_nvme.c
2284
if (vport->nvmei_support == 0)
drivers/scsi/lpfc/lpfc_nvme.c
2287
localport = vport->localport;
drivers/scsi/lpfc/lpfc_nvme.c
2292
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME,
drivers/scsi/lpfc/lpfc_nvme.c
2305
lpfc_nvme_lport_unreg_wait(vport, lport, &lport_unreg_cmp);
drivers/scsi/lpfc/lpfc_nvme.c
2306
vport->localport = NULL;
drivers/scsi/lpfc/lpfc_nvme.c
2312
vport->nvmei_support = 0;
drivers/scsi/lpfc/lpfc_nvme.c
2314
lpfc_printf_vlog(vport,
drivers/scsi/lpfc/lpfc_nvme.c
2318
lpfc_printf_vlog(vport,
drivers/scsi/lpfc/lpfc_nvme.c
2328
lpfc_nvme_update_localport(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_nvme.c
2334
localport = vport->localport;
drivers/scsi/lpfc/lpfc_nvme.c
2336
lpfc_printf_vlog(vport, KERN_WARNING, LOG_NVME,
drivers/scsi/lpfc/lpfc_nvme.c
234
lpfc_disc_state_machine(vport, ndlp, NULL, NLP_EVT_DEVICE_RM);
drivers/scsi/lpfc/lpfc_nvme.c
2342
lpfc_printf_vlog(vport, KERN_WARNING, LOG_NVME,
drivers/scsi/lpfc/lpfc_nvme.c
2347
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME,
drivers/scsi/lpfc/lpfc_nvme.c
2349
localport, vport->fc_myDID);
drivers/scsi/lpfc/lpfc_nvme.c
2351
localport->port_id = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_nvme.c
2357
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
2364
lpfc_nvme_register_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_nvme.c
2377
lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
2381
localport = vport->localport;
drivers/scsi/lpfc/lpfc_nvme.c
2408
rpinfo.dev_loss_tmo = vport->cfg_devloss_tmo;
drivers/scsi/lpfc/lpfc_nvme.c
2423
dev_warn(&vport->phba->pcidev->dev,
drivers/scsi/lpfc/lpfc_nvme.c
2473
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_nvme.c
2484
lpfc_printf_vlog(vport, KERN_ERR,
drivers/scsi/lpfc/lpfc_nvme.c
2509
lpfc_nvme_rescan_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_nvme.c
2521
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
2535
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
2542
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
2557
lpfc_nvme_unregister_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_nvme.c
2566
localport = vport->localport;
drivers/scsi/lpfc/lpfc_nvme.c
2586
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
261
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nvme.c
2612
if (test_bit(FC_UNLOADING, &vport->load_flag) ||
drivers/scsi/lpfc/lpfc_nvme.c
2613
unlikely(vport->phba->link_state == LPFC_HBA_ERROR))
drivers/scsi/lpfc/lpfc_nvme.c
2626
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
2631
if (test_bit(FC_UNLOADING, &vport->load_flag)) {
drivers/scsi/lpfc/lpfc_nvme.c
2648
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
2650
vport->localport, ndlp->rport, ndlp->nlp_DID);
drivers/scsi/lpfc/lpfc_nvme.c
268
vport = axchg->ndlp->vport;
drivers/scsi/lpfc/lpfc_nvme.c
274
if (!vport->localport ||
drivers/scsi/lpfc/lpfc_nvme.c
275
test_bit(HBA_IOQ_FLUSH, &vport->phba->hba_flag))
drivers/scsi/lpfc/lpfc_nvme.c
278
lport = vport->localport->private;
drivers/scsi/lpfc/lpfc_nvme.c
312
__lpfc_nvme_ls_req_cmp(struct lpfc_hba *phba, struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nvme.c
327
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
350
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
367
struct lpfc_vport *vport = cmdwqe->vport;
drivers/scsi/lpfc/lpfc_nvme.c
374
if (vport->localport) {
drivers/scsi/lpfc/lpfc_nvme.c
375
lport = (struct lpfc_nvme_lport *)vport->localport->private;
drivers/scsi/lpfc/lpfc_nvme.c
386
__lpfc_nvme_ls_req_cmp(phba, vport, cmdwqe, wcqe);
drivers/scsi/lpfc/lpfc_nvme.c
390
lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,
drivers/scsi/lpfc/lpfc_nvme.c
398
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
499
genwqe->vport = vport;
drivers/scsi/lpfc/lpfc_nvme.c
507
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
511
vport->port_state, rc);
drivers/scsi/lpfc/lpfc_nvme.c
517
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC | LOG_ELS,
drivers/scsi/lpfc/lpfc_nvme.c
522
vport->port_state,
drivers/scsi/lpfc/lpfc_nvme.c
543
__lpfc_nvme_ls_req(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nvme.c
555
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
566
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
572
if (test_bit(HBA_IOQ_FLUSH, &vport->phba->hba_flag))
drivers/scsi/lpfc/lpfc_nvme.c
575
if (!vport->phba->sli4_hba.nvmels_wq)
drivers/scsi/lpfc/lpfc_nvme.c
592
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
599
bmp->virt = lpfc_mbuf_alloc(vport->phba, MEM_PRI, &(bmp->phys));
drivers/scsi/lpfc/lpfc_nvme.c
601
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
625
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC,
drivers/scsi/lpfc/lpfc_nvme.c
632
ret = lpfc_nvme_gen_req(vport, bmp, pnvme_lsreq->rqstaddr,
drivers/scsi/lpfc/lpfc_nvme.c
636
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
640
lpfc_mbuf_free(vport->phba, bmp->virt, bmp->phys);
drivers/scsi/lpfc/lpfc_nvme.c
668
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nvme.c
676
vport = lport->vport;
drivers/scsi/lpfc/lpfc_nvme.c
677
if (test_bit(FC_UNLOADING, &vport->load_flag) ||
drivers/scsi/lpfc/lpfc_nvme.c
678
test_bit(HBA_IOQ_FLUSH, &vport->phba->hba_flag))
drivers/scsi/lpfc/lpfc_nvme.c
683
ret = __lpfc_nvme_ls_req(vport, rport->ndlp, pnvme_lsreq,
drivers/scsi/lpfc/lpfc_nvme.c
706
__lpfc_nvme_ls_abort(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nvme.c
709
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
715
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
722
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC | LOG_NVME_ABTS,
drivers/scsi/lpfc/lpfc_nvme.c
752
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_DISC | LOG_NVME_ABTS,
drivers/scsi/lpfc/lpfc_nvme.c
804
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nvme.c
811
vport = lport->vport;
drivers/scsi/lpfc/lpfc_nvme.c
813
if (test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_nvme.c
816
ndlp = lpfc_findnode_did(vport, pnvme_rport->port_id);
drivers/scsi/lpfc/lpfc_nvme.c
818
ret = __lpfc_nvme_ls_abort(vport, ndlp, pnvme_lsreq);
drivers/scsi/lpfc/lpfc_nvme.c
825
lpfc_nvme_adj_fcp_sgls(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nvme.c
829
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvme.c
87
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nvme.c
938
struct lpfc_vport *vport = pwqeIn->vport;
drivers/scsi/lpfc/lpfc_nvme.c
95
vport = lport->vport;
drivers/scsi/lpfc/lpfc_nvme.c
957
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
968
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_nvme.c
97
if (!vport || test_bit(FC_UNLOADING, &vport->load_flag) ||
drivers/scsi/lpfc/lpfc_nvme.c
98
test_bit(HBA_IOQ_FLUSH, &vport->phba->hba_flag))
drivers/scsi/lpfc/lpfc_nvme.c
983
if (unlikely(status && vport->localport)) {
drivers/scsi/lpfc/lpfc_nvme.c
984
lport = (struct lpfc_nvme_lport *)vport->localport->private;
drivers/scsi/lpfc/lpfc_nvme.h
233
int __lpfc_nvme_ls_req(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
drivers/scsi/lpfc/lpfc_nvme.h
238
void __lpfc_nvme_ls_req_cmp(struct lpfc_hba *phba, struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nvme.h
240
int __lpfc_nvme_ls_abort(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nvme.h
49
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_nvmet.c
1283
__lpfc_nvme_ls_req_cmp(phba, cmdwqe->vport, cmdwqe, wcqe);
drivers/scsi/lpfc/lpfc_nvmet.c
1646
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_nvmet.c
1659
pinfo.node_name = wwn_to_u64(vport->fc_nodename.u.wwn);
drivers/scsi/lpfc/lpfc_nvmet.c
1660
pinfo.port_name = wwn_to_u64(vport->fc_portname.u.wwn);
drivers/scsi/lpfc/lpfc_nvmet.c
1661
pinfo.port_id = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_nvmet.c
1747
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_nvmet.c
1752
lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME,
drivers/scsi/lpfc/lpfc_nvmet.c
1754
phba->targetport, vport->fc_myDID);
drivers/scsi/lpfc/lpfc_nvmet.c
1756
phba->targetport->port_id = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_nvmet.c
1871
lpfc_nvmet_rcv_unsol_abort(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_nvmet.c
1875
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_nvmet.c
1911
lpfc_sli4_seq_abort_rsp(vport, fc_hdr, 1);
drivers/scsi/lpfc/lpfc_nvmet.c
1953
lpfc_sli4_seq_abort_rsp(vport, fc_hdr, 1);
drivers/scsi/lpfc/lpfc_nvmet.c
1989
lpfc_sli4_seq_abort_rsp(vport, fc_hdr, 1);
drivers/scsi/lpfc/lpfc_nvmet.c
2000
lpfc_sli4_seq_abort_rsp(vport, fc_hdr, 0);
drivers/scsi/lpfc/lpfc_nvmet.c
2683
nvmewqe->vport = phba->pport;
drivers/scsi/lpfc/lpfc_nvmet.c
2988
nvmewqe->vport = phba->pport;
drivers/scsi/lpfc/lpfc_nvmet.c
3306
abts_wqeq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_nvmet.c
3424
abts_wqeq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_scsi.c
246
lpfc_new_scsi_buf_s3(struct lpfc_vport *vport, int num_to_alloc)
drivers/scsi/lpfc/lpfc_scsi.c
248
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
2533
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_scsi.c
261
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
2655
(fcpdl < vport->cfg_first_burst_size))
drivers/scsi/lpfc/lpfc_scsi.c
3080
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_scsi.c
3239
vport->cfg_first_burst_size &&
drivers/scsi/lpfc/lpfc_scsi.c
3244
init_len = min(total_len, vport->cfg_first_burst_size);
drivers/scsi/lpfc/lpfc_scsi.c
3307
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_scsi.c
3438
vport->cfg_first_burst_size &&
drivers/scsi/lpfc/lpfc_scsi.c
3443
init_len = min(total_len, vport->cfg_first_burst_size);
drivers/scsi/lpfc/lpfc_scsi.c
3551
lpfc_scsi_prep_cmnd_buf(struct lpfc_vport *vport, struct lpfc_io_buf *lpfc_cmd,
drivers/scsi/lpfc/lpfc_scsi.c
3554
return vport->phba->lpfc_scsi_prep_cmnd_buf(vport, lpfc_cmd, tmo);
drivers/scsi/lpfc/lpfc_scsi.c
3568
lpfc_send_scsi_error_event(struct lpfc_hba *phba, struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_scsi.c
3643
fast_path_evt->vport = vport;
drivers/scsi/lpfc/lpfc_scsi.c
382
lpfc_sli4_vport_delete_fcp_xri_aborted(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_scsi.c
3825
lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_io_buf *lpfc_cmd,
drivers/scsi/lpfc/lpfc_scsi.c
384
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
3853
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
3863
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
3889
if (vport->cfg_log_verbose & LOG_FCP)
drivers/scsi/lpfc/lpfc_scsi.c
3892
if (vport->cfg_log_verbose & LOG_FCP_UNDER)
drivers/scsi/lpfc/lpfc_scsi.c
3896
lpfc_printf_vlog(vport, KERN_WARNING, logit,
drivers/scsi/lpfc/lpfc_scsi.c
390
if (!(vport->cfg_enable_fc4_type & LPFC_ENABLE_FCP))
drivers/scsi/lpfc/lpfc_scsi.c
3914
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP_UNDER,
drivers/scsi/lpfc/lpfc_scsi.c
3927
lpfc_printf_vlog(vport, KERN_WARNING,
drivers/scsi/lpfc/lpfc_scsi.c
3947
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
3956
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
3967
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP | LOG_FCP_ERROR,
drivers/scsi/lpfc/lpfc_scsi.c
3998
lpfc_send_scsi_error_event(vport->phba, vport, lpfc_cmd, fcpi_parm);
drivers/scsi/lpfc/lpfc_scsi.c
4017
struct lpfc_vport *vport = pwqeIn->vport;
drivers/scsi/lpfc/lpfc_scsi.c
4031
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
4043
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
408
psb->rdata->pnode->vport == vport)
drivers/scsi/lpfc/lpfc_scsi.c
4105
!(vport->cfg_log_verbose & LOG_FCP_UNDER))
drivers/scsi/lpfc/lpfc_scsi.c
4109
lpfc_printf_vlog(vport, KERN_WARNING, logit,
drivers/scsi/lpfc/lpfc_scsi.c
4118
vport->fc_myDID,
drivers/scsi/lpfc/lpfc_scsi.c
4130
lpfc_handle_fcp_err(vport, lpfc_cmd,
drivers/scsi/lpfc/lpfc_scsi.c
4153
fast_path_evt->vport = vport;
drivers/scsi/lpfc/lpfc_scsi.c
4161
lpfc_printf_vlog(vport, KERN_WARNING, logit,
drivers/scsi/lpfc/lpfc_scsi.c
4171
vport->fc_myDID,
drivers/scsi/lpfc/lpfc_scsi.c
4183
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP | LOG_BG,
drivers/scsi/lpfc/lpfc_scsi.c
4195
lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
drivers/scsi/lpfc/lpfc_scsi.c
4230
lpfc_printf_vlog(vport, KERN_WARNING, logit,
drivers/scsi/lpfc/lpfc_scsi.c
4240
vport->fc_myDID,
drivers/scsi/lpfc/lpfc_scsi.c
4249
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
4261
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
4271
if (vport->cfg_max_scsicmpl_time &&
drivers/scsi/lpfc/lpfc_scsi.c
4273
msecs_to_jiffies(vport->cfg_max_scsicmpl_time))) {
drivers/scsi/lpfc/lpfc_scsi.c
4347
struct lpfc_vport *vport = pIocbIn->vport;
drivers/scsi/lpfc/lpfc_scsi.c
4363
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
4427
!(vport->cfg_log_verbose & LOG_FCP_UNDER))
drivers/scsi/lpfc/lpfc_scsi.c
4431
lpfc_printf_vlog(vport, KERN_WARNING, logit,
drivers/scsi/lpfc/lpfc_scsi.c
4440
vport->fc_myDID,
drivers/scsi/lpfc/lpfc_scsi.c
4450
lpfc_handle_fcp_err(vport, lpfc_cmd,
drivers/scsi/lpfc/lpfc_scsi.c
4472
fast_path_evt->vport = vport;
drivers/scsi/lpfc/lpfc_scsi.c
4511
lpfc_printf_vlog(vport, KERN_WARNING,
drivers/scsi/lpfc/lpfc_scsi.c
4543
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
4551
if (vport->cfg_max_scsicmpl_time &&
drivers/scsi/lpfc/lpfc_scsi.c
4553
msecs_to_jiffies(vport->cfg_max_scsicmpl_time))) {
drivers/scsi/lpfc/lpfc_scsi.c
4611
static int lpfc_scsi_prep_cmnd_buf_s3(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_scsi.c
4635
if (vport->cfg_first_burst_size &&
drivers/scsi/lpfc/lpfc_scsi.c
4641
vport->cfg_first_burst_size);
drivers/scsi/lpfc/lpfc_scsi.c
4672
piocbq->vport = vport;
drivers/scsi/lpfc/lpfc_scsi.c
4688
static int lpfc_scsi_prep_cmnd_buf_s4(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_scsi.c
4692
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
4787
pwqeq->vport = vport;
drivers/scsi/lpfc/lpfc_scsi.c
4805
lpfc_scsi_prep_cmnd(struct lpfc_vport *vport, struct lpfc_io_buf *lpfc_cmd,
drivers/scsi/lpfc/lpfc_scsi.c
4831
lpfc_scsi_prep_cmnd_buf(vport, lpfc_cmd, lpfc_cmd->timeout);
drivers/scsi/lpfc/lpfc_scsi.c
4851
lpfc_scsi_prep_task_mgmt_cmd_s3(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_scsi.c
4865
piocbq->vport = vport;
drivers/scsi/lpfc/lpfc_scsi.c
4874
if (!(vport->phba->sli3_options & LPFC_SLI3_BG_ENABLED))
drivers/scsi/lpfc/lpfc_scsi.c
4911
lpfc_scsi_prep_task_mgmt_cmd_s4(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_scsi.c
4924
pwqeq->vport = vport;
drivers/scsi/lpfc/lpfc_scsi.c
4943
vport->phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]);
drivers/scsi/lpfc/lpfc_scsi.c
4960
lpfc_prep_embed_io(vport->phba, lpfc_cmd);
drivers/scsi/lpfc/lpfc_scsi.c
4965
lpfc_sli4_set_rsp_sgl_last(vport->phba, lpfc_cmd);
drivers/scsi/lpfc/lpfc_scsi.c
5102
struct lpfc_vport *vport = (struct lpfc_vport *) host->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
5103
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
5238
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
5239
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
5294
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP_ERROR,
drivers/scsi/lpfc/lpfc_scsi.c
5327
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP_ERROR,
drivers/scsi/lpfc/lpfc_scsi.c
5345
err = lpfc_scsi_prep_cmnd(vport, lpfc_cmd, ndlp);
drivers/scsi/lpfc/lpfc_scsi.c
5350
if (vport->phba->cfg_enable_bg) {
drivers/scsi/lpfc/lpfc_scsi.c
5351
lpfc_printf_vlog(vport,
drivers/scsi/lpfc/lpfc_scsi.c
5384
err = lpfc_vmid_get_appid(vport, uuid,
drivers/scsi/lpfc/lpfc_scsi.c
5410
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5418
vport->fc_myDID, ndlp->nlp_DID,
drivers/scsi/lpfc/lpfc_scsi.c
5489
void lpfc_vmid_vport_cleanup(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_scsi.c
5494
if (vport->port_type == LPFC_PHYSICAL_PORT)
drivers/scsi/lpfc/lpfc_scsi.c
5495
timer_delete_sync(&vport->phba->inactive_vmid_poll);
drivers/scsi/lpfc/lpfc_scsi.c
5497
kfree(vport->qfpa_res);
drivers/scsi/lpfc/lpfc_scsi.c
5498
kfree(vport->vmid_priority.vmid_range);
drivers/scsi/lpfc/lpfc_scsi.c
5499
kfree(vport->vmid);
drivers/scsi/lpfc/lpfc_scsi.c
5501
if (!hash_empty(vport->hash_table))
drivers/scsi/lpfc/lpfc_scsi.c
5502
hash_for_each(vport->hash_table, bucket, cur, hnode)
drivers/scsi/lpfc/lpfc_scsi.c
5505
vport->qfpa_res = NULL;
drivers/scsi/lpfc/lpfc_scsi.c
5506
vport->vmid_priority.vmid_range = NULL;
drivers/scsi/lpfc/lpfc_scsi.c
5507
vport->vmid = NULL;
drivers/scsi/lpfc/lpfc_scsi.c
5508
vport->cur_vmid_cnt = 0;
drivers/scsi/lpfc/lpfc_scsi.c
5526
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
5527
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
5551
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5559
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5571
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5586
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5599
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5609
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5653
secs_to_jiffies(2*vport->cfg_devloss_tmo));
drivers/scsi/lpfc/lpfc_scsi.c
5659
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
5679
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5722
lpfc_check_fcp_rsp(struct lpfc_vport *vport, struct lpfc_io_buf *lpfc_cmd)
drivers/scsi/lpfc/lpfc_scsi.c
5732
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5740
lpfc_printf_vlog(vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_scsi.c
5755
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5760
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5765
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5770
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5797
lpfc_send_taskmgmt(struct lpfc_vport *vport, struct fc_rport *rport,
drivers/scsi/lpfc/lpfc_scsi.c
5801
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
5823
status = phba->lpfc_scsi_prep_task_mgmt_cmd(vport, lpfc_cmd, lun_id,
drivers/scsi/lpfc/lpfc_scsi.c
5837
iocbq->vport = vport;
drivers/scsi/lpfc/lpfc_scsi.c
5839
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5852
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
5866
ret = lpfc_check_fcp_rsp(vport, lpfc_cmd);
drivers/scsi/lpfc/lpfc_scsi.c
5899
lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct fc_rport *rport)
drivers/scsi/lpfc/lpfc_scsi.c
5907
lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
5917
later = secs_to_jiffies(2 * vport->cfg_devloss_tmo) + jiffies;
drivers/scsi/lpfc/lpfc_scsi.c
5951
lpfc_reset_flush_io_context(struct lpfc_vport *vport, uint16_t tgt_id,
drivers/scsi/lpfc/lpfc_scsi.c
5954
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
5958
cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context);
drivers/scsi/lpfc/lpfc_scsi.c
5960
lpfc_sli_abort_taskmgmt(vport,
drivers/scsi/lpfc/lpfc_scsi.c
5963
later = secs_to_jiffies(2 * vport->cfg_devloss_tmo) + jiffies;
drivers/scsi/lpfc/lpfc_scsi.c
5966
cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context);
drivers/scsi/lpfc/lpfc_scsi.c
5969
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
5996
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
6010
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
6020
status = lpfc_chk_tgt_mapped(vport, rport);
drivers/scsi/lpfc/lpfc_scsi.c
6022
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
6036
status = lpfc_send_taskmgmt(vport, rport, tgt_id, lun_id,
drivers/scsi/lpfc/lpfc_scsi.c
6041
lpfc_printf_vlog(vport, KERN_ERR, logit,
drivers/scsi/lpfc/lpfc_scsi.c
6052
status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
drivers/scsi/lpfc/lpfc_scsi.c
6074
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
6082
u32 dev_loss_tmo = vport->cfg_devloss_tmo;
drivers/scsi/lpfc/lpfc_scsi.c
6091
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
6101
status = lpfc_chk_tgt_mapped(vport, rport);
drivers/scsi/lpfc/lpfc_scsi.c
6103
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
6111
status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
drivers/scsi/lpfc/lpfc_scsi.c
6114
lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
6131
status = lpfc_send_taskmgmt(vport, rport, tgt_id, lun_id,
drivers/scsi/lpfc/lpfc_scsi.c
6145
lpfc_unreg_rpi(vport, pnode);
drivers/scsi/lpfc/lpfc_scsi.c
6153
lpfc_printf_vlog(vport, KERN_ERR, logit,
drivers/scsi/lpfc/lpfc_scsi.c
6169
lpfc_printf_vlog(vport, KERN_ERR, logit,
drivers/scsi/lpfc/lpfc_scsi.c
6180
status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
drivers/scsi/lpfc/lpfc_scsi.c
6205
struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
6206
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
6209
lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
6233
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
6255
struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
6256
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
6280
&vport->fc_portname,
drivers/scsi/lpfc/lpfc_scsi.c
6286
&vport->fc_portname,
drivers/scsi/lpfc/lpfc_scsi.c
6319
num_to_alloc = vport->cfg_lun_queue_depth + 2;
drivers/scsi/lpfc/lpfc_scsi.c
6322
if ((sdev_cnt * (vport->cfg_lun_queue_depth + 2)) < total)
drivers/scsi/lpfc/lpfc_scsi.c
6327
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
6334
lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
drivers/scsi/lpfc/lpfc_scsi.c
6342
num_allocated = lpfc_new_scsi_buf_s3(vport, num_to_alloc);
drivers/scsi/lpfc/lpfc_scsi.c
6344
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_scsi.c
6370
struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
6371
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
6373
scsi_change_queue_depth(sdev, vport->cfg_lun_queue_depth);
drivers/scsi/lpfc/lpfc_scsi.c
6394
struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
6395
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_scsi.c
76
struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata;
drivers/scsi/lpfc/lpfc_scsi.c
78
if (vport->phba->cfg_fof)
drivers/scsi/lpfc/lpfc_sli.c
10046
mboxq->vport ? mboxq->vport->vpi : 0, mbx_cmnd,
drivers/scsi/lpfc/lpfc_sli.c
10096
mboxq->vport ? mboxq->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
10116
mboxq->vport ? mboxq->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
10133
mboxq->vport ? mboxq->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
10150
mboxq->vport ? mboxq->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
10173
mboxq->vport ? mboxq->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
10189
mboxq->vport ? mboxq->vport->vpi : 0xffffff,
drivers/scsi/lpfc/lpfc_sli.c
10275
mboxq->vport ? mboxq->vport->vpi : 0, mbx_cmnd,
drivers/scsi/lpfc/lpfc_sli.c
10281
if (mboxq->vport) {
drivers/scsi/lpfc/lpfc_sli.c
10282
lpfc_debugfs_disc_trc(mboxq->vport,
drivers/scsi/lpfc/lpfc_sli.c
10303
mboxq->vport ? mboxq->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
10473
if (piocb->cmd_cmpl && (!piocb->vport) &&
drivers/scsi/lpfc/lpfc_sli.c
1061
lpfc_get_active_rrq(struct lpfc_vport *vport, uint16_t xri, uint32_t did)
drivers/scsi/lpfc/lpfc_sli.c
1063
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
1072
if (rrq->vport == vport && rrq->xritag == xri &&
drivers/scsi/lpfc/lpfc_sli.c
10810
struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_sli.c
10814
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
10842
cmd->un.elsreq64.myID = vport->fc_myDID;
drivers/scsi/lpfc/lpfc_sli.c
10845
cmd->ulpContext = phba->vpi_ids[vport->vpi];
drivers/scsi/lpfc/lpfc_sli.c
10859
struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_sli.c
10863
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
10900
if (!vport->fc_myDID) {
drivers/scsi/lpfc/lpfc_sli.c
1092
lpfc_cleanup_vports_rrqs(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_sli.c
10931
test_bit(FC_PT2PT, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_sli.c
10933
bf_set(els_req64_sid, &wqe->els_req, vport->fc_myDID);
drivers/scsi/lpfc/lpfc_sli.c
10937
phba->vpi_ids[vport->vpi]);
drivers/scsi/lpfc/lpfc_sli.c
1095
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
10950
struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,
drivers/scsi/lpfc/lpfc_sli.c
10954
phba->__lpfc_sli_prep_els_req_rsp(cmdiocbq, vport, bmp, cmd_size, did,
drivers/scsi/lpfc/lpfc_sli.c
1104
lpfc_sli4_vport_delete_els_xri_aborted(vport);
drivers/scsi/lpfc/lpfc_sli.c
1105
lpfc_sli4_vport_delete_fcp_xri_aborted(vport);
drivers/scsi/lpfc/lpfc_sli.c
1109
if (rrq->vport != vport)
drivers/scsi/lpfc/lpfc_sli.c
1112
if (!ndlp || ndlp == lpfc_findnode_did(vport, rrq->nlp_DID))
drivers/scsi/lpfc/lpfc_sli.c
11461
struct lpfc_vport *vport = NULL;
drivers/scsi/lpfc/lpfc_sli.c
11472
vport = lpfc_find_vport_by_vpid(phba, vpi);
drivers/scsi/lpfc/lpfc_sli.c
11473
if (!vport)
drivers/scsi/lpfc/lpfc_sli.c
11475
ndlp = lpfc_findnode_rpi(vport, rpi);
drivers/scsi/lpfc/lpfc_sli.c
11480
lpfc_sli_abts_recover_port(vport, ndlp);
drivers/scsi/lpfc/lpfc_sli.c
11518
ndlp->vport->vpi, phba->sli4_hba.rpi_ids[ndlp->nlp_rpi],
drivers/scsi/lpfc/lpfc_sli.c
1183
if (ndlp->vport && test_bit(FC_UNLOADING, &ndlp->vport->load_flag))
drivers/scsi/lpfc/lpfc_sli.c
11944
lpfc_sli_host_down(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_sli.c
11947
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
11956
lpfc_cleanup_discovery_resources(vport);
drivers/scsi/lpfc/lpfc_sli.c
11977
if (iocb->vport != vport)
drivers/scsi/lpfc/lpfc_sli.c
11983
if (iocb->vport != vport)
drivers/scsi/lpfc/lpfc_sli.c
12004
if (iocb->vport != vport)
drivers/scsi/lpfc/lpfc_sli.c
12011
if (iocb->vport != vport)
drivers/scsi/lpfc/lpfc_sli.c
1208
rrq->vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_sli.c
12445
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_sli.c
12502
if (test_bit(FC_UNLOADING, &vport->load_flag) ||
drivers/scsi/lpfc/lpfc_sli.c
12527
abtsiocbp->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
12545
lpfc_printf_vlog(vport, KERN_INFO, LOG_SLI,
drivers/scsi/lpfc/lpfc_sli.c
12609
struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_sli.c
12614
if (!iocbq || iocbq->vport != vport)
drivers/scsi/lpfc/lpfc_sli.c
12620
ulp_command = get_job_cmnd(vport->phba, iocbq);
drivers/scsi/lpfc/lpfc_sli.c
12657
lpfc_sli_validate_fcp_iocb(struct lpfc_iocbq *iocbq, struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_sli.c
12713
lpfc_sli_sum_iocb(struct lpfc_vport *vport, uint16_t tgt_id, uint64_t lun_id,
drivers/scsi/lpfc/lpfc_sli.c
12716
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
12726
if (!iocbq || iocbq->vport != vport)
drivers/scsi/lpfc/lpfc_sli.c
12741
if (lpfc_sli_validate_fcp_iocb(iocbq, vport, tgt_id, lun_id,
drivers/scsi/lpfc/lpfc_sli.c
12805
lpfc_sli_abort_iocb(struct lpfc_vport *vport, u16 tgt_id, u64 lun_id,
drivers/scsi/lpfc/lpfc_sli.c
12808
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
12822
if (lpfc_sli_validate_fcp_iocb_for_abort(iocbq, vport))
drivers/scsi/lpfc/lpfc_sli.c
12825
if (lpfc_sli_validate_fcp_iocb(iocbq, vport, tgt_id, lun_id,
drivers/scsi/lpfc/lpfc_sli.c
12872
lpfc_sli_abort_taskmgmt(struct lpfc_vport *vport, struct lpfc_sli_ring *pring,
drivers/scsi/lpfc/lpfc_sli.c
12875
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
12896
if (lpfc_sli_validate_fcp_iocb_for_abort(iocbq, vport))
drivers/scsi/lpfc/lpfc_sli.c
12899
if (lpfc_sli_validate_fcp_iocb(iocbq, vport, tgt_id, lun_id,
drivers/scsi/lpfc/lpfc_sli.c
12971
abtsiocbq->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
13665
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_sli.c
13816
vport = pmb->vport;
drivers/scsi/lpfc/lpfc_sli.c
13830
(vport ? vport->vpi : 0),
drivers/scsi/lpfc/lpfc_sli.c
13853
lpfc_debugfs_disc_trc(vport,
drivers/scsi/lpfc/lpfc_sli.c
13870
vport->vpi,
drivers/scsi/lpfc/lpfc_sli.c
13877
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
14310
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_sli.c
14337
vport = pmb->vport;
drivers/scsi/lpfc/lpfc_sli.c
14359
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_MBOX_VPORT,
drivers/scsi/lpfc/lpfc_sli.c
14373
lpfc_unreg_login(phba, vport->vpi,
drivers/scsi/lpfc/lpfc_sli.c
14384
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
16083
mbox->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
16204
mbox->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
1730
BUG_ON(!piocb->vport);
drivers/scsi/lpfc/lpfc_sli.c
1731
if (!test_bit(FC_UNLOADING, &piocb->vport->load_flag))
drivers/scsi/lpfc/lpfc_sli.c
1732
mod_timer(&piocb->vport->els_tmofunc,
drivers/scsi/lpfc/lpfc_sli.c
17690
mbox->vport = eq->phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
17753
mbox->vport = cq->phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
17814
mbox->vport = mq->phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
17875
mbox->vport = wq->phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
17939
mbox->vport = hrq->phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
18657
struct lpfc_vport *vport = NULL;
drivers/scsi/lpfc/lpfc_sli.c
18672
vport = vports[i];
drivers/scsi/lpfc/lpfc_sli.c
18678
return vport;
drivers/scsi/lpfc/lpfc_sli.c
18692
lpfc_update_rcv_time_stamp(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_sli.c
18698
h_buf = list_get_first(&vport->rcv_buffer_list,
drivers/scsi/lpfc/lpfc_sli.c
18703
vport->rcv_buffer_time_stamp = dmabuf->time_stamp;
drivers/scsi/lpfc/lpfc_sli.c
18715
lpfc_cleanup_rcv_buffers(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_sli.c
18722
list_for_each_entry_safe(h_buf, hnext, &vport->rcv_buffer_list, list) {
drivers/scsi/lpfc/lpfc_sli.c
18728
lpfc_in_buf_free(vport->phba, d_buf);
drivers/scsi/lpfc/lpfc_sli.c
18730
lpfc_in_buf_free(vport->phba, &dmabuf->dbuf);
drivers/scsi/lpfc/lpfc_sli.c
18747
lpfc_rcv_seq_check_edtov(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_sli.c
18755
timeout = (msecs_to_jiffies(vport->phba->fc_edtov) +
drivers/scsi/lpfc/lpfc_sli.c
18756
vport->rcv_buffer_time_stamp);
drivers/scsi/lpfc/lpfc_sli.c
18757
if (list_empty(&vport->rcv_buffer_list) ||
drivers/scsi/lpfc/lpfc_sli.c
18761
list_for_each_entry_safe(h_buf, hnext, &vport->rcv_buffer_list, list) {
drivers/scsi/lpfc/lpfc_sli.c
18763
timeout = (msecs_to_jiffies(vport->phba->fc_edtov) +
drivers/scsi/lpfc/lpfc_sli.c
18772
lpfc_in_buf_free(vport->phba, d_buf);
drivers/scsi/lpfc/lpfc_sli.c
18774
lpfc_in_buf_free(vport->phba, &dmabuf->dbuf);
drivers/scsi/lpfc/lpfc_sli.c
18777
lpfc_update_rcv_time_stamp(vport);
drivers/scsi/lpfc/lpfc_sli.c
18794
lpfc_fc_frame_add(struct lpfc_vport *vport, struct hbq_dmabuf *dmabuf)
drivers/scsi/lpfc/lpfc_sli.c
18809
list_for_each_entry(h_buf, &vport->rcv_buffer_list, list) {
drivers/scsi/lpfc/lpfc_sli.c
18824
list_add_tail(&dmabuf->hbuf.list, &vport->rcv_buffer_list);
drivers/scsi/lpfc/lpfc_sli.c
18825
lpfc_update_rcv_time_stamp(vport);
drivers/scsi/lpfc/lpfc_sli.c
18832
list_add_tail(&dmabuf->hbuf.list, &vport->rcv_buffer_list);
drivers/scsi/lpfc/lpfc_sli.c
18834
lpfc_update_rcv_time_stamp(vport);
drivers/scsi/lpfc/lpfc_sli.c
18838
list_move_tail(&seq_dmabuf->hbuf.list, &vport->rcv_buffer_list);
drivers/scsi/lpfc/lpfc_sli.c
18840
lpfc_update_rcv_time_stamp(vport);
drivers/scsi/lpfc/lpfc_sli.c
18888
lpfc_sli4_abort_partial_seq(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_sli.c
18900
list_for_each_entry(h_buf, &vport->rcv_buffer_list, list) {
drivers/scsi/lpfc/lpfc_sli.c
18916
lpfc_in_buf_free(vport->phba, d_buf);
drivers/scsi/lpfc/lpfc_sli.c
18940
lpfc_sli4_abort_ulp_seq(struct lpfc_vport *vport, struct hbq_dmabuf *dmabuf)
drivers/scsi/lpfc/lpfc_sli.c
18942
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
19016
lpfc_sli4_seq_abort_rsp(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_sli.c
19019
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
19034
ndlp = lpfc_findnode_did(vport, sid);
drivers/scsi/lpfc/lpfc_sli.c
19036
ndlp = lpfc_nlp_init(vport, sid);
drivers/scsi/lpfc/lpfc_sli.c
19038
lpfc_printf_vlog(vport, KERN_WARNING, LOG_ELS,
drivers/scsi/lpfc/lpfc_sli.c
19044
lpfc_enqueue_node(vport, ndlp);
drivers/scsi/lpfc/lpfc_sli.c
19063
ctiocb->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
19135
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
drivers/scsi/lpfc/lpfc_sli.c
19141
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_sli.c
19176
lpfc_sli4_handle_unsol_abort(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_sli.c
19179
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
19193
aborted = lpfc_sli4_abort_partial_seq(vport, dmabuf);
drivers/scsi/lpfc/lpfc_sli.c
19195
aborted = lpfc_sli4_abort_ulp_seq(vport, dmabuf);
drivers/scsi/lpfc/lpfc_sli.c
19200
lpfc_nvmet_rcv_unsol_abort(vport, &fc_hdr);
drivers/scsi/lpfc/lpfc_sli.c
19205
lpfc_sli4_seq_abort_rsp(vport, &fc_hdr, aborted);
drivers/scsi/lpfc/lpfc_sli.c
19269
lpfc_prep_seq(struct lpfc_vport *vport, struct hbq_dmabuf *seq_dmabuf)
drivers/scsi/lpfc/lpfc_sli.c
19281
lpfc_update_rcv_time_stamp(vport);
drivers/scsi/lpfc/lpfc_sli.c
19286
first_iocbq = lpfc_sli_get_iocbq(vport->phba);
drivers/scsi/lpfc/lpfc_sli.c
19292
first_iocbq->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
19331
lpfc_in_buf_free(vport->phba, d_buf);
drivers/scsi/lpfc/lpfc_sli.c
19345
iocbq = lpfc_sli_get_iocbq(vport->phba);
drivers/scsi/lpfc/lpfc_sli.c
19354
lpfc_in_buf_free(vport->phba, d_buf);
drivers/scsi/lpfc/lpfc_sli.c
19381
lpfc_in_buf_free(vport->phba, &seq_dmabuf->dbuf);
drivers/scsi/lpfc/lpfc_sli.c
19387
lpfc_sli4_send_seq_to_ulp(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_sli.c
19392
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
19395
iocbq = lpfc_prep_seq(vport, seq_dmabuf);
drivers/scsi/lpfc/lpfc_sli.c
19439
lpfc_sli4_handle_mds_loopback(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_sli.c
19443
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
19481
iocbq->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
19556
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_sli.c
19565
vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
19568
lpfc_sli4_handle_mds_loopback(vport, dmabuf);
drivers/scsi/lpfc/lpfc_sli.c
19589
vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
19595
lpfc_sli4_handle_mds_loopback(vport, dmabuf);
drivers/scsi/lpfc/lpfc_sli.c
19602
vport = lpfc_fc_frame_to_vport(phba, fc_hdr, fcfi, did);
drivers/scsi/lpfc/lpfc_sli.c
19603
if (!vport) {
drivers/scsi/lpfc/lpfc_sli.c
19610
if (!(vport->vpi_state & LPFC_VPI_REGISTERED) &&
drivers/scsi/lpfc/lpfc_sli.c
19617
if (!test_bit(FC_PT2PT, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_sli.c
19626
lpfc_sli4_handle_unsol_abort(vport, dmabuf);
drivers/scsi/lpfc/lpfc_sli.c
19631
seq_dmabuf = lpfc_fc_frame_add(vport, dmabuf);
drivers/scsi/lpfc/lpfc_sli.c
19642
lpfc_sli4_send_seq_to_ulp(vport, seq_dmabuf);
drivers/scsi/lpfc/lpfc_sli.c
19975
mboxq->vport = ndlp->vport;
drivers/scsi/lpfc/lpfc_sli.c
20000
lpfc_sli4_init_vpi(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_sli.c
20006
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
20010
lpfc_init_vpi(phba, mboxq, vport->vpi);
drivers/scsi/lpfc/lpfc_sli.c
20014
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_sli.c
20021
mempool_free(mboxq, vport->phba->mbox_mem_pool);
drivers/scsi/lpfc/lpfc_sli.c
20122
mboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
2019
sync_buf->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
20212
mboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
20268
mboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
20314
mboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
20632
mbox->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
21089
lpfc_cleanup_pending_mbox(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_sli.c
21091
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_sli.c
21101
if (mb->vport != vport)
drivers/scsi/lpfc/lpfc_sli.c
21112
if (mb && (mb->vport == vport)) {
drivers/scsi/lpfc/lpfc_sli.c
21136
if ((mb->vport != vport) ||
drivers/scsi/lpfc/lpfc_sli.c
21515
struct lpfc_vport *vport = cmdiocb->vport;
drivers/scsi/lpfc/lpfc_sli.c
21559
abtsiocb->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
21565
lpfc_printf_vlog(vport, KERN_INFO, LOG_SLI | LOG_NVME_ABTS | LOG_FCP,
drivers/scsi/lpfc/lpfc_sli.c
22314
mbox->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
22706
job->vport->fc_myDID);
drivers/scsi/lpfc/lpfc_sli.c
22715
phba->vpi_ids[job->vport->vpi]);
drivers/scsi/lpfc/lpfc_sli.c
22741
if (test_bit(FC_PT2PT, &job->vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_sli.c
22744
job->vport->fc_myDID);
drivers/scsi/lpfc/lpfc_sli.c
22745
if (job->vport->fc_myDID == Fabric_DID) {
drivers/scsi/lpfc/lpfc_sli.c
22762
job->vport->fc_myDID);
drivers/scsi/lpfc/lpfc_sli.c
22772
phba->vpi_ids[job->vport->vpi]);
drivers/scsi/lpfc/lpfc_sli.c
2852
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_sli.c
2877
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
2887
shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_sli.c
2889
vport->vpi_state |= LPFC_VPI_REGISTERED;
drivers/scsi/lpfc/lpfc_sli.c
2891
clear_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_sli.c
2905
vport,
drivers/scsi/lpfc/lpfc_sli.c
2911
ndlp, vport->load_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_sli.c
2917
lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_sli.c
2965
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_sli.c
2977
vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_sli.c
2982
vport->vpi, ndlp->nlp_rpi,
drivers/scsi/lpfc/lpfc_sli.c
3001
vport, KERN_INFO,
drivers/scsi/lpfc/lpfc_sli.c
3011
vport, ndlp->nlp_DID, 0);
drivers/scsi/lpfc/lpfc_sli.c
3059
if (pmb->vport) {
drivers/scsi/lpfc/lpfc_sli.c
3060
lpfc_debugfs_disc_trc(pmb->vport,
drivers/scsi/lpfc/lpfc_sli.c
3086
pmb->vport ? pmb->vport->vpi :
drivers/scsi/lpfc/lpfc_sli.c
3108
pmb->vport ? pmb->vport->vpi :
drivers/scsi/lpfc/lpfc_sli.c
3117
pmb->vport ? pmb->vport->port_state :
drivers/scsi/lpfc/lpfc_sli.c
3132
pmb->vport ? pmb->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
3445
saveq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
3605
saveq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
3607
saveq->vport = lpfc_find_vport_by_vpid(phba,
drivers/scsi/lpfc/lpfc_sli.c
5813
mboxq->vport ? mboxq->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
7083
mbox->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
7855
mboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
7868
struct lpfc_vport *vport = pmb->vport;
drivers/scsi/lpfc/lpfc_sli.c
79
static void lpfc_sli4_handle_mds_loopback(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_sli.c
7910
lpfc_issue_els_rdf(vport, 0);
drivers/scsi/lpfc/lpfc_sli.c
7924
mboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
8505
struct lpfc_vport *vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
8667
mboxq->vport ? mboxq->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
8804
rc = lpfc_read_sparam(phba, mboxq, vport->vpi);
drivers/scsi/lpfc/lpfc_sli.c
8811
mboxq->vport = vport;
drivers/scsi/lpfc/lpfc_sli.c
8815
memcpy(&vport->fc_sparam, mp->virt, sizeof(struct serv_parm));
drivers/scsi/lpfc/lpfc_sli.c
8837
lpfc_update_vport_wwn(vport);
drivers/scsi/lpfc/lpfc_sli.c
8840
fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn);
drivers/scsi/lpfc/lpfc_sli.c
8841
fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn);
drivers/scsi/lpfc/lpfc_sli.c
8988
mboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
9000
mboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
9010
mboxq->vport = phba->pport;
drivers/scsi/lpfc/lpfc_sli.c
9052
mod_timer(&vport->els_tmofunc,
drivers/scsi/lpfc/lpfc_sli.c
9411
if(!pmbox->vport) {
drivers/scsi/lpfc/lpfc_sli.c
9446
pmbox->vport ? pmbox->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
9458
pmbox->vport ? pmbox->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
9477
pmbox->vport ? pmbox->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
9489
pmbox->vport ? pmbox->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
9504
pmbox->vport ? pmbox->vport->vpi : 0xffffff,
drivers/scsi/lpfc/lpfc_sli.c
9512
if (pmbox->vport) {
drivers/scsi/lpfc/lpfc_sli.c
9513
lpfc_debugfs_disc_trc(pmbox->vport,
drivers/scsi/lpfc/lpfc_sli.c
9542
pmbox->vport ? pmbox->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
9556
pmbox->vport ? pmbox->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.c
9562
if (pmbox->vport) {
drivers/scsi/lpfc/lpfc_sli.c
9563
lpfc_debugfs_disc_trc(pmbox->vport,
drivers/scsi/lpfc/lpfc_sli.c
984
if (rrq->vport)
drivers/scsi/lpfc/lpfc_sli.c
985
ndlp = lpfc_findnode_did(rrq->vport, rrq->nlp_DID);
drivers/scsi/lpfc/lpfc_sli.c
9975
mboxq->vport ? mboxq->vport->vpi : 0,
drivers/scsi/lpfc/lpfc_sli.h
128
struct lpfc_vport *vport;/* virtual port pointer */
drivers/scsi/lpfc/lpfc_sli.h
184
struct lpfc_vport *vport; /* virtual port pointer */
drivers/scsi/lpfc/lpfc_vmid.c
107
static void lpfc_vmid_update_entry(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_vmid.c
114
if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO)
drivers/scsi/lpfc/lpfc_vmid.c
116
else if (vport->phba->cfg_vmid_app_header)
drivers/scsi/lpfc/lpfc_vmid.c
129
static void lpfc_vmid_assign_cs_ctl(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_vmid.c
135
if (vport->port_type == LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_vmid.c
136
vmid->un.cs_ctl_vmid = lpfc_vmid_get_cs_ctl(vport);
drivers/scsi/lpfc/lpfc_vmid.c
140
lpfc_get_vmid_from_hashtable(vport->phba->pport, hash,
drivers/scsi/lpfc/lpfc_vmid.c
145
vmid->un.cs_ctl_vmid = lpfc_vmid_get_cs_ctl(vport);
drivers/scsi/lpfc/lpfc_vmid.c
158
int lpfc_vmid_get_appid(struct lpfc_vport *vport, char *uuid,
drivers/scsi/lpfc/lpfc_vmid.c
166
if (lpfc_vmid_is_type_priority_tag(vport) &&
drivers/scsi/lpfc/lpfc_vmid.c
167
!(vport->vmid_flag & LPFC_VMID_QFPA_CMPL) &&
drivers/scsi/lpfc/lpfc_vmid.c
168
(vport->vmid_flag & LPFC_VMID_ISSUE_QFPA)) {
drivers/scsi/lpfc/lpfc_vmid.c
169
vport->work_port_events |= WORKER_CHECK_VMID_ISSUE_QFPA;
drivers/scsi/lpfc/lpfc_vmid.c
178
read_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
179
vmp = lpfc_get_vmid_from_hashtable(vport, hash, uuid);
drivers/scsi/lpfc/lpfc_vmid.c
183
read_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
184
lpfc_vmid_update_entry(vport, iodir, vmp, tag);
drivers/scsi/lpfc/lpfc_vmid.c
190
read_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
195
read_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
198
write_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
199
vmp = lpfc_get_vmid_from_hashtable(vport, hash, uuid);
drivers/scsi/lpfc/lpfc_vmid.c
204
lpfc_vmid_update_entry(vport, iodir, vmp, tag);
drivers/scsi/lpfc/lpfc_vmid.c
205
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
208
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
213
if (vport->cur_vmid_cnt < vport->max_vmid) {
drivers/scsi/lpfc/lpfc_vmid.c
214
for (i = 0; i < vport->max_vmid; i++) {
drivers/scsi/lpfc/lpfc_vmid.c
215
vmp = vport->vmid + i;
drivers/scsi/lpfc/lpfc_vmid.c
219
if (i == vport->max_vmid)
drivers/scsi/lpfc/lpfc_vmid.c
226
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
231
lpfc_put_vmid_in_hashtable(vport, hash, vmp);
drivers/scsi/lpfc/lpfc_vmid.c
239
vport->vmid_inactivity_timeout ? 1 : 0;
drivers/scsi/lpfc/lpfc_vmid.c
242
if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO)
drivers/scsi/lpfc/lpfc_vmid.c
243
lpfc_vmid_assign_cs_ctl(vport, vmp);
drivers/scsi/lpfc/lpfc_vmid.c
252
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
256
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
259
if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO)
drivers/scsi/lpfc/lpfc_vmid.c
260
rc = lpfc_vmid_uvem(vport, vmp, true);
drivers/scsi/lpfc/lpfc_vmid.c
261
else if (vport->phba->cfg_vmid_app_header)
drivers/scsi/lpfc/lpfc_vmid.c
262
rc = lpfc_vmid_cmd(vport, SLI_CTAS_RAPP_IDENT, vmp);
drivers/scsi/lpfc/lpfc_vmid.c
264
write_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
265
vport->cur_vmid_cnt++;
drivers/scsi/lpfc/lpfc_vmid.c
267
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
269
write_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
273
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
278
if (!(vport->phba->pport->vmid_flag & LPFC_VMID_TIMER_ENBLD)) {
drivers/scsi/lpfc/lpfc_vmid.c
279
mod_timer(&vport->phba->inactive_vmid_poll,
drivers/scsi/lpfc/lpfc_vmid.c
282
vport->phba->pport->vmid_flag |= LPFC_VMID_TIMER_ENBLD;
drivers/scsi/lpfc/lpfc_vmid.c
298
lpfc_reinit_vmid(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_vmid.c
305
write_lock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
306
vport->cur_vmid_cnt = 0;
drivers/scsi/lpfc/lpfc_vmid.c
308
for (i = 0; i < vport->max_vmid; i++) {
drivers/scsi/lpfc/lpfc_vmid.c
309
vmp = &vport->vmid[i];
drivers/scsi/lpfc/lpfc_vmid.c
321
if (!hash_empty(vport->hash_table))
drivers/scsi/lpfc/lpfc_vmid.c
322
hash_for_each_safe(vport->hash_table, bucket, tmp, cur, hnode)
drivers/scsi/lpfc/lpfc_vmid.c
324
write_unlock(&vport->vmid_lock);
drivers/scsi/lpfc/lpfc_vmid.c
47
struct lpfc_vmid *lpfc_get_vmid_from_hashtable(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_vmid.c
52
hash_for_each_possible(vport->hash_table, vmp, hnode, hash) {
drivers/scsi/lpfc/lpfc_vmid.c
69
lpfc_put_vmid_in_hashtable(struct lpfc_vport *vport, u32 hash,
drivers/scsi/lpfc/lpfc_vmid.c
72
hash_add(vport->hash_table, &vmp->hnode, hash);
drivers/scsi/lpfc/lpfc_vport.c
118
lpfc_vport_sparm(struct lpfc_hba *phba, struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_vport.c
131
rc = lpfc_read_sparam(phba, pmb, vport->vpi);
drivers/scsi/lpfc/lpfc_vport.c
146
pmb->vport = vport;
drivers/scsi/lpfc/lpfc_vport.c
150
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
158
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
170
memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm));
drivers/scsi/lpfc/lpfc_vport.c
171
memcpy(&vport->fc_nodename, &vport->fc_sparam.nodeName,
drivers/scsi/lpfc/lpfc_vport.c
173
memcpy(&vport->fc_portname, &vport->fc_sparam.portName,
drivers/scsi/lpfc/lpfc_vport.c
204
struct lpfc_vport *vport;
drivers/scsi/lpfc/lpfc_vport.c
208
list_for_each_entry(vport, &phba->port_list, listentry) {
drivers/scsi/lpfc/lpfc_vport.c
209
if (vport == new_vport)
drivers/scsi/lpfc/lpfc_vport.c
212
if (memcmp(&vport->fc_sparam.portName,
drivers/scsi/lpfc/lpfc_vport.c
238
static void lpfc_discovery_wait(struct lpfc_vport *vport)
drivers/scsi/lpfc/lpfc_vport.c
240
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_vport.c
253
if ((vport->num_disc_nodes > 0) ||
drivers/scsi/lpfc/lpfc_vport.c
254
test_bit(FC_RSCN_MODE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_vport.c
255
test_bit(FC_RSCN_DISCOVERY, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_vport.c
256
test_bit(FC_NLP_MORE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_vport.c
257
test_bit(FC_RSCN_DEFERRED, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_vport.c
258
test_bit(FC_NDISC_ACTIVE, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_vport.c
259
test_bit(FC_DISC_TMO, &vport->fc_flag) ||
drivers/scsi/lpfc/lpfc_vport.c
260
((vport->port_state > LPFC_VPORT_FAILED) &&
drivers/scsi/lpfc/lpfc_vport.c
261
(vport->port_state < LPFC_VPORT_READY))) {
drivers/scsi/lpfc/lpfc_vport.c
262
lpfc_printf_vlog(vport, KERN_INFO, LOG_VPORT,
drivers/scsi/lpfc/lpfc_vport.c
267
vport->port_state, vport->fc_flag,
drivers/scsi/lpfc/lpfc_vport.c
268
vport->num_disc_nodes,
drivers/scsi/lpfc/lpfc_vport.c
273
lpfc_printf_vlog(vport, KERN_INFO, LOG_VPORT,
drivers/scsi/lpfc/lpfc_vport.c
277
vport->port_state, vport->fc_flag,
drivers/scsi/lpfc/lpfc_vport.c
285
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
288
vport->port_state, vport->fc_flag,
drivers/scsi/lpfc/lpfc_vport.c
299
struct lpfc_vport *vport = NULL;
drivers/scsi/lpfc/lpfc_vport.c
343
vport = lpfc_create_port(phba, instance, &fc_vport->dev);
drivers/scsi/lpfc/lpfc_vport.c
344
if (!vport) {
drivers/scsi/lpfc/lpfc_vport.c
352
vport->vpi = vpi;
drivers/scsi/lpfc/lpfc_vport.c
353
lpfc_debugfs_initialize(vport);
drivers/scsi/lpfc/lpfc_vport.c
355
if ((status = lpfc_vport_sparm(phba, vport))) {
drivers/scsi/lpfc/lpfc_vport.c
357
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
361
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
367
destroy_port(vport);
drivers/scsi/lpfc/lpfc_vport.c
371
u64_to_wwn(fc_vport->node_name, vport->fc_nodename.u.wwn);
drivers/scsi/lpfc/lpfc_vport.c
372
u64_to_wwn(fc_vport->port_name, vport->fc_portname.u.wwn);
drivers/scsi/lpfc/lpfc_vport.c
374
memcpy(&vport->fc_sparam.portName, vport->fc_portname.u.wwn, 8);
drivers/scsi/lpfc/lpfc_vport.c
375
memcpy(&vport->fc_sparam.nodeName, vport->fc_nodename.u.wwn, 8);
drivers/scsi/lpfc/lpfc_vport.c
377
if (!lpfc_valid_wwn_format(phba, &vport->fc_sparam.nodeName, "WWNN") ||
drivers/scsi/lpfc/lpfc_vport.c
378
!lpfc_valid_wwn_format(phba, &vport->fc_sparam.portName, "WWPN")) {
drivers/scsi/lpfc/lpfc_vport.c
379
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
383
destroy_port(vport);
drivers/scsi/lpfc/lpfc_vport.c
388
if (!lpfc_unique_wwpn(phba, vport)) {
drivers/scsi/lpfc/lpfc_vport.c
389
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
393
destroy_port(vport);
drivers/scsi/lpfc/lpfc_vport.c
399
lpfc_alloc_sysfs_attr(vport);
drivers/scsi/lpfc/lpfc_vport.c
402
vport->cfg_lun_queue_depth = phba->pport->cfg_lun_queue_depth;
drivers/scsi/lpfc/lpfc_vport.c
405
vport->cfg_enable_fc4_type = LPFC_ENABLE_FCP;
drivers/scsi/lpfc/lpfc_vport.c
407
*(struct lpfc_vport **)fc_vport->dd_data = vport;
drivers/scsi/lpfc/lpfc_vport.c
408
vport->fc_vport = fc_vport;
drivers/scsi/lpfc/lpfc_vport.c
411
set_bit(FC_ALLOW_FDMI, &vport->load_flag);
drivers/scsi/lpfc/lpfc_vport.c
415
vport->fdmi_hba_mask = phba->pport->fdmi_hba_mask;
drivers/scsi/lpfc/lpfc_vport.c
416
vport->fdmi_port_mask = phba->pport->fdmi_port_mask;
drivers/scsi/lpfc/lpfc_vport.c
425
rc = lpfc_sli4_init_vpi(vport);
drivers/scsi/lpfc/lpfc_vport.c
439
set_bit(FC_VPORT_NEEDS_INIT_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_vport.c
440
lpfc_vport_set_state(vport, FC_VPORT_LINKDOWN);
drivers/scsi/lpfc/lpfc_vport.c
448
lpfc_vport_set_state(vport, FC_VPORT_LINKDOWN);
drivers/scsi/lpfc/lpfc_vport.c
454
lpfc_vport_set_state(vport, FC_VPORT_DISABLED);
drivers/scsi/lpfc/lpfc_vport.c
466
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_vport.c
467
lpfc_initial_fdisc(vport);
drivers/scsi/lpfc/lpfc_vport.c
469
lpfc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP);
drivers/scsi/lpfc/lpfc_vport.c
470
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
474
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_vport.c
479
lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT,
drivers/scsi/lpfc/lpfc_vport.c
481
lpfc_host_attrib_init(lpfc_shost_from_vport(vport));
drivers/scsi/lpfc/lpfc_vport.c
487
lpfc_send_npiv_logo(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
drivers/scsi/lpfc/lpfc_vport.c
490
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_vport.c
503
rc = lpfc_issue_els_npiv_logo(vport, ndlp);
drivers/scsi/lpfc/lpfc_vport.c
523
lpfc_printf_vlog(vport, KERN_INFO, LOG_VPORT,
drivers/scsi/lpfc/lpfc_vport.c
53
inline void lpfc_vport_set_state(struct lpfc_vport *vport,
drivers/scsi/lpfc/lpfc_vport.c
535
struct lpfc_vport *vport = *(struct lpfc_vport **)fc_vport->dd_data;
drivers/scsi/lpfc/lpfc_vport.c
536
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_vport.c
540
if (test_bit(FC_UNLOADING, &vport->load_flag))
drivers/scsi/lpfc/lpfc_vport.c
543
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_vport.c
545
(void)lpfc_send_npiv_logo(vport, ndlp);
drivers/scsi/lpfc/lpfc_vport.c
547
lpfc_sli_host_down(vport);
drivers/scsi/lpfc/lpfc_vport.c
548
lpfc_cleanup_rpis(vport, 0);
drivers/scsi/lpfc/lpfc_vport.c
550
lpfc_stop_vport_timers(vport);
drivers/scsi/lpfc/lpfc_vport.c
551
lpfc_unreg_all_rpis(vport);
drivers/scsi/lpfc/lpfc_vport.c
552
lpfc_unreg_default_rpis(vport);
drivers/scsi/lpfc/lpfc_vport.c
557
lpfc_mbx_unreg_vpi(vport);
drivers/scsi/lpfc/lpfc_vport.c
559
set_bit(FC_VPORT_NEEDS_INIT_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_vport.c
56
struct fc_vport *fc_vport = vport->fc_vport;
drivers/scsi/lpfc/lpfc_vport.c
561
lpfc_vport_set_state(vport, FC_VPORT_DISABLED);
drivers/scsi/lpfc/lpfc_vport.c
562
lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT,
drivers/scsi/lpfc/lpfc_vport.c
570
struct lpfc_vport *vport = *(struct lpfc_vport **)fc_vport->dd_data;
drivers/scsi/lpfc/lpfc_vport.c
571
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_vport.c
576
lpfc_vport_set_state(vport, FC_VPORT_LINKDOWN);
drivers/scsi/lpfc/lpfc_vport.c
580
set_bit(FC_LOADING, &vport->load_flag);
drivers/scsi/lpfc/lpfc_vport.c
581
if (test_bit(FC_VPORT_NEEDS_INIT_VPI, &vport->fc_flag)) {
drivers/scsi/lpfc/lpfc_vport.c
582
lpfc_issue_init_vpi(vport);
drivers/scsi/lpfc/lpfc_vport.c
586
set_bit(FC_VPORT_NEEDS_REG_VPI, &vport->fc_flag);
drivers/scsi/lpfc/lpfc_vport.c
594
lpfc_set_disctmo(vport);
drivers/scsi/lpfc/lpfc_vport.c
595
lpfc_initial_fdisc(vport);
drivers/scsi/lpfc/lpfc_vport.c
597
lpfc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP);
drivers/scsi/lpfc/lpfc_vport.c
598
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
602
lpfc_vport_set_state(vport, FC_VPORT_FAILED);
drivers/scsi/lpfc/lpfc_vport.c
606
lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT,
drivers/scsi/lpfc/lpfc_vport.c
624
struct lpfc_vport *vport = *(struct lpfc_vport **)fc_vport->dd_data;
drivers/scsi/lpfc/lpfc_vport.c
625
struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
drivers/scsi/lpfc/lpfc_vport.c
626
struct lpfc_hba *phba = vport->phba;
drivers/scsi/lpfc/lpfc_vport.c
630
if (vport->port_type == LPFC_PHYSICAL_PORT) {
drivers/scsi/lpfc/lpfc_vport.c
631
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
638
if ((vport->vport_flag & STATIC_VPORT) &&
drivers/scsi/lpfc/lpfc_vport.c
640
lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
drivers/scsi/lpfc/lpfc_vport.c
646
set_bit(FC_UNLOADING, &vport->load_flag);
drivers/scsi/lpfc/lpfc_vport.c
655
vport->port_state > LPFC_VPORT_FAILED &&
drivers/scsi/lpfc/lpfc_vport.c
656
vport->port_state < LPFC_VPORT_READY) {
drivers/scsi/lpfc/lpfc_vport.c
660
if (vport->port_state > LPFC_VPORT_FAILED &&
drivers/scsi/lpfc/lpfc_vport.c
661
vport->port_state < LPFC_VPORT_READY)
drivers/scsi/lpfc/lpfc_vport.c
674
lpfc_free_sysfs_attr(vport);
drivers/scsi/lpfc/lpfc_vport.c
675
lpfc_debugfs_terminate(vport);
drivers/scsi/lpfc/lpfc_vport.c
678
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_vport.c
686
if (vport->cfg_enable_da_id) {
drivers/scsi/lpfc/lpfc_vport.c
692
ndlp = lpfc_findnode_did(vport, NameServer_DID);
drivers/scsi/lpfc/lpfc_vport.c
701
rc = lpfc_ns_cmd(vport, SLI_CTNS_DA_ID, 0, 0);
drivers/scsi/lpfc/lpfc_vport.c
709
lpfc_printf_vlog(vport, KERN_INFO, LOG_VPORT | LOG_ELS,
drivers/scsi/lpfc/lpfc_vport.c
731
if (!(vport->vpi_state & LPFC_VPI_REGISTERED))
drivers/scsi/lpfc/lpfc_vport.c
735
ndlp = lpfc_findnode_did(vport, Fabric_DID);
drivers/scsi/lpfc/lpfc_vport.c
739
rc = lpfc_send_npiv_logo(vport, ndlp);
drivers/scsi/lpfc/lpfc_vport.c
745
lpfc_discovery_wait(vport);
drivers/scsi/lpfc/lpfc_vport.c
753
lpfc_cleanup(vport);
drivers/scsi/lpfc/lpfc_vport.c
756
lpfc_sli_host_down(vport);
drivers/scsi/lpfc/lpfc_vport.c
757
lpfc_stop_vport_timers(vport);
drivers/scsi/lpfc/lpfc_vport.c
76
vport->port_state = LPFC_VPORT_FAILED;
drivers/scsi/lpfc/lpfc_vport.c
760
lpfc_unreg_all_rpis(vport);
drivers/scsi/lpfc/lpfc_vport.c
761
lpfc_unreg_default_rpis(vport);
drivers/scsi/lpfc/lpfc_vport.c
766
if (!(vport->vpi_state & LPFC_VPI_REGISTERED) ||
drivers/scsi/lpfc/lpfc_vport.c
767
lpfc_mbx_unreg_vpi(vport))
drivers/scsi/lpfc/lpfc_vport.c
773
lpfc_free_vpi(phba, vport->vpi);
drivers/scsi/lpfc/lpfc_vport.c
774
vport->work_port_events = 0;
drivers/scsi/lpfc/lpfc_vport.c
776
list_del_init(&vport->listentry);
drivers/scsi/lpfc/lpfc_vport.c
778
lpfc_printf_vlog(vport, KERN_ERR, LOG_VPORT,
drivers/scsi/lpfc/lpfc_vport.c
79
vport->port_state = LPFC_VPORT_UNKNOWN;
drivers/scsi/lpfc/lpfc_vport.h
111
void *vport;
drivers/scsi/lpfc/lpfc_vport.h
115
void lpfc_vport_set_state(struct lpfc_vport *vport,
drivers/scsi/qedf/qedf_attr.c
10
return qedf->lport->vport != NULL;
drivers/scsi/qedf/qedf_attr.c
23
base_lport = shost_priv(vport_to_shost(lport->vport));
drivers/scsi/qedf/qedf_main.c
1095
if (lport->vport)
drivers/scsi/qedf/qedf_main.c
1096
base_lport = shost_priv(vport_to_shost(lport->vport));
drivers/scsi/qedf/qedf_main.c
1799
static int qedf_vport_libfc_config(struct fc_vport *vport,
drivers/scsi/qedf/qedf_main.c
1830
static int qedf_vport_create(struct fc_vport *vport, bool disabled)
drivers/scsi/qedf/qedf_main.c
1832
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/qedf/qedf_main.c
1841
rc = fcoe_validate_vport_create(vport);
drivers/scsi/qedf/qedf_main.c
1843
fcoe_wwn_to_str(vport->port_name, buf, sizeof(buf));
drivers/scsi/qedf/qedf_main.c
1855
vn_port = libfc_vport_create(vport, sizeof(struct qedf_ctx));
drivers/scsi/qedf/qedf_main.c
1862
fcoe_wwn_to_str(vport->port_name, buf, sizeof(buf));
drivers/scsi/qedf/qedf_main.c
1880
rc = qedf_vport_libfc_config(vport, vn_port);
drivers/scsi/qedf/qedf_main.c
1887
fc_set_wwnn(vn_port, vport->node_name);
drivers/scsi/qedf/qedf_main.c
1888
fc_set_wwpn(vn_port, vport->port_name);
drivers/scsi/qedf/qedf_main.c
1899
rc = scsi_add_host(vn_port->host, &vport->dev);
drivers/scsi/qedf/qedf_main.c
1920
shost = vport_to_shost(vport);
drivers/scsi/qedf/qedf_main.c
1930
fc_vport_set_state(vport, FC_VPORT_DISABLED);
drivers/scsi/qedf/qedf_main.c
1972
static int qedf_vport_destroy(struct fc_vport *vport)
drivers/scsi/qedf/qedf_main.c
1974
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/qedf/qedf_main.c
1976
struct fc_lport *vn_port = vport->dd_data;
drivers/scsi/qedf/qedf_main.c
2015
static int qedf_vport_disable(struct fc_vport *vport, bool disable)
drivers/scsi/qedf/qedf_main.c
2017
struct fc_lport *lport = vport->dd_data;
drivers/scsi/qedf/qedf_main.c
2020
fc_vport_set_state(vport, FC_VPORT_DISABLED);
drivers/scsi/qedf/qedf_main.c
2082
if (lport->vport)
drivers/scsi/qedf/qedf_main.c
924
if (lport->vport) {
drivers/scsi/qla2xxx/qla_sup.c
1201
struct fc_vport *vport;
drivers/scsi/qla2xxx/qla_sup.c
1225
vport = fc_vport_create(vha->host, 0, &vid);
drivers/scsi/qla2xxx/qla_sup.c
1226
if (!vport)
drivers/scsi/qla2xxx/tcm_qla2xxx.c
1669
struct fc_vport *vport;
drivers/scsi/qla2xxx/tcm_qla2xxx.c
1696
vport = fc_vport_create(sh, 0, &vport_id);
drivers/scsi/qla2xxx/tcm_qla2xxx.c
1697
if (!vport) {
drivers/scsi/qla2xxx/tcm_qla2xxx.c
1704
npiv_vha = (struct scsi_qla_host *)vport->dd_data;
drivers/scsi/scsi_transport_fc.c
1509
struct fc_vport *vport = transport_class_to_vport(dev); \
drivers/scsi/scsi_transport_fc.c
1510
struct Scsi_Host *shost = vport_to_shost(vport); \
drivers/scsi/scsi_transport_fc.c
1513
!(vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING))) \
drivers/scsi/scsi_transport_fc.c
1514
i->f->get_vport_##field(vport); \
drivers/scsi/scsi_transport_fc.c
1515
return snprintf(buf, sz, format_string, cast vport->field); \
drivers/scsi/scsi_transport_fc.c
1525
struct fc_vport *vport = transport_class_to_vport(dev); \
drivers/scsi/scsi_transport_fc.c
1526
struct Scsi_Host *shost = vport_to_shost(vport); \
drivers/scsi/scsi_transport_fc.c
1529
if (vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING)) \
drivers/scsi/scsi_transport_fc.c
1534
i->f->set_vport_##field(vport, val); \
drivers/scsi/scsi_transport_fc.c
1544
struct fc_vport *vport = transport_class_to_vport(dev); \
drivers/scsi/scsi_transport_fc.c
1545
struct Scsi_Host *shost = vport_to_shost(vport); \
drivers/scsi/scsi_transport_fc.c
1554
memcpy(vport->field, buf, cnt); \
drivers/scsi/scsi_transport_fc.c
1555
i->f->set_vport_##field(vport); \
drivers/scsi/scsi_transport_fc.c
1561
static FC_DEVICE_ATTR(vport, field, S_IRUGO, \
drivers/scsi/scsi_transport_fc.c
1566
static FC_DEVICE_ATTR(vport, field, S_IRUGO, \
drivers/scsi/scsi_transport_fc.c
1572
static FC_DEVICE_ATTR(vport, field, S_IRUGO | S_IWUSR, \
drivers/scsi/scsi_transport_fc.c
1581
struct fc_vport *vport = transport_class_to_vport(dev); \
drivers/scsi/scsi_transport_fc.c
1582
return snprintf(buf, sz, format_string, cast vport->field); \
drivers/scsi/scsi_transport_fc.c
1592
struct fc_vport *vport = transport_class_to_vport(dev); \
drivers/scsi/scsi_transport_fc.c
1594
if (vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING)) \
drivers/scsi/scsi_transport_fc.c
1599
vport->field = val; \
drivers/scsi/scsi_transport_fc.c
1606
static FC_DEVICE_ATTR(vport, field, S_IRUGO, \
drivers/scsi/scsi_transport_fc.c
1611
static FC_DEVICE_ATTR(vport, field, S_IRUGO, \
drivers/scsi/scsi_transport_fc.c
1617
static FC_DEVICE_ATTR(vport, field, S_IRUGO | S_IWUSR, \
drivers/scsi/scsi_transport_fc.c
1628
struct fc_vport *vport = transport_class_to_vport(dev); \
drivers/scsi/scsi_transport_fc.c
1630
name = get_fc_##title##_name(vport->title); \
drivers/scsi/scsi_transport_fc.c
1635
static FC_DEVICE_ATTR(vport, title, S_IRUGO, \
drivers/scsi/scsi_transport_fc.c
1697
struct fc_vport *vport = transport_class_to_vport(dev);
drivers/scsi/scsi_transport_fc.c
1699
if (vport->roles == FC_PORT_ROLE_UNKNOWN)
drivers/scsi/scsi_transport_fc.c
1701
return get_fc_port_roles_names(vport->roles, buf);
drivers/scsi/scsi_transport_fc.c
1703
static FC_DEVICE_ATTR(vport, roles, S_IRUGO, show_fc_vport_roles, NULL);
drivers/scsi/scsi_transport_fc.c
1710
static FC_DEVICE_ATTR(vport, symbolic_name, S_IRUGO | S_IWUSR,
drivers/scsi/scsi_transport_fc.c
1717
struct fc_vport *vport = transport_class_to_vport(dev);
drivers/scsi/scsi_transport_fc.c
1718
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/scsi_transport_fc.c
1722
if (vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING)) {
drivers/scsi/scsi_transport_fc.c
1726
vport->flags |= FC_VPORT_DELETING;
drivers/scsi/scsi_transport_fc.c
1729
fc_queue_work(shost, &vport->vport_delete_work);
drivers/scsi/scsi_transport_fc.c
1732
static FC_DEVICE_ATTR(vport, vport_delete, S_IWUSR,
drivers/scsi/scsi_transport_fc.c
1745
struct fc_vport *vport = transport_class_to_vport(dev);
drivers/scsi/scsi_transport_fc.c
1746
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/scsi_transport_fc.c
1750
if (vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING))
drivers/scsi/scsi_transport_fc.c
1754
if (vport->vport_state != FC_VPORT_DISABLED)
drivers/scsi/scsi_transport_fc.c
1757
if (vport->vport_state == FC_VPORT_DISABLED)
drivers/scsi/scsi_transport_fc.c
1762
stat = i->f->vport_disable(vport, ((*buf == '0') ? false : true));
drivers/scsi/scsi_transport_fc.c
1765
static FC_DEVICE_ATTR(vport, vport_disable, S_IWUSR,
drivers/scsi/scsi_transport_fc.c
2351
struct fc_vport *vport;
drivers/scsi/scsi_transport_fc.c
2379
stat = fc_vport_setup(shost, 0, &shost->shost_gendev, &vid, &vport);
drivers/scsi/scsi_transport_fc.c
2398
struct fc_vport *vport;
drivers/scsi/scsi_transport_fc.c
2423
list_for_each_entry(vport, &fc_host->vports, peers) {
drivers/scsi/scsi_transport_fc.c
2424
if ((vport->channel == 0) &&
drivers/scsi/scsi_transport_fc.c
2425
(vport->port_name == wwpn) && (vport->node_name == wwnn)) {
drivers/scsi/scsi_transport_fc.c
2426
if (vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING))
drivers/scsi/scsi_transport_fc.c
2428
vport->flags |= FC_VPORT_DELETING;
drivers/scsi/scsi_transport_fc.c
2438
stat = fc_vport_terminate(vport);
drivers/scsi/scsi_transport_fc.c
2518
struct fc_vport *vport = dev_to_vport(dev);
drivers/scsi/scsi_transport_fc.c
2520
kfree(vport);
drivers/scsi/scsi_transport_fc.c
2531
struct fc_vport *vport;
drivers/scsi/scsi_transport_fc.c
2537
vport = dev_to_vport(dev);
drivers/scsi/scsi_transport_fc.c
2539
shost = vport_to_shost(vport);
drivers/scsi/scsi_transport_fc.c
2919
struct fc_vport *vport = NULL, *next_vport = NULL;
drivers/scsi/scsi_transport_fc.c
2928
list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) {
drivers/scsi/scsi_transport_fc.c
2929
vport->flags |= FC_VPORT_DELETING;
drivers/scsi/scsi_transport_fc.c
2930
fc_queue_work(shost, &vport->vport_delete_work);
drivers/scsi/scsi_transport_fc.c
33
struct fc_vport **vport);
drivers/scsi/scsi_transport_fc.c
3888
struct fc_vport *vport;
drivers/scsi/scsi_transport_fc.c
3900
vport = kzalloc(size, GFP_KERNEL);
drivers/scsi/scsi_transport_fc.c
3901
if (unlikely(!vport)) {
drivers/scsi/scsi_transport_fc.c
3906
vport->vport_state = FC_VPORT_UNKNOWN;
drivers/scsi/scsi_transport_fc.c
3907
vport->vport_last_state = FC_VPORT_UNKNOWN;
drivers/scsi/scsi_transport_fc.c
3908
vport->node_name = ids->node_name;
drivers/scsi/scsi_transport_fc.c
3909
vport->port_name = ids->port_name;
drivers/scsi/scsi_transport_fc.c
3910
vport->roles = ids->roles;
drivers/scsi/scsi_transport_fc.c
3911
vport->vport_type = ids->vport_type;
drivers/scsi/scsi_transport_fc.c
3913
vport->dd_data = &vport[1];
drivers/scsi/scsi_transport_fc.c
3914
vport->shost = shost;
drivers/scsi/scsi_transport_fc.c
3915
vport->channel = channel;
drivers/scsi/scsi_transport_fc.c
3916
vport->flags = FC_VPORT_CREATING;
drivers/scsi/scsi_transport_fc.c
3917
INIT_WORK(&vport->vport_delete_work, fc_vport_sched_delete);
drivers/scsi/scsi_transport_fc.c
3923
kfree(vport);
drivers/scsi/scsi_transport_fc.c
3927
vport->number = fc_host->next_vport_number++;
drivers/scsi/scsi_transport_fc.c
3928
list_add_tail(&vport->peers, &fc_host->vports);
drivers/scsi/scsi_transport_fc.c
3933
dev = &vport->dev;
drivers/scsi/scsi_transport_fc.c
3938
shost->host_no, channel, vport->number);
drivers/scsi/scsi_transport_fc.c
3949
error = fci->f->vport_create(vport, ids->disable);
drivers/scsi/scsi_transport_fc.c
3969
vport->flags &= ~FC_VPORT_CREATING;
drivers/scsi/scsi_transport_fc.c
3976
*ret_vport = vport;
drivers/scsi/scsi_transport_fc.c
3986
list_del(&vport->peers);
drivers/scsi/scsi_transport_fc.c
3991
kfree(vport);
drivers/scsi/scsi_transport_fc.c
4011
struct fc_vport *vport;
drivers/scsi/scsi_transport_fc.c
4014
ids, &vport);
drivers/scsi/scsi_transport_fc.c
4015
return stat ? NULL : vport;
drivers/scsi/scsi_transport_fc.c
4030
fc_vport_terminate(struct fc_vport *vport)
drivers/scsi/scsi_transport_fc.c
4032
struct Scsi_Host *shost = vport_to_shost(vport);
drivers/scsi/scsi_transport_fc.c
4035
struct device *dev = &vport->dev;
drivers/scsi/scsi_transport_fc.c
4040
stat = i->f->vport_delete(vport);
drivers/scsi/scsi_transport_fc.c
4045
vport->flags &= ~FC_VPORT_DELETING;
drivers/scsi/scsi_transport_fc.c
4047
vport->flags |= FC_VPORT_DELETED;
drivers/scsi/scsi_transport_fc.c
4048
list_del(&vport->peers);
drivers/scsi/scsi_transport_fc.c
4081
struct fc_vport *vport =
drivers/scsi/scsi_transport_fc.c
4085
stat = fc_vport_terminate(vport);
drivers/scsi/scsi_transport_fc.c
4087
dev_printk(KERN_ERR, vport->dev.parent,
drivers/scsi/scsi_transport_fc.c
4090
dev_name(&vport->dev), vport->shost->host_no,
drivers/scsi/scsi_transport_fc.c
4091
vport->channel, stat);
drivers/vdpa/mlx5/net/mlx5_vnet.c
2797
static u8 query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport)
drivers/vdpa/mlx5/net/mlx5_vnet.c
2805
MLX5_SET(query_vport_state_in, in, vport_number, vport);
drivers/vdpa/mlx5/net/mlx5_vnet.c
2806
if (vport)
include/linux/mlx5/eswitch.h
55
u16 vport;
include/linux/mlx5/fs.h
201
} vport;
include/linux/mlx5/fs.h
234
u16 vport;
include/linux/mlx5/fs.h
254
struct mlx5_flow_table_attr *ft_attr, u16 vport);
include/linux/mlx5/mlx5_ifc.h
4319
struct mlx5_ifc_vport_element_bits vport;
include/linux/mlx5/vport.h
103
u16 vport,
include/linux/mlx5/vport.h
112
u16 vport,
include/linux/mlx5/vport.h
126
int mlx5_query_vport_down_stats(struct mlx5_core_dev *mdev, u16 vport,
include/linux/mlx5/vport.h
143
int mlx5_vport_get_other_func_cap(struct mlx5_core_dev *dev, u16 vport, void *out,
include/linux/mlx5/vport.h
145
int mlx5_vport_get_vhca_id(struct mlx5_core_dev *dev, u16 vport, u16 *vhca_id);
include/linux/mlx5/vport.h
60
u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport);
include/linux/mlx5/vport.h
62
u16 vport, u8 other_vport, u8 state);
include/linux/mlx5/vport.h
64
u16 vport, u8 other_vport, u32 *max_tx_speed);
include/linux/mlx5/vport.h
66
u16 vport, u8 other_vport, u16 max_tx_speed);
include/linux/mlx5/vport.h
68
u16 vport, bool other, u8 *addr);
include/linux/mlx5/vport.h
71
u16 vport, u8 *min_inline);
include/linux/mlx5/vport.h
74
u16 vport, u8 min_inline);
include/linux/mlx5/vport.h
76
u16 vport, const u8 *addr);
include/linux/mlx5/vport.h
83
u16 vport, bool other_vport, u64 *node_guid);
include/linux/mlx5/vport.h
85
u16 vport, u64 node_guid);
include/net/ip_vs.h
1004
__be16 vport; /* virtual port number */
include/net/ip_vs.h
1635
__be16 vport,
include/net/ip_vs.h
1644
p->vport = vport;
include/net/ip_vs.h
1720
ntohs(cp->vport));
include/net/ip_vs.h
1739
ntohs(cp->vport));
include/net/ip_vs.h
1755
ntohs(cp->vport));
include/net/ip_vs.h
1870
const union nf_inet_addr *vaddr, __be16 vport);
include/net/ip_vs.h
1891
const union nf_inet_addr *vaddr, __be16 vport,
include/net/ip_vs.h
792
__be16 vport;
include/net/ip_vs.h
841
__be16 vport;
include/net/mana/mana.h
1053
mana_handle_t vport,
include/net/mana/mana.h
669
mana_handle_t vport;
include/net/mana/mana.h
684
mana_handle_t vport;
include/net/mana/mana.h
745
mana_handle_t vport;
include/net/mana/mana.h
751
mana_handle_t vport;
include/net/mana/mana.h
766
mana_handle_t vport;
include/net/mana/mana.h
920
mana_handle_t vport;
include/net/mana/mana.h
974
mana_handle_t vport;
include/scsi/libfc.h
719
struct fc_vport *vport;
include/scsi/libfcoe.h
266
int fcoe_validate_vport_create(struct fc_vport *vport);
include/scsi/scsi_transport_fc.h
833
fc_vport_set_state(struct fc_vport *vport, enum fc_vport_state new_state)
include/scsi/scsi_transport_fc.h
837
vport->vport_last_state = vport->vport_state;
include/scsi/scsi_transport_fc.h
838
vport->vport_state = new_state;
include/scsi/scsi_transport_fc.h
869
int fc_vport_terminate(struct fc_vport *vport);
include/uapi/linux/netfilter/xt_ipvs.h
22
__be16 vport;
include/uapi/rdma/mlx5_user_ioctl_verbs.h
114
__u16 vport;
net/bridge/br_multicast.c
4354
struct net_bridge_vlan *vport;
net/bridge/br_multicast.c
4356
vport = br_vlan_find(nbp_vlan_group(p), vlan->vid);
net/bridge/br_multicast.c
4357
if (!vport)
net/bridge/br_multicast.c
4359
br_multicast_toggle_one_vlan(vport, on);
net/netfilter/ipvs/ip_vs_conn.c
1142
IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_conn.c
1186
cp->dport, &cp->vaddr, cp->vport,
net/netfilter/ipvs/ip_vs_conn.c
1239
IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_conn.c
1309
ntohs(ct->vport),
net/netfilter/ipvs/ip_vs_conn.c
1499
cp->vport = p->vport;
net/netfilter/ipvs/ip_vs_conn.c
1728
&cp->vaddr.in6, ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_conn.c
1741
ntohl(cp->vaddr.ip), ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_conn.c
1790
&cp->vaddr.in6, ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_conn.c
1803
ntohl(cp->vaddr.ip), ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_conn.c
222
lport = p->vport;
net/netfilter/ipvs/ip_vs_conn.c
225
port = p->vport;
net/netfilter/ipvs/ip_vs_conn.c
243
cp->vport, &p);
net/netfilter/ipvs/ip_vs_conn.c
390
p->vport == cp->vport && cp->af == p->af &&
net/netfilter/ipvs/ip_vs_conn.c
433
IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
net/netfilter/ipvs/ip_vs_conn.c
513
p->vport == cp->vport &&
net/netfilter/ipvs/ip_vs_conn.c
533
IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
net/netfilter/ipvs/ip_vs_conn.c
567
if (p->vport != cp->cport)
net/netfilter/ipvs/ip_vs_conn.c
571
sport = cp->vport;
net/netfilter/ipvs/ip_vs_conn.c
597
IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
net/netfilter/ipvs/ip_vs_conn.c
668
cport, &cp->vaddr, cp->vport, &p);
net/netfilter/ipvs/ip_vs_core.c
1314
__be16 vport;
net/netfilter/ipvs/ip_vs_core.c
1318
vport = svc->port;
net/netfilter/ipvs/ip_vs_core.c
1325
if (!vport || !dport)
net/netfilter/ipvs/ip_vs_core.c
1341
vport, &param) < 0)
net/netfilter/ipvs/ip_vs_core.c
1363
caddr, cport, vaddr, vport, &param);
net/netfilter/ipvs/ip_vs_core.c
1381
IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_core.c
411
const union nf_inet_addr *vaddr, __be16 vport,
net/netfilter/ipvs/ip_vs_core.c
415
vport, p);
net/netfilter/ipvs/ip_vs_core.c
486
__be16 vport = 0;
net/netfilter/ipvs/ip_vs_core.c
495
vport = dst_port;
net/netfilter/ipvs/ip_vs_core.c
511
vaddr, vport, &param) < 0) {
net/netfilter/ipvs/ip_vs_core.c
627
__be16 _ports[2], *pptr, cport, vport;
net/netfilter/ipvs/ip_vs_core.c
642
vport = pptr[1];
net/netfilter/ipvs/ip_vs_core.c
647
vport = pptr[0];
net/netfilter/ipvs/ip_vs_core.c
686
return ip_vs_sched_persist(svc, skb, cport, vport, ignored,
net/netfilter/ipvs/ip_vs_core.c
694
if (!svc->fwmark && vport != svc->port) {
net/netfilter/ipvs/ip_vs_core.c
726
caddr, cport, vaddr, vport, &p);
net/netfilter/ipvs/ip_vs_core.c
728
dest->port ? dest->port : vport,
net/netfilter/ipvs/ip_vs_core.c
740
IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_core.c
952
ports[1] = cp->vport;
net/netfilter/ipvs/ip_vs_core.c
996
ntohs(inout ? cp->vport : cp->dport));
net/netfilter/ipvs/ip_vs_core.c
998
ports[1] = cp->vport;
net/netfilter/ipvs/ip_vs_ctl.c
1057
__be16 vport, __u16 protocol, __u32 fwmark,
net/netfilter/ipvs/ip_vs_ctl.c
1064
svc = ip_vs_service_find(ipvs, svc_af, fwmark, protocol, vaddr, vport);
net/netfilter/ipvs/ip_vs_ctl.c
1132
dest->vport == svc->port))) {
net/netfilter/ipvs/ip_vs_ctl.c
1442
dest->vport = svc->port;
net/netfilter/ipvs/ip_vs_ctl.c
1521
ntohs(dest->vport));
net/netfilter/ipvs/ip_vs_ctl.c
496
const union nf_inet_addr *vaddr, __be16 vport)
net/netfilter/ipvs/ip_vs_ctl.c
507
hash = ip_vs_svc_hashval(t, af, protocol, vaddr, vport);
net/netfilter/ipvs/ip_vs_ctl.c
515
svc->port == vport &&
net/netfilter/ipvs/ip_vs_ctl.c
563
const union nf_inet_addr *vaddr, __be16 vport)
net/netfilter/ipvs/ip_vs_ctl.c
584
svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, vport);
net/netfilter/ipvs/ip_vs_ctl.c
590
(vport == FTPDATA || !inet_port_requires_bind_service(ipvs->net, ntohs(vport)))) {
net/netfilter/ipvs/ip_vs_ctl.c
610
IP_VS_DBG_ADDR(af, vaddr), ntohs(vport),
net/netfilter/ipvs/ip_vs_ftp.c
345
port = n_cp->vport;
net/netfilter/ipvs/ip_vs_ftp.c
355
port = n_cp->vport;
net/netfilter/ipvs/ip_vs_ftp.c
505
ntohs(cp->vport)-1);
net/netfilter/ipvs/ip_vs_ftp.c
521
ntohs(cp->vport)-1);
net/netfilter/ipvs/ip_vs_ftp.c
533
htons(ntohs(cp->vport)-1), &p);
net/netfilter/ipvs/ip_vs_nfct.c
116
new_tuple.dst.u.tcp.port = cp->vport;
net/netfilter/ipvs/ip_vs_nfct.c
171
new_reply.dst.u.tcp.port = cp->vport;
net/netfilter/ipvs/ip_vs_nfct.c
227
from_rs ? &cp->cport : &cp->vport);
net/netfilter/ipvs/ip_vs_nfct.c
256
tuple.dst.u.all = cp->vport;
net/netfilter/ipvs/ip_vs_nfct.c
64
ntohs((C)->vport), \
net/netfilter/ipvs/ip_vs_pe_sip.c
118
ct->vport == p->vport &&
net/netfilter/ipvs/ip_vs_pe_sip.c
128
IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
net/netfilter/ipvs/ip_vs_proto_sctp.c
127
if (sctph->source != cp->vport || payload_csum ||
net/netfilter/ipvs/ip_vs_proto_sctp.c
129
sctph->source = cp->vport;
net/netfilter/ipvs/ip_vs_proto_sctp.c
525
hash = sctp_app_hashkey(cp->vport);
net/netfilter/ipvs/ip_vs_proto_sctp.c
528
if (inc->port == cp->vport) {
net/netfilter/ipvs/ip_vs_proto_sctp.c
538
ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_proto_tcp.c
183
tcph->source = cp->vport;
net/netfilter/ipvs/ip_vs_proto_tcp.c
193
cp->dport, cp->vport);
net/netfilter/ipvs/ip_vs_proto_tcp.c
276
cp->vport, cp->dport);
net/netfilter/ipvs/ip_vs_proto_tcp.c
518
ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_proto_tcp.c
622
hash = tcp_app_hashkey(cp->vport);
net/netfilter/ipvs/ip_vs_proto_tcp.c
625
if (inc->port == cp->vport) {
net/netfilter/ipvs/ip_vs_proto_tcp.c
635
ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_proto_udp.c
174
udph->source = cp->vport;
net/netfilter/ipvs/ip_vs_proto_udp.c
186
cp->dport, cp->vport);
net/netfilter/ipvs/ip_vs_proto_udp.c
270
cp->vport, cp->dport);
net/netfilter/ipvs/ip_vs_proto_udp.c
372
hash = udp_app_hashkey(cp->vport);
net/netfilter/ipvs/ip_vs_proto_udp.c
375
if (inc->port == cp->vport) {
net/netfilter/ipvs/ip_vs_proto_udp.c
385
ntohs(cp->vport),
net/netfilter/ipvs/ip_vs_sync.c
1015
s->vport, &param);
net/netfilter/ipvs/ip_vs_sync.c
141
__be16 vport;
net/netfilter/ipvs/ip_vs_sync.c
163
__be16 vport;
net/netfilter/ipvs/ip_vs_sync.c
595
s->vport = cp->vport;
net/netfilter/ipvs/ip_vs_sync.c
727
s->v4.vport = cp->vport;
net/netfilter/ipvs/ip_vs_sync.c
76
__be16 vport;
net/netfilter/ipvs/ip_vs_sync.c
799
sc->v6.vport, p);
net/netfilter/ipvs/ip_vs_sync.c
806
sc->v4.vport, p);
net/netfilter/ipvs/ip_vs_sync.c
908
param->vaddr, param->vport, protocol,
net/netfilter/ipvs/ip_vs_xmit.c
680
if (!local || cp->vport != cp->dport ||
net/netfilter/xt_ipvs.c
102
if ((cp->vport == data->vport) ^
net/netfilter/xt_ipvs.c
110
cp->control->vport == data->vportctl) ^
net/openvswitch/actions.c
695
struct vport *vport = data->vport;
net/openvswitch/actions.c
722
ovs_vport_send(vport, skb, data->mac_proto);
net/openvswitch/actions.c
740
static void prepare_frag(struct vport *vport, struct sk_buff *skb,
net/openvswitch/actions.c
748
data->vport = vport;
net/openvswitch/actions.c
765
static void ovs_fragment(struct net *net, struct vport *vport,
net/openvswitch/actions.c
787
prepare_frag(vport, skb, orig_network_offset,
net/openvswitch/actions.c
791
ovs_rt.dst.dev = vport->dev;
net/openvswitch/actions.c
803
prepare_frag(vport, skb, orig_network_offset,
net/openvswitch/actions.c
808
ovs_rt.dst.dev = vport->dev;
net/openvswitch/actions.c
818
ovs_vport_name(vport), ntohs(key->eth.type), mru,
net/openvswitch/actions.c
819
vport->dev->mtu);
net/openvswitch/actions.c
832
struct vport *vport = ovs_vport_rcu(dp, out_port);
net/openvswitch/actions.c
834
if (likely(vport &&
net/openvswitch/actions.c
835
netif_running(vport->dev) &&
net/openvswitch/actions.c
836
netif_carrier_ok(vport->dev))) {
net/openvswitch/actions.c
844
(skb->len <= mru + vport->dev->hard_header_len))) {
net/openvswitch/actions.c
845
ovs_vport_send(vport, skb, ovs_key_mac_proto(key));
net/openvswitch/actions.c
846
} else if (mru <= vport->dev->mtu) {
net/openvswitch/actions.c
849
ovs_fragment(net, vport, skb, mru, key);
net/openvswitch/actions.c
891
struct vport *vport;
net/openvswitch/actions.c
893
vport = ovs_vport_rcu(dp, nla_get_u32(a));
net/openvswitch/actions.c
894
if (vport) {
net/openvswitch/actions.c
897
err = dev_fill_metadata_dst(vport->dev, skb);
net/openvswitch/datapath.c
126
static struct vport *new_vport(const struct vport_parms *);
net/openvswitch/datapath.c
143
struct vport *vport = ovs_vport_ovsl_rcu(dp, OVSP_LOCAL);
net/openvswitch/datapath.c
144
return ovs_vport_name(vport);
net/openvswitch/datapath.c
149
struct vport *local;
net/openvswitch/datapath.c
1665
struct vport *vport;
net/openvswitch/datapath.c
1667
vport = ovs_vport_locate(net, nla_data(a[OVS_DP_ATTR_NAME]));
net/openvswitch/datapath.c
1668
dp = vport && vport->port_no == OVSP_LOCAL ? vport->dp : NULL;
net/openvswitch/datapath.c
1820
struct vport *vport;
net/openvswitch/datapath.c
184
struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no)
net/openvswitch/datapath.c
186
struct vport *vport;
net/openvswitch/datapath.c
1872
vport = new_vport(&parms);
net/openvswitch/datapath.c
1873
if (IS_ERR(vport)) {
net/openvswitch/datapath.c
1874
err = PTR_ERR(vport);
net/openvswitch/datapath.c
190
hlist_for_each_entry_rcu(vport, head, dp_hash_node,
net/openvswitch/datapath.c
192
if (vport->port_no == port_no)
net/openvswitch/datapath.c
193
return vport;
net/openvswitch/datapath.c
1931
struct vport *vport;
net/openvswitch/datapath.c
1934
hlist_for_each_entry_safe(vport, n, &dp->ports[i], dp_hash_node)
net/openvswitch/datapath.c
1935
if (vport->port_no != OVSP_LOCAL)
net/openvswitch/datapath.c
1936
ovs_dp_detach_port(vport);
net/openvswitch/datapath.c
199
static struct vport *new_vport(const struct vport_parms *parms)
net/openvswitch/datapath.c
201
struct vport *vport;
net/openvswitch/datapath.c
203
vport = ovs_vport_add(parms);
net/openvswitch/datapath.c
204
if (!IS_ERR(vport)) {
net/openvswitch/datapath.c
206
struct hlist_head *head = vport_hash_bucket(dp, vport->port_no);
net/openvswitch/datapath.c
208
hlist_add_head_rcu(&vport->dp_hash_node, head);
net/openvswitch/datapath.c
210
return vport;
net/openvswitch/datapath.c
2130
static int ovs_vport_cmd_fill_info(struct vport *vport, struct sk_buff *skb,
net/openvswitch/datapath.c
2144
ovs_header->dp_ifindex = get_dpifindex(vport->dp);
net/openvswitch/datapath.c
2146
if (nla_put_u32(skb, OVS_VPORT_ATTR_PORT_NO, vport->port_no) ||
net/openvswitch/datapath.c
2147
nla_put_u32(skb, OVS_VPORT_ATTR_TYPE, vport->ops->type) ||
net/openvswitch/datapath.c
2149
ovs_vport_name(vport)) ||
net/openvswitch/datapath.c
2150
nla_put_u32(skb, OVS_VPORT_ATTR_IFINDEX, vport->dev->ifindex))
net/openvswitch/datapath.c
2154
net_vport = dev_net_rcu(vport->dev);
net/openvswitch/datapath.c
2163
ovs_vport_get_stats(vport, &vport_stats);
net/openvswitch/datapath.c
2169
if (ovs_vport_get_upcall_stats(vport, skb))
net/openvswitch/datapath.c
217
struct vport *p = OVS_CB(skb)->input_vport;
net/openvswitch/datapath.c
2172
if (ovs_vport_get_upcall_portids(vport, skb))
net/openvswitch/datapath.c
2175
err = ovs_vport_get_options(vport, skb);
net/openvswitch/datapath.c
2228
struct sk_buff *ovs_vport_cmd_build_info(struct vport *vport, struct net *net,
net/openvswitch/datapath.c
2238
retval = ovs_vport_cmd_fill_info(vport, skb, net, portid, seq, 0, cmd,
net/openvswitch/datapath.c
2246
static struct vport *lookup_vport(struct net *net,
net/openvswitch/datapath.c
2251
struct vport *vport;
net/openvswitch/datapath.c
2256
vport = ovs_vport_locate(net, nla_data(a[OVS_VPORT_ATTR_NAME]));
net/openvswitch/datapath.c
2257
if (!vport)
net/openvswitch/datapath.c
2260
ovs_header->dp_ifindex != get_dpifindex(vport->dp))
net/openvswitch/datapath.c
2262
return vport;
net/openvswitch/datapath.c
2273
vport = ovs_vport_ovsl_rcu(dp, port_no);
net/openvswitch/datapath.c
2274
if (!vport)
net/openvswitch/datapath.c
2276
return vport;
net/openvswitch/datapath.c
2286
struct vport *vport;
net/openvswitch/datapath.c
2290
hlist_for_each_entry_rcu(vport, &dp->ports[i], dp_hash_node,
net/openvswitch/datapath.c
2292
dev = vport->dev;
net/openvswitch/datapath.c
2305
struct vport *vport;
net/openvswitch/datapath.c
2310
hlist_for_each_entry_rcu(vport, &dp->ports[i], dp_hash_node,
net/openvswitch/datapath.c
2312
netdev_set_rx_headroom(vport->dev, new_headroom);
net/openvswitch/datapath.c
2322
struct vport *vport;
net/openvswitch/datapath.c
233
void ovs_dp_detach_port(struct vport *p)
net/openvswitch/datapath.c
2353
vport = ovs_vport_ovsl(dp, port_no);
net/openvswitch/datapath.c
2355
if (vport)
net/openvswitch/datapath.c
2363
vport = ovs_vport_ovsl(dp, port_no);
net/openvswitch/datapath.c
2364
if (!vport)
net/openvswitch/datapath.c
2377
vport = new_vport(&parms);
net/openvswitch/datapath.c
2378
err = PTR_ERR(vport);
net/openvswitch/datapath.c
2379
if (IS_ERR(vport)) {
net/openvswitch/datapath.c
2385
err = ovs_vport_cmd_fill_info(vport, reply, genl_info_net(info),
net/openvswitch/datapath.c
2389
new_headroom = netdev_get_fwd_headroom(vport->dev);
net/openvswitch/datapath.c
2394
netdev_set_rx_headroom(vport->dev, dp->max_headroom);
net/openvswitch/datapath.c
2412
struct vport *vport;
net/openvswitch/datapath.c
2420
vport = lookup_vport(sock_net(skb->sk), genl_info_userhdr(info), a);
net/openvswitch/datapath.c
2421
err = PTR_ERR(vport);
net/openvswitch/datapath.c
2422
if (IS_ERR(vport))
net/openvswitch/datapath.c
2426
nla_get_u32(a[OVS_VPORT_ATTR_TYPE]) != vport->ops->type) {
net/openvswitch/datapath.c
2432
err = ovs_vport_set_options(vport, a[OVS_VPORT_ATTR_OPTIONS]);
net/openvswitch/datapath.c
2441
err = ovs_vport_set_upcall_portids(vport, ids);
net/openvswitch/datapath.c
2446
err = ovs_vport_cmd_fill_info(vport, reply, genl_info_net(info),
net/openvswitch/datapath.c
2467
struct vport *vport;
net/openvswitch/datapath.c
2476
vport = lookup_vport(sock_net(skb->sk), genl_info_userhdr(info), a);
net/openvswitch/datapath.c
2477
err = PTR_ERR(vport);
net/openvswitch/datapath.c
2478
if (IS_ERR(vport))
net/openvswitch/datapath.c
248
const struct vport *p = OVS_CB(skb)->input_vport;
net/openvswitch/datapath.c
2481
if (vport->port_no == OVSP_LOCAL) {
net/openvswitch/datapath.c
2486
err = ovs_vport_cmd_fill_info(vport, reply, genl_info_net(info),
net/openvswitch/datapath.c
2492
dp = vport->dp;
net/openvswitch/datapath.c
2493
if (netdev_get_fwd_headroom(vport->dev) == dp->max_headroom)
net/openvswitch/datapath.c
2496
netdev_reset_rx_headroom(vport->dev);
net/openvswitch/datapath.c
2497
ovs_dp_detach_port(vport);
net/openvswitch/datapath.c
2521
struct vport *vport;
net/openvswitch/datapath.c
2529
vport = lookup_vport(sock_net(skb->sk), ovs_header, a);
net/openvswitch/datapath.c
2530
err = PTR_ERR(vport);
net/openvswitch/datapath.c
2531
if (IS_ERR(vport))
net/openvswitch/datapath.c
2533
err = ovs_vport_cmd_fill_info(vport, reply, genl_info_net(info),
net/openvswitch/datapath.c
2561
struct vport *vport;
net/openvswitch/datapath.c
2564
hlist_for_each_entry_rcu(vport, &dp->ports[i], dp_hash_node) {
net/openvswitch/datapath.c
2566
ovs_vport_cmd_fill_info(vport, skb,
net/openvswitch/datapath.c
2723
struct vport *vport;
net/openvswitch/datapath.c
2725
hlist_for_each_entry(vport, &dp->ports[i], dp_hash_node) {
net/openvswitch/datapath.c
2726
if (vport->ops->type != OVS_VPORT_TYPE_INTERNAL)
net/openvswitch/datapath.c
2729
if (dev_net(vport->dev) == dnet)
net/openvswitch/datapath.c
2730
list_add(&vport->detach_list, head);
net/openvswitch/datapath.c
2740
struct vport *vport, *vport_next;
net/openvswitch/datapath.c
2757
list_for_each_entry_safe(vport, vport_next, &head, detach_list) {
net/openvswitch/datapath.c
2758
list_del(&vport->detach_list);
net/openvswitch/datapath.c
2759
ovs_dp_detach_port(vport);
net/openvswitch/datapath.c
622
struct vport *input_vport;
net/openvswitch/datapath.h
128
struct vport *input_vport;
net/openvswitch/datapath.h
183
struct vport *vport;
net/openvswitch/datapath.h
267
struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no);
net/openvswitch/datapath.h
269
static inline struct vport *ovs_vport_rcu(const struct datapath *dp, int port_no)
net/openvswitch/datapath.h
275
static inline struct vport *ovs_vport_ovsl_rcu(const struct datapath *dp, int port_no)
net/openvswitch/datapath.h
281
static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_no)
net/openvswitch/datapath.h
293
struct vport *vport = ovs_internal_dev_get_vport(dev);
net/openvswitch/datapath.h
295
if (vport)
net/openvswitch/datapath.h
296
return vport->dp;
net/openvswitch/datapath.h
321
void ovs_dp_detach_port(struct vport *);
net/openvswitch/datapath.h
329
struct sk_buff *ovs_vport_cmd_build_info(struct vport *vport, struct net *net,
net/openvswitch/dp_notify.c
14
static void dp_detach_port_notify(struct vport *vport)
net/openvswitch/dp_notify.c
19
dp = vport->dp;
net/openvswitch/dp_notify.c
20
notify = ovs_vport_cmd_build_info(vport, ovs_dp_get_net(dp),
net/openvswitch/dp_notify.c
22
ovs_dp_detach_port(vport);
net/openvswitch/dp_notify.c
44
struct vport *vport;
net/openvswitch/dp_notify.c
47
hlist_for_each_entry_safe(vport, n, &dp->ports[i], dp_hash_node) {
net/openvswitch/dp_notify.c
48
if (vport->ops->type == OVS_VPORT_TYPE_INTERNAL)
net/openvswitch/dp_notify.c
51
if (!(netif_is_ovs_port(vport->dev)))
net/openvswitch/dp_notify.c
52
dp_detach_port_notify(vport);
net/openvswitch/dp_notify.c
64
struct vport *vport = NULL;
net/openvswitch/dp_notify.c
67
vport = ovs_netdev_get_vport(dev);
net/openvswitch/dp_notify.c
69
if (!vport)
net/openvswitch/dp_notify.c
74
ovs_netdev_detach_dev(vport);
net/openvswitch/vport-geneve.c
100
vport->dev = dev;
net/openvswitch/vport-geneve.c
101
netdev_hold(vport->dev, &vport->dev_tracker, GFP_KERNEL);
net/openvswitch/vport-geneve.c
104
return vport;
net/openvswitch/vport-geneve.c
109
static struct vport *geneve_create(const struct vport_parms *parms)
net/openvswitch/vport-geneve.c
111
struct vport *vport;
net/openvswitch/vport-geneve.c
113
vport = geneve_tnl_create(parms);
net/openvswitch/vport-geneve.c
114
if (IS_ERR(vport))
net/openvswitch/vport-geneve.c
115
return vport;
net/openvswitch/vport-geneve.c
117
return ovs_netdev_link(vport, true);
net/openvswitch/vport-geneve.c
36
static inline struct geneve_port *geneve_vport(const struct vport *vport)
net/openvswitch/vport-geneve.c
38
return vport_priv(vport);
net/openvswitch/vport-geneve.c
41
static int geneve_get_options(const struct vport *vport,
net/openvswitch/vport-geneve.c
44
struct geneve_port *geneve_port = geneve_vport(vport);
net/openvswitch/vport-geneve.c
51
static struct vport *geneve_tnl_create(const struct vport_parms *parms)
net/openvswitch/vport-geneve.c
57
struct vport *vport;
net/openvswitch/vport-geneve.c
76
vport = ovs_vport_alloc(sizeof(struct geneve_port),
net/openvswitch/vport-geneve.c
78
if (IS_ERR(vport))
net/openvswitch/vport-geneve.c
79
return vport;
net/openvswitch/vport-geneve.c
81
geneve_port = geneve_vport(vport);
net/openvswitch/vport-geneve.c
88
ovs_vport_free(vport);
net/openvswitch/vport-geneve.c
96
ovs_vport_free(vport);
net/openvswitch/vport-gre.c
39
static struct vport *gre_tnl_create(const struct vport_parms *parms)
net/openvswitch/vport-gre.c
43
struct vport *vport;
net/openvswitch/vport-gre.c
46
vport = ovs_vport_alloc(0, &ovs_gre_vport_ops, parms);
net/openvswitch/vport-gre.c
47
if (IS_ERR(vport))
net/openvswitch/vport-gre.c
48
return vport;
net/openvswitch/vport-gre.c
54
ovs_vport_free(vport);
net/openvswitch/vport-gre.c
62
ovs_vport_free(vport);
net/openvswitch/vport-gre.c
66
vport->dev = dev;
net/openvswitch/vport-gre.c
67
netdev_hold(vport->dev, &vport->dev_tracker, GFP_KERNEL);
net/openvswitch/vport-gre.c
70
return vport;
net/openvswitch/vport-gre.c
73
static struct vport *gre_create(const struct vport_parms *parms)
net/openvswitch/vport-gre.c
75
struct vport *vport;
net/openvswitch/vport-gre.c
77
vport = gre_tnl_create(parms);
net/openvswitch/vport-gre.c
78
if (IS_ERR(vport))
net/openvswitch/vport-gre.c
79
return vport;
net/openvswitch/vport-gre.c
81
return ovs_netdev_link(vport, true);
net/openvswitch/vport-internal_dev.c
123
static struct vport *internal_dev_create(const struct vport_parms *parms)
net/openvswitch/vport-internal_dev.c
125
struct vport *vport;
net/openvswitch/vport-internal_dev.c
130
vport = ovs_vport_alloc(0, &ovs_internal_vport_ops, parms);
net/openvswitch/vport-internal_dev.c
131
if (IS_ERR(vport)) {
net/openvswitch/vport-internal_dev.c
132
err = PTR_ERR(vport);
net/openvswitch/vport-internal_dev.c
138
vport->dev = dev;
net/openvswitch/vport-internal_dev.c
139
if (!vport->dev) {
net/openvswitch/vport-internal_dev.c
145
dev_net_set(vport->dev, ovs_dp_get_net(vport->dp));
net/openvswitch/vport-internal_dev.c
147
internal_dev = internal_dev_priv(vport->dev);
net/openvswitch/vport-internal_dev.c
148
internal_dev->vport = vport;
net/openvswitch/vport-internal_dev.c
151
if (vport->port_no == OVSP_LOCAL)
net/openvswitch/vport-internal_dev.c
152
vport->dev->netns_immutable = true;
net/openvswitch/vport-internal_dev.c
155
err = register_netdevice(vport->dev);
net/openvswitch/vport-internal_dev.c
158
vport->dev->priv_destructor = internal_dev_destructor;
net/openvswitch/vport-internal_dev.c
160
dev_set_promiscuity(vport->dev, 1);
net/openvswitch/vport-internal_dev.c
162
netif_start_queue(vport->dev);
net/openvswitch/vport-internal_dev.c
164
return vport;
net/openvswitch/vport-internal_dev.c
170
ovs_vport_free(vport);
net/openvswitch/vport-internal_dev.c
175
static void internal_dev_destroy(struct vport *vport)
net/openvswitch/vport-internal_dev.c
177
netif_stop_queue(vport->dev);
net/openvswitch/vport-internal_dev.c
179
dev_set_promiscuity(vport->dev, -1);
net/openvswitch/vport-internal_dev.c
182
unregister_netdevice(vport->dev);
net/openvswitch/vport-internal_dev.c
22
struct vport *vport;
net/openvswitch/vport-internal_dev.c
220
struct vport *ovs_internal_dev_get_vport(struct net_device *netdev)
net/openvswitch/vport-internal_dev.c
225
return internal_dev_priv(netdev)->vport;
net/openvswitch/vport-internal_dev.c
42
err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL);
net/openvswitch/vport-internal_dev.c
78
struct vport *vport = ovs_internal_dev_get_vport(dev);
net/openvswitch/vport-internal_dev.c
80
ovs_vport_free(vport);
net/openvswitch/vport-internal_dev.h
13
struct vport *ovs_internal_dev_get_vport(struct net_device *);
net/openvswitch/vport-netdev.c
100
err = netdev_rx_handler_register(vport->dev, netdev_frame_hook,
net/openvswitch/vport-netdev.c
101
vport);
net/openvswitch/vport-netdev.c
105
dev_disable_lro(vport->dev);
net/openvswitch/vport-netdev.c
106
dev_set_promiscuity(vport->dev, 1);
net/openvswitch/vport-netdev.c
107
vport->dev->priv_flags |= IFF_OVS_DATAPATH;
net/openvswitch/vport-netdev.c
110
return vport;
net/openvswitch/vport-netdev.c
113
netdev_upper_dev_unlink(vport->dev, get_dpdev(vport->dp));
net/openvswitch/vport-netdev.c
115
if (tunnel && vport->dev->reg_state == NETREG_REGISTERED)
net/openvswitch/vport-netdev.c
116
rtnl_delete_link(vport->dev, 0, NULL);
net/openvswitch/vport-netdev.c
117
netdev_put(vport->dev, &vport->dev_tracker);
net/openvswitch/vport-netdev.c
120
ovs_vport_free(vport);
net/openvswitch/vport-netdev.c
125
static struct vport *netdev_create(const struct vport_parms *parms)
net/openvswitch/vport-netdev.c
127
struct vport *vport;
net/openvswitch/vport-netdev.c
130
vport = ovs_vport_alloc(0, &ovs_netdev_vport_ops, parms);
net/openvswitch/vport-netdev.c
131
if (IS_ERR(vport))
net/openvswitch/vport-netdev.c
132
return vport;
net/openvswitch/vport-netdev.c
134
vport->dev = dev_get_by_name(ovs_dp_get_net(vport->dp), parms->name);
net/openvswitch/vport-netdev.c
135
if (!vport->dev) {
net/openvswitch/vport-netdev.c
139
netdev_tracker_alloc(vport->dev, &vport->dev_tracker, GFP_KERNEL);
net/openvswitch/vport-netdev.c
142
if (strcmp(parms->name, ovs_vport_name(vport))) {
net/openvswitch/vport-netdev.c
147
if (vport->dev->flags & IFF_LOOPBACK ||
net/openvswitch/vport-netdev.c
148
(vport->dev->type != ARPHRD_ETHER &&
net/openvswitch/vport-netdev.c
149
vport->dev->type != ARPHRD_NONE) ||
net/openvswitch/vport-netdev.c
150
ovs_is_internal_dev(vport->dev)) {
net/openvswitch/vport-netdev.c
155
return ovs_netdev_link(vport, false);
net/openvswitch/vport-netdev.c
157
netdev_put(vport->dev, &vport->dev_tracker);
net/openvswitch/vport-netdev.c
159
ovs_vport_free(vport);
net/openvswitch/vport-netdev.c
165
struct vport *vport = container_of(rcu, struct vport, rcu);
net/openvswitch/vport-netdev.c
167
netdev_put(vport->dev, &vport->dev_tracker);
net/openvswitch/vport-netdev.c
168
ovs_vport_free(vport);
net/openvswitch/vport-netdev.c
171
void ovs_netdev_detach_dev(struct vport *vport)
net/openvswitch/vport-netdev.c
174
netdev_rx_handler_unregister(vport->dev);
net/openvswitch/vport-netdev.c
175
netdev_upper_dev_unlink(vport->dev,
net/openvswitch/vport-netdev.c
176
netdev_master_upper_dev_get(vport->dev));
net/openvswitch/vport-netdev.c
177
dev_set_promiscuity(vport->dev, -1);
net/openvswitch/vport-netdev.c
182
vport->dev->priv_flags &= ~IFF_OVS_DATAPATH;
net/openvswitch/vport-netdev.c
185
static void netdev_destroy(struct vport *vport)
net/openvswitch/vport-netdev.c
191
if (netif_is_ovs_port(vport->dev)) {
net/openvswitch/vport-netdev.c
196
if (netif_is_ovs_port(vport->dev))
net/openvswitch/vport-netdev.c
197
ovs_netdev_detach_dev(vport);
net/openvswitch/vport-netdev.c
204
call_rcu(&vport->rcu, vport_netdev_free);
net/openvswitch/vport-netdev.c
207
void ovs_netdev_tunnel_destroy(struct vport *vport)
net/openvswitch/vport-netdev.c
210
if (netif_is_ovs_port(vport->dev))
net/openvswitch/vport-netdev.c
211
ovs_netdev_detach_dev(vport);
net/openvswitch/vport-netdev.c
217
if (vport->dev->reg_state == NETREG_REGISTERED)
net/openvswitch/vport-netdev.c
218
rtnl_delete_link(vport->dev, 0, NULL);
net/openvswitch/vport-netdev.c
224
call_rcu(&vport->rcu, vport_netdev_free);
net/openvswitch/vport-netdev.c
230
struct vport *ovs_netdev_get_vport(struct net_device *dev)
net/openvswitch/vport-netdev.c
233
return (struct vport *)
net/openvswitch/vport-netdev.c
31
struct vport *vport;
net/openvswitch/vport-netdev.c
33
vport = ovs_netdev_get_vport(skb->dev);
net/openvswitch/vport-netdev.c
34
if (unlikely(!vport))
net/openvswitch/vport-netdev.c
50
ovs_vport_receive(vport, skb, skb_tunnel_info(skb));
net/openvswitch/vport-netdev.c
70
struct vport *local;
net/openvswitch/vport-netdev.c
76
struct vport *ovs_netdev_link(struct vport *vport, bool tunnel)
net/openvswitch/vport-netdev.c
80
if (WARN_ON_ONCE(!vport->dev)) {
net/openvswitch/vport-netdev.c
89
if (vport->dev->reg_state != NETREG_REGISTERED) {
net/openvswitch/vport-netdev.c
94
err = netdev_master_upper_dev_link(vport->dev,
net/openvswitch/vport-netdev.c
95
get_dpdev(vport->dp),
net/openvswitch/vport-netdev.h
14
struct vport *ovs_netdev_get_vport(struct net_device *dev);
net/openvswitch/vport-netdev.h
16
struct vport *ovs_netdev_link(struct vport *vport, bool tunnel);
net/openvswitch/vport-netdev.h
17
void ovs_netdev_detach_dev(struct vport *);
net/openvswitch/vport-netdev.h
22
void ovs_netdev_tunnel_destroy(struct vport *vport);
net/openvswitch/vport-vxlan.c
100
vport = ovs_vport_alloc(0, &ovs_vxlan_netdev_vport_ops, parms);
net/openvswitch/vport-vxlan.c
101
if (IS_ERR(vport))
net/openvswitch/vport-vxlan.c
102
return vport;
net/openvswitch/vport-vxlan.c
106
err = vxlan_configure_exts(vport, a, &conf);
net/openvswitch/vport-vxlan.c
108
ovs_vport_free(vport);
net/openvswitch/vport-vxlan.c
117
ovs_vport_free(vport);
net/openvswitch/vport-vxlan.c
125
ovs_vport_free(vport);
net/openvswitch/vport-vxlan.c
129
vport->dev = dev;
net/openvswitch/vport-vxlan.c
130
netdev_hold(vport->dev, &vport->dev_tracker, GFP_KERNEL);
net/openvswitch/vport-vxlan.c
133
return vport;
net/openvswitch/vport-vxlan.c
138
static struct vport *vxlan_create(const struct vport_parms *parms)
net/openvswitch/vport-vxlan.c
140
struct vport *vport;
net/openvswitch/vport-vxlan.c
142
vport = vxlan_tnl_create(parms);
net/openvswitch/vport-vxlan.c
143
if (IS_ERR(vport))
net/openvswitch/vport-vxlan.c
144
return vport;
net/openvswitch/vport-vxlan.c
146
return ovs_netdev_link(vport, true);
net/openvswitch/vport-vxlan.c
22
static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb)
net/openvswitch/vport-vxlan.c
24
struct vxlan_dev *vxlan = netdev_priv(vport->dev);
net/openvswitch/vport-vxlan.c
51
static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr,
net/openvswitch/vport-vxlan.c
71
static struct vport *vxlan_tnl_create(const struct vport_parms *parms)
net/openvswitch/vport-vxlan.c
76
struct vport *vport;
net/openvswitch/vport.c
101
if (!strcmp(name, ovs_vport_name(vport)) &&
net/openvswitch/vport.c
102
net_eq(ovs_dp_get_net(vport->dp), net))
net/openvswitch/vport.c
103
return vport;
net/openvswitch/vport.c
121
struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops,
net/openvswitch/vport.c
124
struct vport *vport;
net/openvswitch/vport.c
128
alloc_size = sizeof(struct vport);
net/openvswitch/vport.c
134
vport = kzalloc(alloc_size, GFP_KERNEL);
net/openvswitch/vport.c
135
if (!vport)
net/openvswitch/vport.c
138
vport->upcall_stats = netdev_alloc_pcpu_stats(struct vport_upcall_stats_percpu);
net/openvswitch/vport.c
139
if (!vport->upcall_stats) {
net/openvswitch/vport.c
144
vport->dp = parms->dp;
net/openvswitch/vport.c
145
vport->port_no = parms->port_no;
net/openvswitch/vport.c
146
vport->ops = ops;
net/openvswitch/vport.c
147
INIT_HLIST_NODE(&vport->dp_hash_node);
net/openvswitch/vport.c
149
if (ovs_vport_set_upcall_portids(vport, parms->upcall_portids)) {
net/openvswitch/vport.c
154
return vport;
net/openvswitch/vport.c
157
free_percpu(vport->upcall_stats);
net/openvswitch/vport.c
159
kfree(vport);
net/openvswitch/vport.c
174
void ovs_vport_free(struct vport *vport)
net/openvswitch/vport.c
179
kfree(rcu_dereference_raw(vport->upcall_portids));
net/openvswitch/vport.c
180
free_percpu(vport->upcall_stats);
net/openvswitch/vport.c
181
kfree(vport);
net/openvswitch/vport.c
204
struct vport *ovs_vport_add(const struct vport_parms *parms)
net/openvswitch/vport.c
207
struct vport *vport;
net/openvswitch/vport.c
216
vport = ops->create(parms);
net/openvswitch/vport.c
217
if (IS_ERR(vport)) {
net/openvswitch/vport.c
219
return vport;
net/openvswitch/vport.c
222
bucket = hash_bucket(ovs_dp_get_net(vport->dp),
net/openvswitch/vport.c
223
ovs_vport_name(vport));
net/openvswitch/vport.c
224
hlist_add_head_rcu(&vport->hash_node, bucket);
net/openvswitch/vport.c
225
return vport;
net/openvswitch/vport.c
251
int ovs_vport_set_options(struct vport *vport, struct nlattr *options)
net/openvswitch/vport.c
253
if (!vport->ops->set_options)
net/openvswitch/vport.c
255
return vport->ops->set_options(vport, options);
net/openvswitch/vport.c
266
void ovs_vport_del(struct vport *vport)
net/openvswitch/vport.c
268
hlist_del_rcu(&vport->hash_node);
net/openvswitch/vport.c
269
module_put(vport->ops->owner);
net/openvswitch/vport.c
270
vport->ops->destroy(vport);
net/openvswitch/vport.c
283
void ovs_vport_get_stats(struct vport *vport, struct ovs_vport_stats *stats)
net/openvswitch/vport.c
288
dev_stats = dev_get_stats(vport->dev, &temp);
net/openvswitch/vport.c
310
int ovs_vport_get_upcall_stats(struct vport *vport, struct sk_buff *skb)
net/openvswitch/vport.c
321
stats = per_cpu_ptr(vport->upcall_stats, i);
net/openvswitch/vport.c
367
int ovs_vport_get_options(const struct vport *vport, struct sk_buff *skb)
net/openvswitch/vport.c
372
if (!vport->ops->get_options)
net/openvswitch/vport.c
379
err = vport->ops->get_options(vport, skb);
net/openvswitch/vport.c
402
int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids)
net/openvswitch/vport.c
412
old = ovsl_dereference(vport->upcall_portids);
net/openvswitch/vport.c
423
rcu_assign_pointer(vport->upcall_portids, vport_portids);
net/openvswitch/vport.c
444
int ovs_vport_get_upcall_portids(const struct vport *vport,
net/openvswitch/vport.c
449
ids = rcu_dereference_ovsl(vport->upcall_portids);
net/openvswitch/vport.c
451
if (vport->dp->user_features & OVS_DP_F_VPORT_PIDS)
net/openvswitch/vport.c
469
u32 ovs_vport_find_upcall_portid(const struct vport *vport,
net/openvswitch/vport.c
476
ids = rcu_dereference(vport->upcall_portids);
net/openvswitch/vport.c
497
int ovs_vport_receive(struct vport *vport, struct sk_buff *skb,
net/openvswitch/vport.c
503
OVS_CB(skb)->input_vport = vport;
net/openvswitch/vport.c
508
if (unlikely(dev_net(skb->dev) != ovs_dp_get_net(vport->dp))) {
net/openvswitch/vport.c
544
void ovs_vport_send(struct vport *vport, struct sk_buff *skb, u8 mac_proto)
net/openvswitch/vport.c
546
int mtu = vport->dev->mtu;
net/openvswitch/vport.c
548
switch (vport->dev->type) {
net/openvswitch/vport.c
567
if (unlikely(packet_length(skb, vport->dev) > mtu &&
net/openvswitch/vport.c
569
vport->dev->stats.tx_errors++;
net/openvswitch/vport.c
570
if (vport->dev->flags & IFF_UP)
net/openvswitch/vport.c
572
"%d > %d\n", vport->dev->name,
net/openvswitch/vport.c
573
packet_length(skb, vport->dev),
net/openvswitch/vport.c
578
skb->dev = vport->dev;
net/openvswitch/vport.c
580
vport->ops->send(skb);
net/openvswitch/vport.c
94
struct vport *ovs_vport_locate(const struct net *net, const char *name)
net/openvswitch/vport.c
97
struct vport *vport;
net/openvswitch/vport.c
99
hlist_for_each_entry_rcu(vport, bucket, hash_node,
net/openvswitch/vport.h
137
struct vport *(*create)(const struct vport_parms *);
net/openvswitch/vport.h
138
void (*destroy)(struct vport *);
net/openvswitch/vport.h
140
int (*set_options)(struct vport *, struct nlattr *);
net/openvswitch/vport.h
141
int (*get_options)(const struct vport *, struct sk_buff *);
net/openvswitch/vport.h
161
struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *,
net/openvswitch/vport.h
163
void ovs_vport_free(struct vport *);
net/openvswitch/vport.h
178
static inline void *vport_priv(const struct vport *vport)
net/openvswitch/vport.h
180
return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN);
net/openvswitch/vport.h
195
static inline struct vport *vport_from_priv(void *priv)
net/openvswitch/vport.h
197
return (struct vport *)((u8 *)priv - ALIGN(sizeof(struct vport), VPORT_ALIGN));
net/openvswitch/vport.h
20
struct vport;
net/openvswitch/vport.h
200
int ovs_vport_receive(struct vport *, struct sk_buff *,
net/openvswitch/vport.h
203
static inline const char *ovs_vport_name(struct vport *vport)
net/openvswitch/vport.h
205
return vport->dev->name;
net/openvswitch/vport.h
216
void ovs_vport_send(struct vport *vport, struct sk_buff *skb, u8 mac_proto);
net/openvswitch/vport.h
28
struct vport *ovs_vport_add(const struct vport_parms *);
net/openvswitch/vport.h
29
void ovs_vport_del(struct vport *);
net/openvswitch/vport.h
31
struct vport *ovs_vport_locate(const struct net *net, const char *name);
net/openvswitch/vport.h
33
void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *);
net/openvswitch/vport.h
35
int ovs_vport_get_upcall_stats(struct vport *vport, struct sk_buff *skb);
net/openvswitch/vport.h
37
int ovs_vport_set_options(struct vport *, struct nlattr *options);
net/openvswitch/vport.h
38
int ovs_vport_get_options(const struct vport *, struct sk_buff *);
net/openvswitch/vport.h
40
int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
net/openvswitch/vport.h
41
int ovs_vport_get_upcall_portids(const struct vport *, struct sk_buff *);
net/openvswitch/vport.h
42
u32 ovs_vport_find_upcall_portid(const struct vport *, struct sk_buff *);
sound/isa/sc6000.c
104
char __iomem *vport;
sound/isa/sc6000.c
193
static int sc6000_wait_data(char __iomem *vport)
sound/isa/sc6000.c
199
val = ioread8(vport + DSP_DATAVAIL);
sound/isa/sc6000.c
208
static int sc6000_read(char __iomem *vport)
sound/isa/sc6000.c
210
if (sc6000_wait_data(vport))
sound/isa/sc6000.c
213
return ioread8(vport + DSP_READ);
sound/isa/sc6000.c
217
static int sc6000_write(struct device *devptr, char __iomem *vport, int cmd)
sound/isa/sc6000.c
223
val = ioread8(vport + DSP_STATUS);
sound/isa/sc6000.c
228
iowrite8(cmd, vport + DSP_COMMAND);
sound/isa/sc6000.c
240
char __iomem *vport, int command,
sound/isa/sc6000.c
245
if (sc6000_write(devptr, vport, command)) {
sound/isa/sc6000.c
251
int val = sc6000_read(vport);
sound/isa/sc6000.c
267
static int sc6000_dsp_reset(char __iomem *vport)
sound/isa/sc6000.c
269
iowrite8(1, vport + DSP_RESET);
sound/isa/sc6000.c
271
iowrite8(0, vport + DSP_RESET);
sound/isa/sc6000.c
273
if (sc6000_read(vport) == 0xaa)
sound/isa/sc6000.c
280
char __iomem *vport, const u8 *cfg)
sound/isa/sc6000.c
282
if (sc6000_write(devptr, vport, COMMAND_6C) < 0) {
sound/isa/sc6000.c
286
if (sc6000_write(devptr, vport, COMMAND_5C) < 0) {
sound/isa/sc6000.c
290
if (sc6000_write(devptr, vport, cfg[0]) < 0) {
sound/isa/sc6000.c
294
if (sc6000_write(devptr, vport, cfg[1]) < 0) {
sound/isa/sc6000.c
298
if (sc6000_write(devptr, vport, COMMAND_C5) < 0) {
sound/isa/sc6000.c
307
char __iomem *vport, unsigned char softcfg)
sound/isa/sc6000.c
310
if (sc6000_write(devptr, vport, WRITE_MDIRQ_CFG)) {
sound/isa/sc6000.c
314
if (sc6000_write(devptr, vport, softcfg)) {
sound/isa/sc6000.c
322
char __iomem *vport, int config)
sound/isa/sc6000.c
327
if (sc6000_write(devptr, vport, COMMAND_88)) {
sound/isa/sc6000.c
332
} while ((sc6000_wait_data(vport) < 0) && loop--);
sound/isa/sc6000.c
334
if (sc6000_read(vport) < 0) {
sound/isa/sc6000.c
340
if (sc6000_cfg_write(devptr, vport, config))
sound/isa/sc6000.c
347
char __iomem *vport, int config,
sound/isa/sc6000.c
350
if (sc6000_write(devptr, vport, DSP_INIT_MSS)) {
sound/isa/sc6000.c
358
if (sc6000_cfg_write(devptr, vport, config))
sound/isa/sc6000.c
403
sc6000_write(devptr, sc6000->vport, COMMAND_5C);
sound/isa/sc6000.c
404
sc6000->old_dsp = sc6000_read(sc6000->vport) < 0;
sound/isa/sc6000.c
413
if (sc6000_hw_cfg_write(devptr, sc6000->vport,
sound/isa/sc6000.c
420
err = sc6000_setup_board(devptr, sc6000->vport, sc6000->config);
sound/isa/sc6000.c
426
sc6000_dsp_reset(sc6000->vport);
sound/isa/sc6000.c
429
sc6000_write(devptr, sc6000->vport, COMMAND_60);
sound/isa/sc6000.c
430
sc6000_write(devptr, sc6000->vport, 0x02);
sound/isa/sc6000.c
431
sc6000_dsp_reset(sc6000->vport);
sound/isa/sc6000.c
434
err = sc6000_setup_board(devptr, sc6000->vport, sc6000->config);
sound/isa/sc6000.c
440
err = sc6000_init_mss(devptr, sc6000->vport, sc6000->config,
sound/isa/sc6000.c
456
err = sc6000_dsp_reset(sc6000->vport);
sound/isa/sc6000.c
463
err = sc6000_dsp_get_answer(devptr, sc6000->vport, GET_DSP_COPYRIGHT,
sound/isa/sc6000.c
476
if (sc6000_dsp_get_answer(devptr, sc6000->vport,
sound/isa/sc6000.c
571
if (sc6000->vport)
sound/isa/sc6000.c
572
sc6000_setup_board(card->dev, sc6000->vport, 0);
sound/isa/sc6000.c
586
char __iomem *vport;
sound/isa/sc6000.c
615
vport = devm_ioport_map(devptr, port[dev], 0x10);
sound/isa/sc6000.c
616
if (!vport) {
sound/isa/sc6000.c
620
sc6000->vport = vport;
sound/isa/sc6000.c
725
err = sc6000_dsp_reset(sc6000->vport);