net: hns3: fix an issue for hclgevf_ae_get_hdev
authorPeng Li <lipeng321@huawei.com>
Wed, 30 Jan 2019 20:55:50 +0000 (04:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2019 22:50:03 +0000 (14:50 -0800)
commiteed9535f9f716a532ec0c5d6cc7a48584acdf435
tree5083d2e08b1c1ae17210a44db7029541cde6446c
parent9fc55413270fffe1b5ebdea03489d763c62c0305
net: hns3: fix an issue for hclgevf_ae_get_hdev

HNS3 VF driver support NIC and Roce, hdev stores NIC
handle and Roce handle, should use correct parameter for
container_of.

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>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c