]> git.ipfire.org Git - thirdparty/linux.git/commit
bnxt_en: Fix deleting of Ntuple filters
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Thu, 19 Feb 2026 18:53:12 +0000 (10:53 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Feb 2026 00:34:47 +0000 (16:34 -0800)
commitc1bbd9900d65ac65b9fce9f129e3369a04871570
treeda87235e68b48e6c73fdf87ff783b3000d66046f
parente123d9302d223767bd910bfbcfe607bae909f8ac
bnxt_en: Fix deleting of Ntuple filters

Ntuple filters can be deleted when the interface
is down. The current code blindly sends the filter
delete command to FW. When the interface is down, all
the VNICs are deleted in the FW. When the VNIC is
freed in the FW, all the associated filters are also
freed. We need not send the free command explicitly.
Sending such command will generate FW error in the
dmesg.

In order to fix this, we can safely return from
bnxt_hwrm_cfa_ntuple_filter_free() when BNXT_STATE_OPEN
is not true which confirms the VNICs have been deleted.

Fixes: 8336a974f37d ("bnxt_en: Save user configured filters in a lookup list")
Suggested-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20260219185313.2682148-3-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c