]> git.pld-linux.org Git - packages/r8168.git/blame - linux-4.0.patch
- fix building with linux 4.0
[packages/r8168.git] / linux-4.0.patch
CommitLineData
e0085fec
JR
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.060763 seconds and 4 git commands to generate.