net/hns3: fix mailbox response length
authorChengchang Tang <tangchengchang@hisilicon.com>
Fri, 22 Nov 2019 12:06:22 +0000 (20:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commite4eae34a8cac4f8166f9a6c7d87d3b24b973d1fd
tree4e57d8a84ae4098b211bc972a4d72eced499c20a
parentde620754a10974f810b878f637b1ed9f77ebd7d8
net/hns3: fix mailbox response length

Remove the macro 'HNS3_REG_MSG_DATA_OFFSET' which is used to prevent
access violation for response array by limiting the response data length
to 4.
But the limit value is too short to get some longer information such as
6 byte MAC address.

This patch modifies the length of response data from mailbox to allow
the response data length to be 8. So that the VF driver could get more
data from PF driver by mailbox.

Fixes: 463e748964f5 ("net/hns3: support mailbox")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@hisilicon.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_mbx.c