raw/ntb: clear all valid doorbell bits on init
authorJunfeng Guo <junfeng.guo@intel.com>
Thu, 10 Feb 2022 07:06:34 +0000 (15:06 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 Feb 2022 11:23:34 +0000 (12:23 +0100)
commit3bc814fc555d8c7d1c7c63e1e831e9c34679837f
tree3e9b59d52bab50c6223afbf46b8c540343c290d7
parent06b04233b4b254238d08779fc0ecf44cfc7d9e18
raw/ntb: clear all valid doorbell bits on init

Before registering the doorbell interrupt handler callback function,
all the valid doorbell bits within the NTB private data struct should
be cleared to avoid the confusion of the handshake timing sequence
diagram when setting up the NTB connection in back-to-back mode.

Fixes: 62012a76811e ("raw/ntb: add handshake process")
Cc: stable@dpdk.org
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/raw/ntb/ntb.c