[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110506.222125.193720006.davem@davemloft.net>
Date: Fri, 06 May 2011 22:21:25 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, herbert@...dor.apana.org.au
Subject: Re: [PATCH 2/2] ipv4: Initialize on-stack cork more efficiently.
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Sat, 07 May 2011 07:11:44 +0200
> By the way, when I spotted this "struct inet_cork cork = {};" to be
> optimized, my idea was to add yet another case of fastpath to UDP send :
>
> For small datagrams (most UDP uses : RTP, DNS...),
> perform the user->kernel copy before route lookup, so that we can
> perform an RCU route lookup. This would tremendously speedup UDP, since
> the refcount handling is our last hot spot (not counting qdisc if
> present)
Interesting idea.
This reminds me, remember about the input noref route lookup stuff
going away with the routing cache removal? It turns out that when we
do my "routes embedded in fib nexthop" for input, the noref stuff can
be used. :)
--
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