]> git.droids-corp.org - dpdk.git/commit
net/hns3: fix mailbox communication with HW
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 28 Oct 2021 11:52:30 +0000 (19:52 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Oct 2021 15:47:04 +0000 (17:47 +0200)
commit599ef84add7ed02537ff43a8e8a36f42b36e107e
tree599fc35f027bdcb62c0de61fcb05c09f4f7f68dd
parent2c3e50237c9ae9fac71dec7a40ffa18bb96d1682
net/hns3: fix mailbox communication with HW

Mailbox is the communication mechanism between SW and HW. There exist
two approaches for SW to recognize mailbox message from HW. One way is
using match_id, the other is to compare the message code. The two
approaches are independent and used in different scenarios.

But for the second approach, "next_to_use" should be updated and written
to HW register. If it not done, HW do not know the position SW steps,
then, the communication between SW and HW will turn to be failed.

Fixes: dbbbad23e380 ("net/hns3: fix VF handling LSC event in secondary process")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_mbx.c