net/bnxt: fix flow drop action to support count

Changed the action template to support count action in addition
to a flow that does drop action.

Fixes: fe82f3e02701 ("net/bnxt: support exact match templates")
Cc: stable@dpdk.org

Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Mike Baucom <michael.baucom@broadcom.com>
This commit is contained in:
Kishore Padmanabha 2020-09-10 18:55:40 -07:00 committed by Ferruh Yigit
parent 09b23f8b9d
commit ea5a361070
2 changed files with 4 additions and 3 deletions

@ -36,7 +36,7 @@ uint16_t ulp_act_sig_tbl[BNXT_ULP_ACT_SIG_TBL_MAX_SZ] = {
[BNXT_ULP_ACT_HID_0020] = 25,
[BNXT_ULP_ACT_HID_0901] = 26,
[BNXT_ULP_ACT_HID_0121] = 27,
[BNXT_ULP_ACT_HID_0004] = 28,
[BNXT_ULP_ACT_HID_0006] = 28,
[BNXT_ULP_ACT_HID_0804] = 29,
[BNXT_ULP_ACT_HID_0105] = 30,
[BNXT_ULP_ACT_HID_0024] = 31,
@ -332,9 +332,10 @@ struct bnxt_ulp_act_match_info ulp_act_match_list[] = {
.act_tid = 2
},
[28] = {
.act_hid = BNXT_ULP_ACT_HID_0004,
.act_hid = BNXT_ULP_ACT_HID_0006,
.act_sig = { .bits =
BNXT_ULP_ACTION_BIT_COUNT |
BNXT_ULP_ACTION_BIT_DROP |
BNXT_ULP_FLOW_DIR_BITMASK_ING },
.act_tid = 2
},

@ -838,7 +838,7 @@ enum bnxt_ulp_act_hid {
BNXT_ULP_ACT_HID_0020 = 0x0020,
BNXT_ULP_ACT_HID_0901 = 0x0901,
BNXT_ULP_ACT_HID_0121 = 0x0121,
BNXT_ULP_ACT_HID_0004 = 0x0004,
BNXT_ULP_ACT_HID_0006 = 0x0006,
BNXT_ULP_ACT_HID_0804 = 0x0804,
BNXT_ULP_ACT_HID_0105 = 0x0105,
BNXT_ULP_ACT_HID_0024 = 0x0024,