Skip to content

Commit

Permalink
ixgbe: support skb->xmit_more in netdev_ops->ndo_start_xmit()
Browse files Browse the repository at this point in the history
This implements the deferred tail pointer flush API for the ixgbe
driver. Similar version also proposed longer time ago by Alexander Duyck.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Daniel Borkmann authored and David S. Miller committed Aug 25, 2014
1 parent 0b725a2 commit 9c938cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6958,9 +6958,10 @@ static void ixgbe_tx_map(struct ixgbe_ring *tx_ring,

tx_ring->next_to_use = i;

/* notify HW of packet */
ixgbe_write_tail(tx_ring, i);

if (!skb->xmit_more) {
/* notify HW of packet */
ixgbe_write_tail(tx_ring, i);
}
return;
dma_error:
dev_err(tx_ring->dev, "TX DMA map failed\n");
Expand Down

0 comments on commit 9c938cd

Please sign in to comment.