From: Peng Li Date: Fri, 22 Dec 2017 04:21:42 +0000 (+0800) Subject: net: hns3: change the returned tqp number by ethtool -x X-Git-Tag: v4.19~1702^2~288^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0e98c97fa8f169952ca2c1187f9270902c1800d;p=platform%2Fkernel%2Flinux-rpi3.git net: hns3: change the returned tqp number by ethtool -x This patch modifies the return data of get_rxnfc, it will return the current handle's rss_size but not the total tqp number. because the tc_size has been change to the log2 of roundup power of two of rss_size. Signed-off-by: Peng Li Signed-off-by: Mingguang Qu 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 1b2d79b..2fd2656 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c @@ -730,7 +730,7 @@ static int hns3_get_rxnfc(struct net_device *netdev, switch (cmd->cmd) { case ETHTOOL_GRXRINGS: - cmd->data = h->kinfo.num_tc * h->kinfo.rss_size; + cmd->data = h->kinfo.rss_size; break; case ETHTOOL_GRXFH: return h->ae_algo->ops->get_rss_tuple(h, cmd);