]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jan 2021 13:04:18 +0000 (14:04 +0100)
commita96b98eabd28ab9da2e436541a0bfd6d99d15e3a
tree2a1b2eeb5bf2a5282c780eed2761d79421e1cf7a
parent69ac0b72a1d0fec9f251b21bc7fe1e732d995668
net: hns3: fix the number of queues actually used by ARQ

[ Upstream commit 65e61e3c2a619c4d4b873885b2d5394025ed117b ]

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: 07a0556a3a73 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h