src/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c
int32_t
ulp_rte_parser_implicit_act_port_process(struct ulp_rte_parser_params *params)
{
	struct rte_flow_action action_item = {0};
	struct rte_flow_action_port_id port_id = {0};

	/* Read the action port set bit */
	if (ULP_COMP_FLD_IDX_RD(params, BNXT_ULP_CF_IDX_ACT_PORT_IS_SET)) {
		/* Already set, so just exit */
		return BNXT_TF_RC_SUCCESS;
	}
	port_id.id = ULP_COMP_FLD_IDX_RD(params, BNXT_ULP_CF_IDX_INCOMING_IF);
	action_item.conf = &port_id;

	/* Update the action port based on incoming port */
	ulp_rte_port_id_act_handler(&action_item, params);

	/* Reset the action port set bit */
	ULP_COMP_FLD_IDX_WR(params, BNXT_ULP_CF_IDX_ACT_PORT_IS_SET, 0);
	return BNXT_TF_RC_SUCCESS;
}
/* Function to handle the implicit action port id */
Function to handle the implicit action port id
Function to handle the implicit action port id
int32_t
ulp_rte_parser_implicit_act_port_process(struct ulp_rte_parser_params *params)
{
	struct rte_flow_action action_item = {0};
	struct rte_flow_action_port_id port_id = {0};
	if (ULP_COMP_FLD_IDX_RD(params, BNXT_ULP_CF_IDX_ACT_PORT_IS_SET)) {
		return BNXT_TF_RC_SUCCESS;
	}
	port_id.id = ULP_COMP_FLD_IDX_RD(params, BNXT_ULP_CF_IDX_INCOMING_IF);
	action_item.conf = &port_id;
	ulp_rte_port_id_act_handler(&action_item, params);
	ULP_COMP_FLD_IDX_WR(params, BNXT_ULP_CF_IDX_ACT_PORT_IS_SET, 0);
	return BNXT_TF_RC_SUCCESS;
}
int32_t ulp_rte_parser_implicit_act_port_process ( struct ulp_rte_parser_params * params ) { struct rte_flow_action action_item = { 0 } ; struct rte_flow_action_port_id port_id = { 0 } ; if ( ULP_COMP_FLD_IDX_RD ( params , BNXT_ULP_CF_IDX_ACT_PORT_IS_SET ) ) { return BNXT_TF_RC_SUCCESS ; } port_id . id = ULP_COMP_FLD_IDX_RD ( params , BNXT_ULP_CF_IDX_INCOMING_IF ) ; action_item . conf = & port_id ; ulp_rte_port_id_act_handler ( & action_item , params ) ; ULP_COMP_FLD_IDX_WR ( params , BNXT_ULP_CF_IDX_ACT_PORT_IS_SET , 0 ) ; return BNXT_TF_RC_SUCCESS ; }
Function to handle the implicit action port id
Function to handle the implicit action port id
/* Read the action port set bit */ /* Already set, so just exit */ /* Update the action port based on incoming port */ /* Reset the action port set bit */