src/dpdk/drivers/net/ice/base/ice_acl_ctrl.c
static void
ice_acl_assign_act_mem_for_scen(struct ice_acl_tbl *tbl,
				struct ice_acl_scen *scen,
				struct ice_aqc_acl_scen *scen_buf,
				u8 current_tcam_idx, u8 target_tcam_idx)
{
	u8 i;

	for (i = 0; i < ICE_AQC_MAX_ACTION_MEMORIES; i++) {
		struct ice_acl_act_mem *p_mem = &tbl->act_mems[i];

		if (p_mem->act_mem == ICE_ACL_ACT_PAIR_MEM_INVAL ||
		    p_mem->member_of_tcam != current_tcam_idx)
			continue;

		scen_buf->act_mem_cfg[i] = target_tcam_idx;
		scen_buf->act_mem_cfg[i] |= ICE_AQC_ACL_SCE_ACT_MEM_EN;
		ice_set_bit(i, scen->act_mem_bitmap);
	}
}
/**
 * ice_acl_assign_act_mem_for_scen
 * @tbl: pointer to ACL table structure
 * @scen: pointer to the scenario struct
 * @scen_buf: pointer to the available space for the scenario
 * @current_tcam_idx: theoretical index of the TCAM that we associated those
 *		      action memory banks with, at the table creation time.
 * @target_tcam_idx: index of the TCAM that we want to associate those action
 *		     memory banks with.
 */
ice_acl_assign_act_mem_for_scen
@tbl: pointer to ACL table structure
@scen: pointer to the scenario struct
@scen_buf: pointer to the available space for the scenario
@current_tcam_idx: theoretical index of the TCAM that we associated those
action memory banks with, at the table creation time.
@target_tcam_idx: index of the TCAM that we want to associate those action
memory banks with.
ice_acl_assign_act_mem_for_scen @tbl : pointer to ACL table structure @scen : pointer to the scenario struct @scen_buf : pointer to the available space for the scenario @current_tcam_idx : theoretical index of the TCAM that we associated those action memory banks with at the table creation time . @target_tcam_idx : index of the TCAM that we want to associate those action memory banks with .
static void
ice_acl_assign_act_mem_for_scen(struct ice_acl_tbl *tbl,
				struct ice_acl_scen *scen,
				struct ice_aqc_acl_scen *scen_buf,
				u8 current_tcam_idx, u8 target_tcam_idx)
{
	u8 i;
	for (i = 0; i < ICE_AQC_MAX_ACTION_MEMORIES; i++) {
		struct ice_acl_act_mem *p_mem = &tbl->act_mems[i];
		if (p_mem->act_mem == ICE_ACL_ACT_PAIR_MEM_INVAL ||
		    p_mem->member_of_tcam != current_tcam_idx)
			continue;
		scen_buf->act_mem_cfg[i] = target_tcam_idx;
		scen_buf->act_mem_cfg[i] |= ICE_AQC_ACL_SCE_ACT_MEM_EN;
		ice_set_bit(i, scen->act_mem_bitmap);
	}
}
static void ice_acl_assign_act_mem_for_scen ( struct ice_acl_tbl * tbl , struct ice_acl_scen * scen , struct ice_aqc_acl_scen * scen_buf , u8 current_tcam_idx , u8 target_tcam_idx ) { u8 i ; for ( i = 0 ; i < ICE_AQC_MAX_ACTION_MEMORIES ; i ++ ) { struct ice_acl_act_mem * p_mem = & tbl -> act_mems [ i ] ; if ( p_mem -> act_mem == ICE_ACL_ACT_PAIR_MEM_INVAL || p_mem -> member_of_tcam != current_tcam_idx ) continue ; scen_buf -> act_mem_cfg [ i ] = target_tcam_idx ; scen_buf -> act_mem_cfg [ i ] |= ICE_AQC_ACL_SCE_ACT_MEM_EN ; ice_set_bit ( i , scen -> act_mem_bitmap ) ; } }
ice_acl_assign_act_mem_for_scen
 @tbl: pointer to ACL table structure
 @scen: pointer to the scenario struct
 @scen_buf: pointer to the available space for the scenario
 @current_tcam_idx: theoretical index of the TCAM that we associated those
                    action memory banks with, at the table creation time.
ice_acl_assign_act_mem_for_scen @tbl : pointer to ACL table structure @scen : pointer to the scenario struct @scen_buf : pointer to the available space for the scenario @current_tcam_idx : theoretical index of the TCAM that we associated those action memory banks with at the table creation time .