]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: hns3: Add support of .sriov_configure in HNS3 driver
authorPeng Li <lipeng321@huawei.com>
Tue, 15 May 2018 18:20:13 +0000 (19:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 15:33:08 +0000 (11:33 -0400)
commitfa8d82e853e84de998e91e95d7a09aa04a7f79ee
tree8e7b7d1ac27e187a747b018cd96a3c141a3b08a5
parentbe8d8cdb8ebf3afd841c109dd035fd789a0c7d53
net: hns3: Add support of .sriov_configure in HNS3 driver

As HNS3 driver will enable SRIOV default and enable all VFs the
HW support, if PF and VF driver compiled to kernel, VF driver
will work on host default, it is not right.

This patch adds support for hns3_driver.sriov_configure to support
user configs the VF_num, and do not enable sriov default.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Suggested-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c