[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1285748288.2615.15.camel@edumazet-laptop>
Date: Wed, 29 Sep 2010 10:18:08 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: nicolas.dichtel@...nd.com
Cc: David Miller <davem@...emloft.net>, netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next-2.6] ip_gre: lockless xmit
Le mercredi 29 septembre 2010 à 10:10 +0200, Nicolas Dichtel a écrit :
> NETIF_F_LLTX is marked as deprecated:
>
> include/linux/netdevice.h:
> #define NETIF_F_LLTX 4096 /* LockLess TX - deprecated.
> Please */
> /* do not use LLTX in new
> drivers */
>
> Is it right to use it?
>
In this particular case (and drivers/net/loopback.c), yes.
This is the only way to avoid the locking in core network
(net/core/dev.c)
What is deprecated is to assert NETIF_F_LLTX and yet, use a lock in the
ndo_xmit() driver method.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists