From: Fuyun Liang Date: Fri, 26 Jan 2018 11:31:24 +0000 (+0800) Subject: net: hns3: add get/set_coalesce support to VF X-Git-Tag: v4.19~1702^2~37^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad31c7320140fc2fad259d81c3340901b6225f03;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Peng Li Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c index 7410205..b034c7f 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 = {