src/dpdk/drivers/net/ixgbe/base/ixgbe_dcb_82599.c
s32 ixgbe_dcb_get_pfc_stats_82599(struct ixgbe_hw *hw,
				  struct ixgbe_hw_stats *stats,
				  u8 tc_count)
{
	int tc;

	DEBUGFUNC("dcb_get_pfc_stats");

	if (tc_count > IXGBE_DCB_MAX_TRAFFIC_CLASS)
		return IXGBE_ERR_PARAM;

	for (tc = 0; tc < tc_count; tc++) {
		/* Priority XOFF Transmitted */
		stats->pxofftxc[tc] += IXGBE_READ_REG(hw, IXGBE_PXOFFTXC(tc));
		/* Priority XOFF Received */
		stats->pxoffrxc[tc] += IXGBE_READ_REG(hw, IXGBE_PXOFFRXCNT(tc));
	}

	return IXGBE_SUCCESS;
}
/**
 * ixgbe_dcb_get_pfc_stats_82599 - Return CBFC status data
 * @hw: pointer to hardware structure
 * @stats: pointer to statistics structure
 * @tc_count:  Number of elements in bwg_array.
 *
 * This function returns the CBFC status data for each of the Traffic Classes.
 */
Return CBFC status data
@hw: pointer to hardware structure
@stats: pointer to statistics structure
@tc_count:  Number of elements in bwg_array.

This function returns the CBFC status data for each of the Traffic Classes.
Return CBFC status data @hw : pointer to hardware structure @stats : pointer to statistics structure @tc_count : Number of elements in bwg_array . This function returns the CBFC status data for each of the Traffic Classes .
s32 ixgbe_dcb_get_pfc_stats_82599(struct ixgbe_hw *hw,
				  struct ixgbe_hw_stats *stats,
				  u8 tc_count)
{
	int tc;
	DEBUGFUNC("dcb_get_pfc_stats");
	if (tc_count > IXGBE_DCB_MAX_TRAFFIC_CLASS)
		return IXGBE_ERR_PARAM;
	for (tc = 0; tc < tc_count; tc++) {
		stats->pxofftxc[tc] += IXGBE_READ_REG(hw, IXGBE_PXOFFTXC(tc));
		stats->pxoffrxc[tc] += IXGBE_READ_REG(hw, IXGBE_PXOFFRXCNT(tc));
	}
	return IXGBE_SUCCESS;
}
s32 ixgbe_dcb_get_pfc_stats_82599 ( struct ixgbe_hw * hw , struct ixgbe_hw_stats * stats , u8 tc_count ) { int tc ; DEBUGFUNC ( " " ) ; if ( tc_count > IXGBE_DCB_MAX_TRAFFIC_CLASS ) return IXGBE_ERR_PARAM ; for ( tc = 0 ; tc < tc_count ; tc ++ ) { stats -> pxofftxc [ tc ] += IXGBE_READ_REG ( hw , IXGBE_PXOFFTXC ( tc ) ) ; stats -> pxoffrxc [ tc ] += IXGBE_READ_REG ( hw , IXGBE_PXOFFRXCNT ( tc ) ) ; } return IXGBE_SUCCESS ; }
ixgbe_dcb_get_pfc_stats_82599 - Return CBFC status data
 @hw: pointer to hardware structure
 @stats: pointer to statistics structure
 @tc_count:  Number of elements in bwg_array.
ixgbe_dcb_get_pfc_stats_82599 - Return CBFC status data @hw : pointer to hardware structure @stats : pointer to statistics structure @tc_count : Number of elements in bwg_array .
/* Priority XOFF Transmitted */ /* Priority XOFF Received */