]> git.pld-linux.org Git - packages/igb.git/blob - linux-3.15.patch
- simpler fix for linux 3.15
[packages/igb.git] / linux-3.15.patch
1 --- a/src/igb_main.c
2 +++ b/src/igb_main.c
3 @@ -7366,7 +7366,12 @@ static inline void igb_rx_hash(struct igb_ring *ring,
4                                struct sk_buff *skb)
5  {
6         if (netdev_ring(ring)->features & NETIF_F_RXHASH)
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
10 +               skb_set_hash(skb, le32_to_cpu(rx_desc->wb.lower.hi_dword.rss),
11 +                            PKT_HASH_TYPE_L3);
12 +#endif
13  }
14  
15  #endif
This page took 0.118312 seconds and 3 git commands to generate.