]> 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)
commitef1893d4de8d9cdfce62439ae928661d2a9e1a99
tree73fc6170bb58749f9037d9d527e40d219316754e
parent6f27a9e320d71d922d3735af010a591c44a04d2a
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: 575d84053c84 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Fixes: bd63e1a195d2 ("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