summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorStefan Assmann <sassmann@kpanic.de>2014-05-16 13:21:16 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2014-06-02 00:16:14 +0200
commitb84a68f567584135d433111daca2bcb23b5f98cf (patch)
tree8e861d53443f0f1a553aab2ee1b9b21788be3933 /patches
parentb0473cc66296a76c7bae383aab7dc5b9ec396ba3 (diff)
backports: handle no_fcs change in struct sk_buff
In kernel 3.4 a new field no_fcs was introduced to struct sk_buff. Address this by putting ifdef around the code. commit 3bdc0eba0b8b47797f4a76e377dd8360f317450f Author: Ben Greear <greearb@candelatech.com> Date: Sat Feb 11 15:39:30 2012 +0000 net: Add framework to allow sending packets with customized CRC. git describe --contains 3bdc0eba0b8b47797f4a76e377dd8360f317450f v3.4-rc1~177^2~207 Signed-off-by: Stefan Assmann <sassmann@kpanic.de> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/collateral-evolutions/network/0035-skb_no_fcs/INFO12
-rw-r--r--patches/collateral-evolutions/network/0035-skb_no_fcs/igb_skb_no_fcs.patch16
2 files changed, 28 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/network/0035-skb_no_fcs/INFO b/patches/collateral-evolutions/network/0035-skb_no_fcs/INFO
new file mode 100644
index 00000000..a242c97e
--- /dev/null
+++ b/patches/collateral-evolutions/network/0035-skb_no_fcs/INFO
@@ -0,0 +1,12 @@
+In kernel 3.4 a new field no_fcs was introduced to struct sk_buff.
+Address this by putting ifdef around the code.
+
+
+commit 3bdc0eba0b8b47797f4a76e377dd8360f317450f
+Author: Ben Greear <greearb@candelatech.com>
+Date: Sat Feb 11 15:39:30 2012 +0000
+
+ net: Add framework to allow sending packets with customized CRC.
+
+git describe --contains 3bdc0eba0b8b47797f4a76e377dd8360f317450f
+v3.4-rc1~177^2~207
diff --git a/patches/collateral-evolutions/network/0035-skb_no_fcs/igb_skb_no_fcs.patch b/patches/collateral-evolutions/network/0035-skb_no_fcs/igb_skb_no_fcs.patch
new file mode 100644
index 00000000..d4aee27a
--- /dev/null
+++ b/patches/collateral-evolutions/network/0035-skb_no_fcs/igb_skb_no_fcs.patch
@@ -0,0 +1,16 @@
+diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
+index ccd8f36..132cef8 100644
+--- a/drivers/net/ethernet/intel/igb/igb_main.c
++++ b/drivers/net/ethernet/intel/igb/igb_main.c
+@@ -4768,9 +4768,10 @@ static u32 igb_tx_cmd_type(struct sk_buff *skb, u32 tx_flags)
+ cmd_type |= IGB_SET_FLAG(tx_flags, IGB_TX_FLAGS_TSTAMP,
+ (E1000_ADVTXD_MAC_TSTAMP));
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
+ /* insert frame checksum */
+ cmd_type ^= IGB_SET_FLAG(skb->no_fcs, 1, E1000_ADVTXD_DCMD_IFCS);
+-
++#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0) */
+ return cmd_type;
+ }
+