Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ixgbe/ixgbe_dcb_82599.c
/****************************************************************************** | /****************************************************************************** | ||||
Copyright (c) 2001-2013, Intel Corporation | Copyright (c) 2001-2014, Intel Corporation | ||||
All rights reserved. | All rights reserved. | ||||
Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without | ||||
Context not available. | |||||
*/ | */ | ||||
reg &= ~(IXGBE_MFLCN_RPFCE_MASK | IXGBE_MFLCN_RFCE); | reg &= ~(IXGBE_MFLCN_RPFCE_MASK | IXGBE_MFLCN_RFCE); | ||||
if (hw->mac.type == ixgbe_mac_X540) | if (hw->mac.type >= ixgbe_mac_X540) | ||||
reg |= pfc_en << IXGBE_MFLCN_RPFCE_SHIFT; | reg |= pfc_en << IXGBE_MFLCN_RPFCE_SHIFT; | ||||
if (pfc_en) | if (pfc_en) | ||||
Context not available. | |||||
fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; | fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; | ||||
IXGBE_WRITE_REG(hw, IXGBE_FCRTL_82599(i), fcrtl); | IXGBE_WRITE_REG(hw, IXGBE_FCRTL_82599(i), fcrtl); | ||||
} else { | } else { | ||||
reg = IXGBE_READ_REG(hw, IXGBE_RXPBSIZE(i)) - 32; | /* | ||||
* In order to prevent Tx hangs when the internal Tx | |||||
* switch is enabled we must set the high water mark | |||||
* to the Rx packet buffer size - 24KB. This allows | |||||
* the Tx switch to function even under heavy Rx | |||||
* workloads. | |||||
*/ | |||||
reg = IXGBE_READ_REG(hw, IXGBE_RXPBSIZE(i)) - 24576; | |||||
IXGBE_WRITE_REG(hw, IXGBE_FCRTL_82599(i), 0); | IXGBE_WRITE_REG(hw, IXGBE_FCRTL_82599(i), 0); | ||||
} | } | ||||
Context not available. | |||||
u16 *refill, u16 *max, u8 *bwg_id, u8 *tsa, | u16 *refill, u16 *max, u8 *bwg_id, u8 *tsa, | ||||
u8 *map) | u8 *map) | ||||
{ | { | ||||
UNREFERENCED_1PARAMETER(link_speed); | |||||
ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, bwg_id, tsa, | ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, bwg_id, tsa, | ||||
map); | map); | ||||
Context not available. |