net/bnxt: fix flow drop action to support count
authorKishore Padmanabha <kishore.padmanabha@broadcom.com>
Fri, 11 Sep 2020 01:55:40 +0000 (18:55 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:11 +0000 (18:55 +0200)
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>
drivers/net/bnxt/tf_ulp/ulp_template_db_act.c
drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h

index 14ce16e..b669a14 100644 (file)
@@ -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
        },
index 4c6c359..f5c43a9 100644 (file)
@@ -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,