]> git.droids-corp.org - dpdk.git/commit
common/cnxk: fix SQ flush sequence
authorSatha Rao <skoteshwar@marvell.com>
Sun, 8 May 2022 07:48:16 +0000 (13:18 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 10 May 2022 14:26:49 +0000 (16:26 +0200)
commite746aec161cc5642935e1ac4b823bdb2d722ec27
tree7f4abec88c5825802d7305ced95c7033a0363343
parent064e790375423603848db1f95cf264751cc5abc5
common/cnxk: fix SQ flush sequence

Fix SQ flush sequence to issue NIX RX SW Sync after SMQ flush.
This sync ensures that all the packets that were in-flight are
flushed out of memory.

This patch also fixes NULL return issues reported by
static analysis tool in Traffic Manager and sync's mailbox
to that of the kernel version.

Fixes: 05d727e8b14a ("common/cnxk: support NIX traffic management")
Fixes: 0b7e667ee303 ("common/cnxk: enable packet marking")
Cc: stable@dpdk.org
Signed-off-by: Satha Rao <skoteshwar@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_mbox.h
drivers/common/cnxk/roc_nix_tm.c
drivers/common/cnxk/roc_nix_tm_mark.c