From: Luis R. Rodriguez Date: Tue, 29 Sep 2009 00:47:56 +0000 (-0700) Subject: Fix compilation against for 2.6.32 changes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e531f9478fc78c5824a2cf4a7d894da78d2a6ffc;p=openwrt%2Fstaging%2Fblogic.git Fix compilation against for 2.6.32 changes 2.6.32 added SET_NETDEV_DEVTYPE() and netdev_tx Signed-off-by: Luis R. Rodriguez --- diff --git a/compat/compat-2.6.32.h b/compat/compat-2.6.32.h index f7081f2b1c97..418b521c7e36 100644 --- a/compat/compat-2.6.32.h +++ b/compat/compat-2.6.32.h @@ -31,6 +31,18 @@ #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 */