From 123ce069e2e71153459457bc5c6307510ee101fd Mon Sep 17 00:00:00 2001 From: Tatyana Nikolova Date: Wed, 30 May 2012 14:40:06 -0500 Subject: [PATCH] compat: Addition to compat-2.6.39.h backport netif_is_bond_slave() < 2.6.39 Signed-off-by: Tatyana Nikolova --- include/linux/compat-2.6.39.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/compat-2.6.39.h b/include/linux/compat-2.6.39.h index 961e91c..92edbd4 100644 --- a/include/linux/compat-2.6.39.h +++ b/include/linux/compat-2.6.39.h @@ -8,6 +8,7 @@ #include #include #include +#include #define tiocmget(tty) tiocmget(tty, NULL) #define tiocmset(tty, set, clear) tiocmset(tty, NULL, set, clear) @@ -16,6 +17,10 @@ extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt); #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) */ +static inline int netif_is_bond_slave(struct net_device *dev) +{ + return dev->flags & IFF_SLAVE && dev->priv_flags & IFF_BONDING; +} static inline int irq_set_irq_wake(unsigned int irq, unsigned int on) { return set_irq_wake(irq, on); -- 2.41.0