net/hns3: fix mailbox opcode data type
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 26 Mar 2020 07:14:32 +0000 (15:14 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:04 +0000 (13:57 +0200)
commit7c9f68872d5ca23ba7951f424c646c30211dbb52
tree6d329f86ce98cee71365fae0c592a95501ea21bc
parent5e782bc2570c5746b8190d1b5c717de8ee77d0bd
net/hns3: fix mailbox opcode data type

The mailbox opcode is defined as one byte in datasheet which is not
compatible with that in the current hns3 PMD driver.

This patch fixes the data type of the local variable for mailbox opcode
in driver, changing from uint16_t to uint8_t.

Fixes: 463e748964f5 ("net/hns3: support mailbox")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
drivers/net/hns3/hns3_mbx.c