From: Ajit Khaparde Date: Tue, 17 Apr 2018 01:11:22 +0000 (-0700) Subject: net/bnxt: reset L2 filter id once filter is freed X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1383434c9089;p=dpdk.git net/bnxt: reset L2 filter id once filter is freed The fw_l2_filter_id for a ntuple filter is needed only for the lifetime of the ntuple filter. Once the filter is free, reset the field. The associated l2_filter will be freed as a part of its own cleanup. Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 3a326d4f5c..c7a6157d91 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -3696,6 +3696,7 @@ int bnxt_hwrm_clear_ntuple_filter(struct bnxt *bp, HWRM_UNLOCK(); filter->fw_ntuple_filter_id = -1; + filter->fw_l2_filter_id = UINT64_MAX; return 0; }