提交 abf11d04 编写于 作者: L Lipeng 提交者: David S. Miller

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: NLipeng <lipeng321@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 07d29954
...@@ -450,7 +450,7 @@ static int hns3_get_rxnfc(struct net_device *netdev, ...@@ -450,7 +450,7 @@ static int hns3_get_rxnfc(struct net_device *netdev,
switch (cmd->cmd) { switch (cmd->cmd) {
case ETHTOOL_GRXRINGS: case ETHTOOL_GRXRINGS:
cmd->data = h->ae_algo->ops->get_tc_size(h); cmd->data = h->kinfo.num_tc * h->kinfo.rss_size;
break; break;
case ETHTOOL_GRXFH: case ETHTOOL_GRXFH:
return h->ae_algo->ops->get_rss_tuple(h, cmd); return h->ae_algo->ops->get_rss_tuple(h, cmd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册