diff options
author | Fuyun Liang <liangfuyun1@huawei.com> | 2018-01-26 19:31:24 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-26 10:58:29 -0500 |
commit | ad31c7320140fc2fad259d81c3340901b6225f03 (patch) | |
tree | 0aef085e0f6b1c618aa2cd63499b2f2b87d2f2b3 /drivers/net/ethernet | |
parent | e2d6e64bc3a3949f148476de656e515feffc1d22 (diff) | |
download | linux-ad31c7320140fc2fad259d81c3340901b6225f03.tar.bz2 |
net: hns3: add get/set_coalesce support to VF
This patch adds ethtool_ops.get/set_coalesce support to VF.
Since PF and VF share the same get/set_coalesce interface,
we only need to set hns3_get/set_coalesce to the ethtool_ops
when supporting get/set_coalesce for VF.
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c index 741020534b16..b034c7f24eda 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c @@ -1109,6 +1109,8 @@ static const struct ethtool_ops hns3vf_ethtool_ops = { .set_rxfh = hns3_set_rss, .get_link_ksettings = hns3_get_link_ksettings, .get_channels = hns3_get_channels, + .get_coalesce = hns3_get_coalesce, + .set_coalesce = hns3_set_coalesce, }; static const struct ethtool_ops hns3_ethtool_ops = { |