net/hinic/base: add message check for command channel
authorGuoyang Zhou <zhouguoyang@huawei.com>
Wed, 11 Nov 2020 06:33:37 +0000 (14:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:26 +0000 (19:43 +0100)
commitcb99500de915040339f294b6ad2fc8edb4085b19
treea72ca4e9b1bc53f809848dc4d2bb4f267db91f31
parent63b7be7870c1eef53808f796f815b9b34ba36325
net/hinic/base: add message check for command channel

In the command channel, a message may has several fragments,
and the several fragments should have same message id. To
prevent problems, this check is added.

Fixes: 1e4593db1d58 ("net/hinic/base: fix log info for PF command channel")
Cc: stable@dpdk.org
Signed-off-by: Guoyang Zhou <zhouguoyang@huawei.com>
drivers/net/hinic/base/hinic_pmd_mbox.c
drivers/net/hinic/base/hinic_pmd_mbox.h
drivers/net/hinic/base/hinic_pmd_mgmt.c
drivers/net/hinic/base/hinic_pmd_mgmt.h