blob: 6a75510c6076919cb0b9457efc1566ff29ede1f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -4963,7 +4963,10 @@ static void igb_tx_map(struct igb_ring *
/* Make sure there is space in the ring for the next send. */
igb_maybe_stop_tx(tx_ring, DESC_NEEDED);
- if (netif_xmit_stopped(txring_txq(tx_ring)) || !skb->xmit_more) {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)
+ if (netif_xmit_stopped(txring_txq(tx_ring)) || !skb->xmit_more)
+#endif
+ {
writel(i, tx_ring->tail);
/* we need this if more than one processor can write to our tail
|