summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
diff options
context:
space:
mode:
authorPeng Li2017-12-22 05:21:42 +0100
committerDavid S. Miller2017-12-27 16:40:30 +0100
commitf0e98c97fa8f169952ca2c1187f9270902c1800d (patch)
treed18509a288e024de035a3c741f1a26668a2205df /drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
parentnet: hns3: add support to modify tqps number (diff)
downloadkernel-qcow2-linux-f0e98c97fa8f169952ca2c1187f9270902c1800d.tar.gz
kernel-qcow2-linux-f0e98c97fa8f169952ca2c1187f9270902c1800d.tar.xz
kernel-qcow2-linux-f0e98c97fa8f169952ca2c1187f9270902c1800d.zip
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 <lipeng321@huawei.com> Signed-off-by: Mingguang Qu <qumingguang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
index 1b2d79bf1fd2..2fd265633492 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);