]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: adjust rss tc mode configure command
authorGuojia Liao <liaoguojia@huawei.com>
Thu, 10 Dec 2020 03:42:12 +0000 (11:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 04:33:20 +0000 (20:33 -0800)
commit92a33b412f6635a532ad68878ac3a848b3f27c4c
tree70e9754e903f06867ab20cafe30fb80c509141c3
parente9b6f0e7736cad116641b0b5540af52535ca6cf1
net: hns3: adjust rss tc mode configure command

For the max rss size of PF may be up to 512, the max queue
number of single tc may be up to 512 too. For the total queue
numbers may be up to 1280, so the queue offset of each tc may
be more than 1024. So adjust the rss tc mode configuration
command, including extend tc size field from 10 bits to 11
bits, and extend tc size field from 3 bits to 4 bits.

Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c