From 5b888039115a9a7830cbac3012be7f00f484e8f4 Mon Sep 17 00:00:00 2001 From: Brian Kim Date: Wed, 8 Aug 2012 09:15:22 -0400 Subject: [PATCH] Linuxmodule ToDevice: Behave correctly with LLTX drivers. We got the meaning of the flag wrong. Signed-off-by: Eddie Kohler --- elements/linuxmodule/todevice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/linuxmodule/todevice.cc b/elements/linuxmodule/todevice.cc index 296f2a53da..e51a3a4907 100644 --- a/elements/linuxmodule/todevice.cc +++ b/elements/linuxmodule/todevice.cc @@ -258,7 +258,7 @@ ToDevice::cleanup(CleanupStage stage) #endif #ifdef NETIF_F_LLTX -# define click_netif_needs_lock(dev) (((dev)->features & NETIF_F_LLTX) != 0) +# define click_netif_needs_lock(dev) (((dev)->features & NETIF_F_LLTX) == 0) #else # define click_netif_needs_lock(dev) 1 #endif