]> bbs.cooldavid.org Git - jme.git/blobdiff - jme.h
jme: convert offload constraints to ndo_fix_features
[jme.git] / jme.h
diff --git a/jme.h b/jme.h
index 9089116c9de80ba271805ca652b7cc2b7d384659..c010390e1e3675314bb39dd8358275a908e79776 100644 (file)
--- a/jme.h
+++ b/jme.h
@@ -27,7 +27,7 @@
 #include <linux/interrupt.h>
 
 #define DRV_NAME       "jme"
-#define DRV_VERSION    "1.0.8.1-jmmod"
+#define DRV_VERSION    "1.0.8.2-jmmod"
 #define PFX            DRV_NAME ": "
 
 #define PCI_DEVICE_ID_JMICRON_JMC250   0x0250
@@ -112,6 +112,10 @@ do {                                                                       \
 #define NETIF_F_IPV6_CSUM 0
 #endif
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
+#define __USE_NDO_FIX_FEATURES__
+#endif
+
 /*
  * Extra PCI Configuration space interface
  */
@@ -614,8 +618,10 @@ jme_get_stats(struct net_device *netdev)
 enum jme_flags_bits {
        JME_FLAG_MSI            = 1,
        JME_FLAG_SSET           = 2,
+#ifndef __USE_NDO_FIX_FEATURES__
        JME_FLAG_TXCSUM         = 3,
        JME_FLAG_TSO            = 4,
+#endif
        JME_FLAG_POLL           = 5,
        JME_FLAG_SHUTDOWN       = 6,
 };