src/dpdk/drivers/net/ixgbe/base/ixgbe_dcb.c
s32 ixgbe_dcb_get_tc_stats(struct ixgbe_hw *hw, struct ixgbe_hw_stats *stats,
			   u8 tc_count)
{
	s32 ret = IXGBE_NOT_IMPLEMENTED;
	switch (hw->mac.type) {
	case ixgbe_mac_82598EB:
		ret = ixgbe_dcb_get_tc_stats_82598(hw, stats, tc_count);
		break;
	case ixgbe_mac_82599EB:
	case ixgbe_mac_X540:
	case ixgbe_mac_X550:
	case ixgbe_mac_X550EM_x:
	case ixgbe_mac_X550EM_a:
		ret = ixgbe_dcb_get_tc_stats_82599(hw, stats, tc_count);
		break;
	default:
		break;
	}
	return ret;
}
/**
 * ixgbe_dcb_get_tc_stats - Returns status of each traffic class
 * @hw: pointer to hardware structure
 * @stats: pointer to statistics structure
 * @tc_count:  Number of elements in bwg_array.
 *
 * This function returns the status data for each of the Traffic Classes in use.
 */
Returns status of each traffic class
@hw: pointer to hardware structure
@stats: pointer to statistics structure
@tc_count:  Number of elements in bwg_array.

This function returns the status data for each of the Traffic Classes in use.
Returns status of each traffic class @hw : pointer to hardware structure @stats : pointer to statistics structure @tc_count : Number of elements in bwg_array . This function returns the status data for each of the Traffic Classes in use .
s32 ixgbe_dcb_get_tc_stats(struct ixgbe_hw *hw, struct ixgbe_hw_stats *stats,
			   u8 tc_count)
{
	s32 ret = IXGBE_NOT_IMPLEMENTED;
	switch (hw->mac.type) {
	case ixgbe_mac_82598EB:
		ret = ixgbe_dcb_get_tc_stats_82598(hw, stats, tc_count);
		break;
	case ixgbe_mac_82599EB:
	case ixgbe_mac_X540:
	case ixgbe_mac_X550:
	case ixgbe_mac_X550EM_x:
	case ixgbe_mac_X550EM_a:
		ret = ixgbe_dcb_get_tc_stats_82599(hw, stats, tc_count);
		break;
	default:
		break;
	}
	return ret;
}
s32 ixgbe_dcb_get_tc_stats ( struct ixgbe_hw * hw , struct ixgbe_hw_stats * stats , u8 tc_count ) { s32 ret = IXGBE_NOT_IMPLEMENTED ; switch ( hw -> mac . type ) { case ixgbe_mac_82598EB : ret = ixgbe_dcb_get_tc_stats_82598 ( hw , stats , tc_count ) ; break ; case ixgbe_mac_82599EB : case ixgbe_mac_X540 : case ixgbe_mac_X550 : case ixgbe_mac_X550EM_x : case ixgbe_mac_X550EM_a : ret = ixgbe_dcb_get_tc_stats_82599 ( hw , stats , tc_count ) ; break ; default : break ; } return ret ; }
ixgbe_dcb_get_tc_stats - Returns status of each traffic class
 @hw: pointer to hardware structure
 @stats: pointer to statistics structure
 @tc_count:  Number of elements in bwg_array.
ixgbe_dcb_get_tc_stats - Returns status of each traffic class @hw : pointer to hardware structure @stats : pointer to statistics structure @tc_count : Number of elements in bwg_array .