Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Minor comment merge conflict in mlx5. Staging driver has a fixup due to the skb->xmit_more changes in 'net-next', but was removed in 'net'. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -110,6 +110,7 @@ static struct netvsc_device *alloc_net_device(void)
|
||||
|
||||
init_waitqueue_head(&net_device->wait_drain);
|
||||
net_device->destroy = false;
|
||||
net_device->tx_disable = false;
|
||||
|
||||
net_device->max_pkt = RNDIS_MAX_PKT_DEFAULT;
|
||||
net_device->pkt_align = RNDIS_PKT_ALIGN_DEFAULT;
|
||||
@@ -719,7 +720,7 @@ static void netvsc_send_tx_complete(struct net_device *ndev,
|
||||
} else {
|
||||
struct netdev_queue *txq = netdev_get_tx_queue(ndev, q_idx);
|
||||
|
||||
if (netif_tx_queue_stopped(txq) &&
|
||||
if (netif_tx_queue_stopped(txq) && !net_device->tx_disable &&
|
||||
(hv_get_avail_to_write_percent(&channel->outbound) >
|
||||
RING_AVAIL_PERCENT_HIWATER || queue_sends < 1)) {
|
||||
netif_tx_wake_queue(txq);
|
||||
@@ -874,7 +875,8 @@ static inline int netvsc_send_pkt(
|
||||
} else if (ret == -EAGAIN) {
|
||||
netif_tx_stop_queue(txq);
|
||||
ndev_ctx->eth_stats.stop_queue++;
|
||||
if (atomic_read(&nvchan->queue_sends) < 1) {
|
||||
if (atomic_read(&nvchan->queue_sends) < 1 &&
|
||||
!net_device->tx_disable) {
|
||||
netif_tx_wake_queue(txq);
|
||||
ndev_ctx->eth_stats.wake_queue++;
|
||||
ret = -ENOSPC;
|
||||
|
Reference in New Issue
Block a user