[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081125022232.GE6703@one.firstfloor.org>
Date: Tue, 25 Nov 2008 03:22:32 +0100
From: Andi Kleen <andi@...stfloor.org>
To: David Miller <davem@...emloft.net>
Cc: dada1@...mosbay.com, andi@...stfloor.org, netdev@...r.kernel.org,
minyard@....org, christian@...i.com
Subject: Re: [PATCH] net: avoid a pair of dst_hold()/dst_release() in ip_append_data()
> Thinking more I believe we can do similar tricks for all TCP
> transmit traffic.
Sounds reasonable.
>
> Packets bound to sockets never outlive those sockets (and thus
> their cached routes) unless we skb_orphan().
>
> The only not covered case is where the socket cached route
> is reset or changed. We could defer the dst put until the
> transmit queue reaches a certain point, kind of like a retransmit
> queue RCU :-)
>
> Just some ideas...
netfilter makes it somewhat tricky, for compatibility you would
need to reclone the route on the fly.
-Andi
--
ak@...ux.intel.com
--
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