net: hns3: add ethtool_ops.get_channels support for VF
authorPeng Li <lipeng321@huawei.com>
Fri, 12 Jan 2018 08:23:07 +0000 (16:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Jan 2018 15:12:31 +0000 (10:12 -0500)
commit849e460776898e465e2d3e27a34399fb1adc0061
tree1c4a8132c9795ddcf907ac5b691f734957f105d0
parent19d28fbd306e7ae7c1acf05c3e6968b56f0d196b
net: hns3: add ethtool_ops.get_channels support for VF

This patch supports the ethtool's get_channels() for VF.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c