[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-backports
Subject: [PATCH v4 09/12] backports: igb fixes for linux-3.3
From: Stefan Assmann <sassmann () kpanic ! de>
Date: 2014-01-29 9:19:06
Message-ID: 1390987149-11171-10-git-send-email-sassmann () kpanic ! de
[Download RAW message or body]
- add IFF_SUPP_NOFCS define
- add patches/collateral-evolutions/network/84-ethernet/0008-igb_no_fcs.patch
Is there a better way to handle struct sk_buff changes?
Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
---
backport/backport-include/linux/if.h | 4 ++++
.../network/84-ethernet/0008-igb_no_fcs.patch | 16 ++++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
create mode 100644 patches/collateral-evolutions/network/84-ethernet/0008-igb_no_fcs.patch
diff --git a/backport/backport-include/linux/if.h \
b/backport/backport-include/linux/if.h index 8f85b83..f23d2b8 100644
--- a/backport/backport-include/linux/if.h
+++ b/backport/backport-include/linux/if.h
@@ -33,4 +33,8 @@
#define IFF_LIVE_ADDR_CHANGE 0x100000
#endif
+#ifndef IFF_SUPP_NOFCS
+#define IFF_SUPP_NOFCS 0x80000 /* device supports sending custom FCS */
+#endif
+
#endif /* _BACKPORT_LINUX_IF_H */
diff --git a/patches/collateral-evolutions/network/84-ethernet/0008-igb_no_fcs.patch \
b/patches/collateral-evolutions/network/84-ethernet/0008-igb_no_fcs.patch new file \
mode 100644 index 0000000..f196f2d
--- /dev/null
+++ b/patches/collateral-evolutions/network/84-ethernet/0008-igb_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 fd6a103..a919cfa 100644
+--- a/drivers/net/ethernet/intel/igb/igb_main.c
++++ b/drivers/net/ethernet/intel/igb/igb_main.c
+@@ -4480,9 +4480,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;
+ }
+
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic