Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368587
b: refs/heads/master
c: c6e1160
h: refs/heads/master
i:
  368585: af03d09
  368583: 49724df
v: v3
  • Loading branch information
Claudiu Manoil authored and David S. Miller committed Mar 21, 2013
1 parent 6d42425 commit f1fc51a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39c0a0d5be287415ef0dc0dc15813e6fc86487e9
refs/heads/master: c6e1160ed6e015dcf7f361d3829169751239df05
7 changes: 3 additions & 4 deletions trunk/drivers/net/ethernet/freescale/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev)
}

for (i = 0; i < priv->num_tx_queues; i++)
priv->tx_queue[i] = NULL;
priv->tx_queue[i] = NULL;
for (i = 0; i < priv->num_rx_queues; i++)
priv->rx_queue[i] = NULL;

Expand Down Expand Up @@ -1824,6 +1824,7 @@ static void gfar_configure_coalescing(struct gfar_private *priv,

if (priv->mode == MQ_MG_MODE) {
int i = 0;

baddr = &regs->txic0;
for_each_set_bit(i, &tx_mask, priv->num_tx_queues) {
gfar_write(baddr + i, 0);
Expand All @@ -1838,7 +1839,7 @@ static void gfar_configure_coalescing(struct gfar_private *priv,
gfar_write(baddr + i, priv->rx_queue[i]->rxic);
}
} else {
/* Backward compatible case ---- even if we enable
/* Backward compatible case -- even if we enable
* multiple queues, there's only single reg to program
*/
gfar_write(&regs->txic, 0);
Expand Down Expand Up @@ -2478,7 +2479,6 @@ static void gfar_clean_tx_ring(struct gfar_priv_tx_q *tx_queue)
struct net_device *dev = tx_queue->dev;
struct netdev_queue *txq;
struct gfar_private *priv = netdev_priv(dev);
struct gfar_priv_rx_q *rx_queue = NULL;
struct txbd8 *bdp, *next = NULL;
struct txbd8 *lbdp = NULL;
struct txbd8 *base = tx_queue->tx_bd_base;
Expand All @@ -2493,7 +2493,6 @@ static void gfar_clean_tx_ring(struct gfar_priv_tx_q *tx_queue)
u32 lstatus;
size_t buflen;

rx_queue = priv->rx_queue[tqi];
txq = netdev_get_tx_queue(dev, tqi);
bdp = tx_queue->dirty_tx;
skb_dirtytx = tx_queue->skb_dirtytx;
Expand Down

0 comments on commit f1fc51a

Please sign in to comment.