summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
diff options
context:
space:
mode:
authorliuzhongzhu2019-02-02 15:39:33 +0100
committerDavid S. Miller2019-02-02 17:24:08 +0100
commit9194d18b0577a63f313a6eb2e0d4723add2c32e6 (patch)
treedaae74afc31abd2f21ac6b530573953fa9f8e5c9 /drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
parentnet: hns3: fix a wrong checking in the hclge_tx_buffer_calc() (diff)
downloadkernel-qcow2-linux-9194d18b0577a63f313a6eb2e0d4723add2c32e6.tar.gz
kernel-qcow2-linux-9194d18b0577a63f313a6eb2e0d4723add2c32e6.tar.xz
kernel-qcow2-linux-9194d18b0577a63f313a6eb2e0d4723add2c32e6.zip
net: hns3: fix the problem that the supported port is empty
Run ethtool ethx when displaying device information in VF, the supported port and link mode items will be empty. This patch fixes it. Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support") Signed-off-by: liuzhongzhu <liuzhongzhu@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
index 787bc06944e5..eba1118a766d 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
@@ -145,6 +145,8 @@ struct hclgevf_mac {
int link;
u8 duplex;
u32 speed;
+ u64 supported;
+ u64 advertising;
};
struct hclgevf_hw {