src/dpdk/drivers/net/txgbe/base/txgbe_dcb.c
void txgbe_dcb_unpack_pfc_cee(struct txgbe_dcb_config *cfg, u8 *map, u8 *pfc_up)
{
	struct txgbe_dcb_tc_config *tc_config = &cfg->tc_config[0];
	int up;

	/*
	 * If the TC for this user priority has PFC enabled then set the
	 * matching bit in 'pfc_up' to reflect that PFC is enabled.
	 */
	for (*pfc_up = 0, up = 0; up < TXGBE_DCB_UP_MAX; up++) {
		if (tc_config[map[up]].pfc != txgbe_dcb_pfc_disabled)
			*pfc_up |= 1 << up;
	}
}
/**
 * txgbe_dcb_unpack_pfc_cee - Unpack dcb_config PFC info
 * @cfg: dcb configuration to unpack into hardware consumable fields
 * @map: user priority to traffic class map
 * @pfc_up: u8 to store user priority PFC bitmask
 *
 * This unpacks the dcb configuration PFC info which is stored per
 * traffic class into a 8bit user priority bitmask that can be
 * consumed by hardware routines. The priority to tc map must be
 * updated before calling this routine to use current up-to maps.
 */
Unpack dcb_config PFC info
@cfg: dcb configuration to unpack into hardware consumable fields
@map: user priority to traffic class map
@pfc_up: u8 to store user priority PFC bitmask

This unpacks the dcb configuration PFC info which is stored per
traffic class into a 8bit user priority bitmask that can be
consumed by hardware routines. The priority to tc map must be
updated before calling this routine to use current up-to maps.
Unpack dcb_config PFC info @cfg : dcb configuration to unpack into hardware consumable fields @map : user priority to traffic class map @pfc_up : u8 to store user priority PFC bitmask This unpacks the dcb configuration PFC info which is stored per traffic class into a 8bit user priority bitmask that can be consumed by hardware routines . The priority to tc map must be updated before calling this routine to use current up - to maps .
void txgbe_dcb_unpack_pfc_cee(struct txgbe_dcb_config *cfg, u8 *map, u8 *pfc_up)
{
	struct txgbe_dcb_tc_config *tc_config = &cfg->tc_config[0];
	int up;
	for (*pfc_up = 0, up = 0; up < TXGBE_DCB_UP_MAX; up++) {
		if (tc_config[map[up]].pfc != txgbe_dcb_pfc_disabled)
			*pfc_up |= 1 << up;
	}
}
void txgbe_dcb_unpack_pfc_cee ( struct txgbe_dcb_config * cfg , u8 * map , u8 * pfc_up ) { struct txgbe_dcb_tc_config * tc_config = & cfg -> tc_config [ 0 ] ; int up ; for ( * pfc_up = 0 , up = 0 ; up < TXGBE_DCB_UP_MAX ; up ++ ) { if ( tc_config [ map [ up ] ] . pfc != txgbe_dcb_pfc_disabled ) * pfc_up |= 1 << up ; } }
txgbe_dcb_unpack_pfc_cee - Unpack dcb_config PFC info
 @cfg: dcb configuration to unpack into hardware consumable fields
 @map: user priority to traffic class map
 @pfc_up: u8 to store user priority PFC bitmask
txgbe_dcb_unpack_pfc_cee - Unpack dcb_config PFC info @cfg : dcb configuration to unpack into hardware consumable fields @map : user priority to traffic class map @pfc_up : u8 to store user priority PFC bitmask
/*
	 * If the TC for this user priority has PFC enabled then set the
	 * matching bit in 'pfc_up' to reflect that PFC is enabled.
	 */