]> git.pld-linux.org Git - packages/r8168.git/blob - linux-4.0.patch
652e27c7475a1a7922c50055a9aeca8088d0e941
[packages/r8168.git] / linux-4.0.patch
1 --- r8168-8.039.00/src/r8168_n.c.orig   2015-04-19 13:32:19.399796241 +0200
2 +++ r8168-8.039.00/src/r8168_n.c        2015-04-19 13:34:01.866459293 +0200
3 @@ -3291,9 +3291,12 @@
4  #if LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)
5          tag = (tp->vlgrp && vlan_tx_tag_present(skb)) ?
6                TxVlanTag | swab16(vlan_tx_tag_get(skb)) : 0x00;
7 -#else
8 +#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
9          tag = (vlan_tx_tag_present(skb)) ?
10                TxVlanTag | swab16(vlan_tx_tag_get(skb)) : 0x00;
11 +#else
12 +        tag = (tp->vlgrp && skb_vlan_tag_present(skb)) ?
13 +              TxVlanTag | swab16(skb_vlan_tag_get(skb)) : 0x00;
14  #endif
15  
16          return tag;
This page took 0.015796 seconds and 2 git commands to generate.