]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: modify parameter checks in the hns3_set_channels
authorHuazhong Tan <tanhuazhong@huawei.com>
Fri, 18 Jan 2019 08:13:08 +0000 (16:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 23:10:21 +0000 (15:10 -0800)
commitf6613ceefa9f1bfd9588515a3d0de13bb25d047b
tree695abe221f300a867464265217fdd6b4af2450f4
parentdfd2bef6174f6ed7429ff1447df00cfc33f7f657
net: hns3: modify parameter checks in the hns3_set_channels

The number of queues for each enabled TC should range from 1 to
the maximum available value, and return directly if the value
is same as the current one.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c