Fix compilation against for 2.6.32 changes
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 29 Sep 2009 00:47:56 +0000 (17:47 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 29 Sep 2009 00:47:56 +0000 (17:47 -0700)
2.6.32 added SET_NETDEV_DEVTYPE() and netdev_tx

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat-2.6.32.h

index f7081f2b1c97bcf7d3eeefd0178f8c877f66ae3c..418b521c7e361fe8cf6c5f5f7a7456b97d3623df 100644 (file)
 
 #define dev_change_net_namespace(a, b, c) (-EOPNOTSUPP)
 
+#define SET_NETDEV_DEVTYPE(netdev, type)
+
+#ifdef __KERNEL__
+/* Driver transmit return codes */
+enum netdev_tx {
+       BACKPORT_NETDEV_TX_OK = NETDEV_TX_OK,       /* driver took care of packet */
+       BACKPORT_NETDEV_TX_BUSY = NETDEV_TX_BUSY,         /* driver tx path was busy*/
+       BACKPORT_NETDEV_TX_LOCKED = NETDEV_TX_LOCKED,  /* driver tx lock was already taken */
+};
+typedef enum netdev_tx netdev_tx_t;
+#endif /* __KERNEL__ */
+
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)) */
 
 #endif /* LINUX_26_32_COMPAT_H */