diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/sun/sunvnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sun/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c index 15396720f489..3652afd3ec78 100644 --- a/drivers/net/ethernet/sun/sunvnet.c +++ b/drivers/net/ethernet/sun/sunvnet.c | |||
@@ -954,7 +954,7 @@ static int vnet_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
954 | spin_lock_irqsave(&port->vio.lock, flags); | 954 | spin_lock_irqsave(&port->vio.lock, flags); |
955 | 955 | ||
956 | dr = &port->vio.drings[VIO_DRIVER_TX_RING]; | 956 | dr = &port->vio.drings[VIO_DRIVER_TX_RING]; |
957 | if (unlikely(vnet_tx_dring_avail(dr) < 2)) { | 957 | if (unlikely(vnet_tx_dring_avail(dr) < 1)) { |
958 | if (!netif_queue_stopped(dev)) { | 958 | if (!netif_queue_stopped(dev)) { |
959 | netif_stop_queue(dev); | 959 | netif_stop_queue(dev); |
960 | 960 | ||
@@ -1049,7 +1049,7 @@ ldc_start_done: | |||
1049 | dev->stats.tx_bytes += port->tx_bufs[txi].skb->len; | 1049 | dev->stats.tx_bytes += port->tx_bufs[txi].skb->len; |
1050 | 1050 | ||
1051 | dr->prod = (dr->prod + 1) & (VNET_TX_RING_SIZE - 1); | 1051 | dr->prod = (dr->prod + 1) & (VNET_TX_RING_SIZE - 1); |
1052 | if (unlikely(vnet_tx_dring_avail(dr) < 2)) { | 1052 | if (unlikely(vnet_tx_dring_avail(dr) < 1)) { |
1053 | netif_stop_queue(dev); | 1053 | netif_stop_queue(dev); |
1054 | if (vnet_tx_dring_avail(dr) > VNET_TX_WAKEUP_THRESH(dr)) | 1054 | if (vnet_tx_dring_avail(dr) > VNET_TX_WAKEUP_THRESH(dr)) |
1055 | netif_wake_queue(dev); | 1055 | netif_wake_queue(dev); |