aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/huawei/hinic/hinic_hw_if.h
diff options
context:
space:
mode:
authorLuo bin <luobin9@huawei.com>2020-02-27 06:34:43 +0000
committerDavid S. Miller <davem@davemloft.net>2020-02-27 11:08:01 -0800
commitd2ed69ce9ed3477e2a9527e6b89fe4689d99510e (patch)
tree28cd11fbc579908299298e05b3e9fae13dd09b54 /drivers/net/ethernet/huawei/hinic/hinic_hw_if.h
parenthinic: fix a irq affinity bug (diff)
downloadlinux-dev-d2ed69ce9ed3477e2a9527e6b89fe4689d99510e.tar.xz
linux-dev-d2ed69ce9ed3477e2a9527e6b89fe4689d99510e.zip
hinic: fix a bug of setting hw_ioctxt
a reserved field is used to signify prime physical function index in the latest firmware version, so we must assign a value to it correctly Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/huawei/hinic/hinic_hw_if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_if.h b/drivers/net/ethernet/huawei/hinic/hinic_hw_if.h
index 517794509eb2..c7bb9ceca72c 100644
--- a/drivers/net/ethernet/huawei/hinic/hinic_hw_if.h
+++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_if.h
@@ -137,6 +137,7 @@
#define HINIC_HWIF_FUNC_IDX(hwif) ((hwif)->attr.func_idx)
#define HINIC_HWIF_PCI_INTF(hwif) ((hwif)->attr.pci_intf_idx)
#define HINIC_HWIF_PF_IDX(hwif) ((hwif)->attr.pf_idx)
+#define HINIC_HWIF_PPF_IDX(hwif) ((hwif)->attr.ppf_idx)
#define HINIC_FUNC_TYPE(hwif) ((hwif)->attr.func_type)
#define HINIC_IS_PF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PF)