]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix change RSS 'hfunc' ineffective issue
authorJian Shen <shenjian15@huawei.com>
Wed, 15 Sep 2021 13:52:06 +0000 (21:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Sep 2021 12:28:39 +0000 (13:28 +0100)
commit7d34247ba1ebce550435867bde47c9fdab98fad9
tree73fc6170bb58749f9037d9d527e40d219316754e
parentd3f32594be40ab47b6d37dddd079c8b0e94bfc4b
net: hns3: fix change RSS 'hfunc' ineffective issue

When user change rss 'hfunc' without set rss 'hkey' by ethtool
-X command, the driver will ignore the 'hfunc' for the hkey is
NULL. It's unreasonable. So fix it.

Fixes: 22c0e2ce21dd ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Fixes: 6e60d40bcb46 ("net: hns3: Add RSS general configuration support for VF")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c