]> git.baikalelectronics.ru Git - kernel.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)
commit615f27f59e22686e510c09784253dc28f746dc2e
treee3cfc5d713c9731ce35e2934ce1bec0e407f219c
parent2c3288c288b3358e1fa842792430be9fa9c8cdb0
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: 9e2f6e42338a ("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