diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2012-03-18 06:33:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-19 16:53:07 -0400 |
commit | c315a4ef55b9afa0373fbb10f8567d59f81247c9 (patch) | |
tree | ce173ae34f969b2b452ae911122120ab9643c5c2 /drivers/net/ethernet | |
parent | 3b60306690569927951be09160e80a8af9c94db4 (diff) |
bnx2x: removed dcb unused code
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c index 2b806090fa4a..e2d68e2239b9 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | |||
@@ -121,26 +121,6 @@ static void bnx2x_pfc_clear(struct bnx2x *bp) | |||
121 | { | 121 | { |
122 | struct bnx2x_nig_brb_pfc_port_params nig_params = {0}; | 122 | struct bnx2x_nig_brb_pfc_port_params nig_params = {0}; |
123 | nig_params.pause_enable = 1; | 123 | nig_params.pause_enable = 1; |
124 | #ifdef BNX2X_SAFC | ||
125 | if (bp->flags & SAFC_TX_FLAG) { | ||
126 | u32 high = 0, low = 0; | ||
127 | int i; | ||
128 | |||
129 | for (i = 0; i < BNX2X_MAX_PRIORITY; i++) { | ||
130 | if (bp->pri_map[i] == 1) | ||
131 | high |= (1 << i); | ||
132 | if (bp->pri_map[i] == 0) | ||
133 | low |= (1 << i); | ||
134 | } | ||
135 | |||
136 | nig_params.llfc_low_priority_classes = high; | ||
137 | nig_params.llfc_low_priority_classes = low; | ||
138 | |||
139 | nig_params.pause_enable = 0; | ||
140 | nig_params.llfc_enable = 1; | ||
141 | nig_params.llfc_out_en = 1; | ||
142 | } | ||
143 | #endif /* BNX2X_SAFC */ | ||
144 | bnx2x_acquire_phy_lock(bp); | 124 | bnx2x_acquire_phy_lock(bp); |
145 | bp->link_params.feature_config_flags &= ~FEATURE_CONFIG_PFC_ENABLED; | 125 | bp->link_params.feature_config_flags &= ~FEATURE_CONFIG_PFC_ENABLED; |
146 | bnx2x_update_pfc(&bp->link_params, &bp->link_vars, &nig_params); | 126 | bnx2x_update_pfc(&bp->link_params, &bp->link_vars, &nig_params); |