src/dpdk/drivers/net/ixgbe/base/ixgbe_dcb.c
s32 ixgbe_dcb_config_pfc(struct ixgbe_hw *hw, u8 pfc_en, u8 *map)
{
	int ret = IXGBE_ERR_PARAM;

	switch (hw->mac.type) {
	case ixgbe_mac_82598EB:
		ret = ixgbe_dcb_config_pfc_82598(hw, pfc_en);
		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_config_pfc_82599(hw, pfc_en, map);
		break;
	default:
		break;
	}
	return ret;
}
/* Helper routines to abstract HW specifics from DCB netlink ops */
Helper routines to abstract HW specifics from DCB netlink ops
Helper routines to abstract HW specifics from DCB netlink ops
s32 ixgbe_dcb_config_pfc(struct ixgbe_hw *hw, u8 pfc_en, u8 *map)
{
	int ret = IXGBE_ERR_PARAM;
	switch (hw->mac.type) {
	case ixgbe_mac_82598EB:
		ret = ixgbe_dcb_config_pfc_82598(hw, pfc_en);
		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_config_pfc_82599(hw, pfc_en, map);
		break;
	default:
		break;
	}
	return ret;
}
s32 ixgbe_dcb_config_pfc ( struct ixgbe_hw * hw , u8 pfc_en , u8 * map ) { int ret = IXGBE_ERR_PARAM ; switch ( hw -> mac . type ) { case ixgbe_mac_82598EB : ret = ixgbe_dcb_config_pfc_82598 ( hw , pfc_en ) ; 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_config_pfc_82599 ( hw , pfc_en , map ) ; break ; default : break ; } return ret ; }
Helper routines to abstract HW specifics from DCB netlink ops
Helper routines to abstract HW specifics from DCB netlink ops