src/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c
int32_t
ulp_rte_mark_act_handler(const struct rte_flow_action *action_item,
			 struct ulp_rte_parser_params *param)
{
	const struct rte_flow_action_mark *mark;
	struct ulp_rte_act_bitmap *act = &param->act_bitmap;
	uint32_t mark_id;

	mark = action_item->conf;
	if (mark) {
		mark_id = tfp_cpu_to_be_32(mark->id);
		memcpy(&param->act_prop.act_details[BNXT_ULP_ACT_PROP_IDX_MARK],
		       &mark_id, BNXT_ULP_ACT_PROP_SZ_MARK);

		/* Update the hdr_bitmap with vxlan */
		ULP_BITMAP_SET(act->bits, BNXT_ULP_ACTION_BIT_MARK);
		return BNXT_TF_RC_SUCCESS;
	}
	BNXT_TF_DBG(ERR, "Parse Error: Mark arg is invalid\n");
	return BNXT_TF_RC_ERROR;
}
/* Function to handle the parsing of RTE Flow action Mark Header. */
Function to handle the parsing of RTE Flow action Mark Header.
Function to handle the parsing of RTE Flow action Mark Header .
int32_t
ulp_rte_mark_act_handler(const struct rte_flow_action *action_item,
			 struct ulp_rte_parser_params *param)
{
	const struct rte_flow_action_mark *mark;
	struct ulp_rte_act_bitmap *act = &param->act_bitmap;
	uint32_t mark_id;
	mark = action_item->conf;
	if (mark) {
		mark_id = tfp_cpu_to_be_32(mark->id);
		memcpy(&param->act_prop.act_details[BNXT_ULP_ACT_PROP_IDX_MARK],
		       &mark_id, BNXT_ULP_ACT_PROP_SZ_MARK);
		ULP_BITMAP_SET(act->bits, BNXT_ULP_ACTION_BIT_MARK);
		return BNXT_TF_RC_SUCCESS;
	}
	BNXT_TF_DBG(ERR, "Parse Error: Mark arg is invalid\n");
	return BNXT_TF_RC_ERROR;
}
int32_t ulp_rte_mark_act_handler ( const struct rte_flow_action * action_item , struct ulp_rte_parser_params * param ) { const struct rte_flow_action_mark * mark ; struct ulp_rte_act_bitmap * act = & param -> act_bitmap ; uint32_t mark_id ; mark = action_item -> conf ; if ( mark ) { mark_id = tfp_cpu_to_be_32 ( mark -> id ) ; memcpy ( & param -> act_prop . act_details [ BNXT_ULP_ACT_PROP_IDX_MARK ] , & mark_id , BNXT_ULP_ACT_PROP_SZ_MARK ) ; ULP_BITMAP_SET ( act -> bits , BNXT_ULP_ACTION_BIT_MARK ) ; return BNXT_TF_RC_SUCCESS ; } BNXT_TF_DBG ( ERR , " \n " ) ; return BNXT_TF_RC_ERROR ; }
Function to handle the parsing of RTE Flow action Mark Header.
Function to handle the parsing of RTE Flow action Mark Header .
/* Update the hdr_bitmap with vxlan */