aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mv643xx_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r--drivers/net/mv643xx_eth.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index 0f32db3e92ad..b62e61d4ca3e 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -1066,40 +1066,6 @@ static void txq_set_fixed_prio_mode(struct tx_queue *txq)
1066 } 1066 }
1067} 1067}
1068 1068
1069static void txq_set_wrr(struct tx_queue *txq, int weight)
1070{
1071 struct mv643xx_eth_private *mp = txq_to_mp(txq);
1072 int off;
1073 u32 val;
1074
1075 /*
1076 * Turn off fixed priority mode.
1077 */
1078 off = 0;
1079 switch (mp->shared->tx_bw_control) {
1080 case TX_BW_CONTROL_OLD_LAYOUT:
1081 off = TXQ_FIX_PRIO_CONF;
1082 break;
1083 case TX_BW_CONTROL_NEW_LAYOUT:
1084 off = TXQ_FIX_PRIO_CONF_MOVED;
1085 break;
1086 }
1087
1088 if (off) {
1089 val = rdlp(mp, off);
1090 val &= ~(1 << txq->index);
1091 wrlp(mp, off, val);
1092
1093 /*
1094 * Configure WRR weight for this queue.
1095 */
1096
1097 val = rdlp(mp, off);
1098 val = (val & ~0xff) | (weight & 0xff);
1099 wrlp(mp, TXQ_BW_WRR_CONF(txq->index), val);
1100 }
1101}
1102
1103 1069
1104/* mii management interface *************************************************/ 1070/* mii management interface *************************************************/
1105static irqreturn_t mv643xx_eth_err_irq(int irq, void *dev_id) 1071static irqreturn_t mv643xx_eth_err_irq(int irq, void *dev_id)