lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 18 Mar 2012 13:20:32 -0700 From: Eric Dumazet <eric.dumazet@...il.com> To: Paul Gortmaker <paul.gortmaker@...driver.com> Cc: davem@...emloft.net, therbert@...gle.com, netdev@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org Subject: Re: [PATCH net-next 1/3] gianfar: Add support for byte queue limits. Le dimanche 18 mars 2012 à 12:56 -0400, Paul Gortmaker a écrit : ... > * we add this skb back into the pool, if it's the right size > @@ -2557,13 +2568,15 @@ static int gfar_clean_tx_ring(struct gfar_priv_tx_q *tx_queue) > } > > /* If we freed a buffer, we can restart transmission, if necessary */ > - if (__netif_subqueue_stopped(dev, tx_queue->qindex) && tx_queue->num_txbdfree) > - netif_wake_subqueue(dev, tx_queue->qindex); > + if (__netif_subqueue_stopped(dev, tqi) && tx_queue->num_txbdfree) > + netif_wake_subqueue(dev, tqi); > You can use netif_tx_queue_stopped(txq) here instead of __netif_subqueue_stopped(dev, tqi) > /* Update dirty indicators */ > tx_queue->skb_dirtytx = skb_dirtytx; > tx_queue->dirty_tx = bdp; > > + netdev_tx_completed_queue(txq, howmany, bytes_sent); > + > return howmany; > } > -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists