1
0
Files
linux/include/net
Eric Dumazet 447167bf56 udp: intoduce udp_encap_needed static_key
Most machines dont use UDP encapsulation (L2TP)

Adds a static_key so that udp_queue_rcv_skb() doesnt have to perform a
test if L2TP never setup the encap_rcv on a socket.

Idea of this patch came after Simon Horman proposal to add a hook on TCP
as well.

If static_key is not yet enabled, the fast path does a single JMP .

When static_key is enabled, JMP destination is patched to reach the real
encap_type/encap_rcv logic, possibly adding cache misses.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Simon Horman <horms@verge.net.au>
Cc: dev@openvswitch.org
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-04-13 13:39:37 -04:00
..
2012-03-06 15:16:25 -05:00
2012-03-08 13:52:08 -08:00
2012-03-20 21:29:41 -04:00
2011-07-26 16:49:47 -07:00
2012-02-15 16:37:44 -05:00
2011-07-26 16:49:47 -07:00
2012-03-08 00:30:32 -08:00
2011-09-16 19:20:20 -04:00
2011-07-26 16:49:47 -07:00
2011-12-11 18:25:16 -05:00
2012-04-13 13:32:39 -04:00
2012-04-02 04:33:45 -04:00