net/bnxt: fix duplicate filter pattern creation error
authorSomnath Kotur <somnath.kotur@broadcom.com>
Mon, 8 Jan 2018 20:24:34 +0000 (12:24 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit46667f9377ffcb48af3c6d8998dd4bc6df8436f5
tree2190cf7c8acc26d40fc2a4249ff3d7e71b99d9f4
parent2aafbe01504ccf12ca9953f8550f251041aa0e90
net/bnxt: fix duplicate filter pattern creation error

If the attribute/pattern for a flow is the same, with only the 'action'
i.e the destination queue index changing, allow it by cleaning up
the older ntuple filter and updating the existing flow with
the new filter rule having the new destination queue ID.
Also, clear the L2 filter during flow_destroy after destroying
the ntuple filter, otherwise the flow record is not completely purged
from the HW.

Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_filter.c
drivers/net/bnxt/bnxt_hwrm.c