]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix the number of queues actually used by ARQ
authorYufeng Mo <moyufeng@huawei.com>
Tue, 5 Jan 2021 03:37:27 +0000 (11:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jan 2021 00:46:40 +0000 (16:46 -0800)
commita740a2c196d946bd747287c328e2222331785f42
treef50b23824805da6f108d2f0f1958351a0ce59acb
parentdea75b6052838d4d5154111c532236a031fdde4d
net: hns3: fix the number of queues actually used by ARQ

HCLGE_MBX_MAX_ARQ_MSG_NUM is used to apply memory for the number
of queues used by ARQ(Asynchronous Receive Queue), so the head
and tail pointers should also use this macro.

Fixes: 447940e77c8f ("net: hns3: Changes to support ARQ(Asynchronous Receive Queue)")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h