[SK_BUFF]: Introduce skb_network_header_len
For the common sequence "skb->h.raw - skb->nh.raw", similar to skb->mac_len, that is precalculated tho, don't think we need to bloat skb with one more member, so just use this new helper, reducing the number of non-skbuff.h references to the layer headers even more. Signed-off-by:Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/gianfar.c 1 addition, 1 deletiondrivers/net/gianfar.c
- drivers/net/pasemi_mac.c 2 additions, 2 deletionsdrivers/net/pasemi_mac.c
- include/linux/skbuff.h 5 additions, 0 deletionsinclude/linux/skbuff.h
- net/core/skbuff.c 1 addition, 1 deletionnet/core/skbuff.c
- net/ipv4/ip_output.c 1 addition, 1 deletionnet/ipv4/ip_output.c
- net/ipv6/esp6.c 1 addition, 2 deletionsnet/ipv6/esp6.c
- net/ipv6/exthdrs.c 4 additions, 4 deletionsnet/ipv6/exthdrs.c
- net/ipv6/ip6_input.c 1 addition, 1 deletionnet/ipv6/ip6_input.c
- net/ipv6/ip6_output.c 2 additions, 2 deletionsnet/ipv6/ip6_output.c
- net/ipv6/mcast.c 1 addition, 1 deletionnet/ipv6/mcast.c
- net/ipv6/netfilter/nf_conntrack_reasm.c 1 addition, 1 deletionnet/ipv6/netfilter/nf_conntrack_reasm.c
- net/ipv6/raw.c 1 addition, 1 deletionnet/ipv6/raw.c
- net/ipv6/reassembly.c 5 additions, 3 deletionsnet/ipv6/reassembly.c
- net/ipv6/xfrm6_policy.c 1 addition, 1 deletionnet/ipv6/xfrm6_policy.c
Loading
Please register or sign in to comment