]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Introduce ip6_flow_hdr() to fill version, tclass and flowlabel.
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Sun, 13 Jan 2013 05:01:39 +0000 (05:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jan 2013 01:17:13 +0000 (20:17 -0500)
commit1bfdc848e02a575590ce41fe6775bfe10f52ef85
treeee6dfd76e5949b84b8c25136a4563925d0033cfa
parenta652d8a40e0e301e945261d11b0f055be6f95ffe
ipv6: Introduce ip6_flow_hdr() to fill version, tclass and flowlabel.

This is not only for readability but also for optimization.
What we do here is to build the 32bit word at the beginning of the ipv6
header (the "ip6_flow" virtual member of struct ip6_hdr in RFC3542) and
we do not need to read the tclass portion of the target buffer.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
net/ipv6/ip6_gre.c
net/ipv6/ip6_output.c
net/ipv6/ip6_tunnel.c
net/ipv6/netfilter/ip6t_REJECT.c