From ea5a36107021a90110b8b5887bfa20778e07856d Mon Sep 17 00:00:00 2001 From: Kishore Padmanabha Date: Thu, 10 Sep 2020 18:55:40 -0700 Subject: [PATCH] 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 Reviewed-by: Ajit Khaparde Reviewed-by: Mike Baucom --- drivers/net/bnxt/tf_ulp/ulp_template_db_act.c | 5 +++-- drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_act.c b/drivers/net/bnxt/tf_ulp/ulp_template_db_act.c index 14ce16ebd7..b669a1408b 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_db_act.c +++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_act.c @@ -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 }, diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h b/drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h index 4c6c3599d1..f5c43a9f84 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h +++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h @@ -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, -- 2.20.1