]> bbs.cooldavid.org Git - jme.git/blobdiff - jme.h
ethtool: Use full 32 bit speed range in ethtool's set_settings
[jme.git] / jme.h
diff --git a/jme.h b/jme.h
index 9b9e61964e2f7830d57cea9a7d07a2b05b2fcd78..3dafe833ba2b284696f8adcb60f47995877fb3ec 100644 (file)
--- a/jme.h
+++ b/jme.h
@@ -535,6 +535,13 @@ static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb)
 #define JME_NEW_PM_API
 #endif
 
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,26)
+static inline __u32 ethtool_cmd_speed(struct ethtool_cmd *ep)
+{
+       return ep->speed;
+}
+#endif
+
 /*
  * Jmac Adapter Private data
  */