Skip to content

net/bnxt/tf_core: fix ignored return of EM delete

Denis Sergeev dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/bnxt/tf_core: fix ignored return of EM deletedrivers/net/bnxt/tf_core/v3/tfc_em.c+5 -02 replies
2/2mailmap: add Denis Sergeev.mailmap+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] net/bnxt/tf_core: fix ignored return of EM delete

This series fixes a missing error check in the bnxt TF core EM delete path that can lead to HW/SW state inconsistency.

The return value of tfc_em_delete_raw() in tfc_em_delete() was silently discarded, so if the HW EM entry removal fails, the function continues to free the corresponding SW pool entry, creating stale flow matches or incorrect pool slot reuse.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Patches:
- net/bnxt/tf_core: fix ignored return of EM delete
- mailmap: add Denis Sergeev

Denis Sergeev (2):
net/bnxt/tf_core: fix ignored return of EM delete
mailmap: add Denis Sergeev

 .mailmap                             | 1 +
 drivers/net/bnxt/tf_core/v3/tfc_em.c | 5 +++++
 2 files changed, 6 insertions(+)
Signature · 1 line
2.50.1