]> git.pld-linux.org Git - packages/igb.git/blame - linux-3.15.patch
- simpler fix for linux 3.15
[packages/igb.git] / linux-3.15.patch
CommitLineData
128c718a
JR
1--- a/src/igb_main.c
2+++ b/src/igb_main.c
18e28335 3@@ -7366,7 +7366,12 @@ static inline void igb_rx_hash(struct igb_ring *ring,
128c718a
JR
4 struct sk_buff *skb)
5 {
6 if (netdev_ring(ring)->features & NETIF_F_RXHASH)
18e28335
JR
7+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0) )
8 skb->rxhash = le32_to_cpu(rx_desc->wb.lower.hi_dword.rss);
9+#else
128c718a
JR
10+ skb_set_hash(skb, le32_to_cpu(rx_desc->wb.lower.hi_dword.rss),
11+ PKT_HASH_TYPE_L3);
18e28335 12+#endif
128c718a
JR
13 }
14
15 #endif
This page took 0.039831 seconds and 4 git commands to generate.