Thread (14 messages) flat view 14 messages, 3 authors, 2012-07-13

Re: [RFC PATCH 1/2] net: Add new network device function to allow for MMIO batching

From: Eric Dumazet <hidden>
Date: 2012-07-13 07:19:20

On Wed, 2012-07-11 at 17:26 -0700, Alexander Duyck wrote:
+static inline void netdev_complete_xmit(struct netdev_queue *txq)
+{
+	struct net_device *dev = txq->dev;
+	const struct net_device_ops *ops = dev->netdev_ops;
+
+	if (txq->dispatch_pending < txq->dispatch_limit) {
+		if (netif_tx_queue_delayed(txq)) {
+			txq->dispatch_pending++;
+			return;
+		}
+
+		/* start of delayed write sequence */
+		netif_tx_delay_queue(txq);
	I dont understand this part. Isnt a return missing here ?
+	}
+
+	txq->dispatch_pending = 0;
+
+	ops->ndo_complete_xmit(dev, txq - &dev->_tx[0]);
+}
+
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help