net/hns3: fix mailbox message ID in log
authorChengwen Feng <fengchengwen@huawei.com>
Mon, 10 May 2021 13:38:10 +0000 (21:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 18:07:59 +0000 (20:07 +0200)
The mailbox message id is uint8_t, but the unsupported mailbox message
id was logged by uint16.

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

index 31ab130..f36cb10 100644 (file)
@@ -540,7 +540,7 @@ hns3_dev_handle_mbx_msg(struct hns3_hw *hw)
                        break;
                default:
                        hns3_err(hw, "received unsupported(%u) mbx msg",
-                                req->msg[0]);
+                                opcode);
                        break;
                }