net: hns3: Fix desc num set to default when setting channel
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 14 Aug 2018 16:13:16 +0000 (17:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2018 16:54:23 +0000 (09:54 -0700)
commit128b900de7df567ca7ca063bf5da4ed0f357db8c
tree3babadfcdcf71e81abdaee52d9bbf6528ecdcbe1
parent60081dcc4fce385ade26d3145b2479789df0b7e5
net: hns3: Fix desc num set to default when setting channel

When user set the channel num using "ethtool -L ethX", the desc num
of BD will set to default value, which will cause desc num set by
user lost problem.

This patch fixes it by restoring the desc num set by user when setting
channel num.

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: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c