net/bnxt: free EM index on failure
authorMike Baucom <michael.baucom@broadcom.com>
Fri, 11 Sep 2020 01:55:44 +0000 (18:55 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:11 +0000 (18:55 +0200)
commitf01b6fceac77d9649aed46daf231b334f6a9dc94
tree4ad0765eaff6e15f41d4b773bc2b81214f579c2a
parent3960673d308834c230168eb7a8e3f89c981191cd
net/bnxt: free EM index on failure

When a Exact Match entry fails insertion, the allocated index needs to
be pushed back to the allocation stack. This patch takes care of that.

Signed-off-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_core/tf_em_internal.c