]> asedeno.scripts.mit.edu Git - linux.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)
commitc78b5b6cdc8fd8a305b26ba59fe5fad6a0acbe6e
tree695abe221f300a867464265217fdd6b4af2450f4
parent73fc9c4882439b3ea4f185264e1c6d969d61b067
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