]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: change the returned tqp number by ethtool -x
authorPeng Li <lipeng321@huawei.com>
Fri, 22 Dec 2017 04:21:42 +0000 (12:21 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:47:04 +0000 (10:47 -0500)
commit0241ffbe6421a83e187f69461a2ab12d0255aed1
tree170d5278d2c6385a497f1d16f0446816a01ff2bc
parentf1f779ce1d142274ff5b4699860b00d8c3a32da6
net: hns3: change the returned tqp number by ethtool -x

BugLink: http://bugs.launchpad.net/bugs/1756097
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>
(cherry picked from commit f0e98c97fa8f169952ca2c1187f9270902c1800d)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c