]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: hns3: add get/set_coalesce support to VF
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 26 Jan 2018 11:31:24 +0000 (19:31 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:47:52 +0000 (10:47 -0500)
BugLink: http://bugs.launchpad.net/bugs/1756097
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>
(cherry picked from commit ad31c7320140fc2fad259d81c3340901b6225f03)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c

index 741020534b164fe02c4b0b9cbf4d57f2847f6ff5..b034c7f24eda69adcbb29a5a842c64276e2c89a5 100644 (file)
@@ -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 = {