disable queue of all interfaces when tx ring is full
SVN-Revision: 10073
This commit is contained in:
parent
beb32bfbbc
commit
f6f43b9d40
1 changed files with 6 additions and 2 deletions
|
@ -843,6 +843,7 @@ static int adm5120_if_hard_start_xmit(struct sk_buff *skb,
|
|||
struct adm5120_if_priv *priv = netdev_priv(dev);
|
||||
unsigned int entry;
|
||||
unsigned long data;
|
||||
int i;
|
||||
|
||||
/* lock switch irq */
|
||||
spin_lock_irq(&tx_lock);
|
||||
|
@ -875,9 +876,12 @@ static int adm5120_if_hard_start_xmit(struct sk_buff *skb,
|
|||
|
||||
cur_txl++;
|
||||
if (cur_txl == dirty_txl + TX_QUEUE_LEN) {
|
||||
/* FIXME: stop queue for all devices */
|
||||
for (i = 0; i < SWITCH_NUM_PORTS; i++) {
|
||||
if (!adm5120_devs[i])
|
||||
continue;
|
||||
netif_stop_queue(dev);
|
||||
}
|
||||
}
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
|
||||
|
|
Loading…
Reference in a new issue