]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix wrong size of mailbox responding data
authorZhongzhu Liu <liuzhongzhu@huawei.com>
Fri, 7 Jun 2019 02:03:03 +0000 (10:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jun 2019 20:20:58 +0000 (13:20 -0700)
commitabe9287dca3c29884ef6f3ed5772d35b9b065e0f
tree8a1685f9ea2a67a1491b1e963471ed5b13d92b62
parent542f07430eb564229e6f9aa32b709194c1a23896
net: hns3: fix wrong size of mailbox responding data

According to user manual, the maximum size of mailbox responding
data is 8 bytes, the macro HCLGE_MBX_MAX_RESP_DATA_SIZE
should be defined as 8 instead of 16.

Fixes: b94de5055b8a ("net: hns3: fix the problem that the supported port is empty")
Signed-off-by: Zhongzhu Liu <liuzhongzhu@huawei.com>
Signed-off-by: Peng Li <lipeng321@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