net: hns3: fix the ring count for ETHTOOL_GRXRINGS
This patch fix the ring count for ETHTOOL_GRXRINGS. Ring count not TC size should be return for command "ethtool -n ethx". Signed-off-by: Lipeng <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
07d2995425
commit
abf11d04fd
@ -450,7 +450,7 @@ static int hns3_get_rxnfc(struct net_device *netdev,
|
||||
|
||||
switch (cmd->cmd) {
|
||||
case ETHTOOL_GRXRINGS:
|
||||
cmd->data = h->ae_algo->ops->get_tc_size(h);
|
||||
cmd->data = h->kinfo.num_tc * h->kinfo.rss_size;
|
||||
break;
|
||||
case ETHTOOL_GRXFH:
|
||||
return h->ae_algo->ops->get_rss_tuple(h, cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user