net/hns3: fix handling link update
authorChengwen Feng <fengchengwen@huawei.com>
Tue, 27 Apr 2021 12:17:39 +0000 (20:17 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 27 Apr 2021 15:08:03 +0000 (17:08 +0200)
commitfae9b062b01397339c02c88ebee11dd5f7af3e3c
treedc9cc38009cd478610cdf32f11cfad3f1a713dcc
parentf294e04851fda95ef7842319865d53d2df0da0d1
net/hns3: fix handling link update

The link fails code should be parsed using the structure
hns3_mbx_vf_to_pf_cmd, else it will parse fail.

Fixes: 109e4dd1bd7a ("net/hns3: get link state change through 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