]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: hns3: fix rss configuration lost problem when setting channel
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 22 Jan 2019 23:39:30 +0000 (07:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 19:13:01 +0000 (11:13 -0800)
commit90c68a41db7d02ac031e612c0c97147a58e20515
treee3cfc5d713c9731ce35e2934ce1bec0e407f219c
parentd3ec4ef669379bf69891415b4f1397a26a81932c
net: hns3: fix rss configuration lost problem when setting channel

Currently rss configuration set by user will be lost when setting
channel.

This patch fixes it by not setting rss configuration to default
if user has configured the rss.

Fixes: 09f2af6405b8 ("net: hns3: add support to modify tqps number")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c