From: Somnath Kotur <somnath.ko...@broadcom.com> 'Count' action was never really implemented in the legacy/AFM model. But there was some place holder code, remove it so that the user will see a failure when a flow with 'count' action is being created.
Signed-off-by: Somnath Kotur <somnath.ko...@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.pura...@broadcom.com> --- drivers/net/bnxt/bnxt_flow.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/net/bnxt/bnxt_flow.c b/drivers/net/bnxt/bnxt_flow.c index f7c90c4..71a8edd 100644 --- a/drivers/net/bnxt/bnxt_flow.c +++ b/drivers/net/bnxt/bnxt_flow.c @@ -1405,23 +1405,6 @@ bnxt_validate_and_parse_flow(struct rte_eth_dev *dev, bnxt_update_filter_flags_en(filter, filter1, use_ntuple); break; - case RTE_FLOW_ACTION_TYPE_COUNT: - vnic0 = &bp->vnic_info[0]; - filter1 = bnxt_get_l2_filter(bp, filter, vnic0); - if (filter1 == NULL) { - rte_flow_error_set(error, - ENOSPC, - RTE_FLOW_ERROR_TYPE_ACTION, - act, - "New filter not available"); - rc = -rte_errno; - goto ret; - } - - filter->fw_l2_filter_id = filter1->fw_l2_filter_id; - filter->flow_id = filter1->flow_id; - filter->flags = HWRM_CFA_NTUPLE_FILTER_ALLOC_INPUT_FLAGS_METER; - break; case RTE_FLOW_ACTION_TYPE_VF: act_vf = (const struct rte_flow_action_vf *)act->conf; vf = act_vf->id; -- 2.10.1