net/bnxt: fix mark action if rule is at index zero
authorMike Baucom <michael.baucom@broadcom.com>
Fri, 22 May 2020 23:55:01 +0000 (19:55 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 28 May 2020 15:57:07 +0000 (17:57 +0200)
commit2e449a26e7e81632dac39ff975081473c90e7b73
treefa45bc6be2dae76f6a5bc61d4d96a3904115e45e
parent1051b8db945d712f8de197ec3af3c46f6f16af54
net/bnxt: fix mark action if rule is at index zero

In the ingress path, the cfa_code field in Rx completion identifies the
CFA action rule that was used for the incoming packet. It is possible
that the packet could hit the rule at index 0 in the table.
The mark action code was too restrictive by disallowing a cfa_code of
zero.
This code loosens the requirement and allows zero.

Fixes: b87abb2e55cb ("net/bnxt: support marking packet")
Cc: stable@dpdk.org
Signed-off-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c