android_kernel_xiaomi_sm8350/net/ipv4
Arnaldo Carvalho de Melo c9bdd4b525 [IP]: Introduce ip_hdrlen()
For the common sequence "skb->nh.iph->ihl * 4", removing a good number of open
coded skb->nh.iph uses, now to go after the rest...

Just out of curiosity, here are the idioms found to get the same result:

skb->nh.iph->ihl << 2
skb->nh.iph->ihl<<2
skb->nh.iph->ihl * 4
skb->nh.iph->ihl*4
(skb->nh.iph)->ihl * sizeof(u32)

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:25:07 -07:00
..
ipvs [IP]: Introduce ip_hdrlen() 2007-04-25 22:25:07 -07:00
netfilter [IP]: Introduce ip_hdrlen() 2007-04-25 22:25:07 -07:00
af_inet.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
ah4.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
arp.c [NET]: make seq_operations const 2007-04-25 22:25:03 -07:00
cipso_ipv4.c [IPV4]: cleanup 2007-04-25 22:24:11 -07:00
datagram.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
devinet.c [IPV4]: cleanup 2007-04-25 22:24:11 -07:00
esp4.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
fib_frontend.c [NETLINK]: Infinite recursion in netlink. 2007-04-25 13:07:28 -07:00
fib_hash.c [NET]: make seq_operations const 2007-04-25 22:25:03 -07:00
fib_lookup.h [IPV4]: net/ipv4/fib annotations 2006-09-28 18:02:23 -07:00
fib_rules.c [NET]: Fix fib_rules compatibility breakage 2007-03-25 18:48:00 -07:00
fib_semantics.c [IPv4] fib: Fix out of bound access of fib_props[] 2007-03-25 18:48:03 -07:00
fib_trie.c [NET]: make seq_operations const 2007-04-25 22:25:03 -07:00
icmp.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
igmp.c [NET]: make seq_operations const 2007-04-25 22:25:03 -07:00
inet_connection_sock.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
inet_diag.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
inet_hashtables.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
inet_timewait_sock.c [NET]: change layout of ehash table 2007-02-08 14:16:46 -08:00
inetpeer.c [IPV4]: Optimize inet_getpeer() 2007-04-25 22:23:49 -07:00
ip_forward.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ip_fragment.c [IP]: Introduce ip_hdrlen() 2007-04-25 22:25:07 -07:00
ip_gre.c [SK_BUFF]: Use skb_reset_network_header where the return of __pskb_pull was being used 2007-04-25 22:24:49 -07:00
ip_input.c [IP]: Introduce ip_hdrlen() 2007-04-25 22:25:07 -07:00
ip_options.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
ip_output.c [SK_BUFF]: Introduce skb_set_network_header 2007-04-25 22:25:01 -07:00
ip_sockglue.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
ipcomp.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
ipconfig.c [SK_BUFF] ipconfig: Another conversion to skb_reset_network_header related to skb_put 2007-04-25 22:24:52 -07:00
ipip.c [SK_BUFF]: Use skb_reset_network_header in skb_push cases 2007-04-25 22:24:47 -07:00
ipmr.c [IP]: Introduce ip_hdrlen() 2007-04-25 22:25:07 -07:00
Kconfig [TCP] YeAH-TCP: algorithm implementation 2007-04-25 22:23:18 -07:00
Makefile [TCP] YeAH-TCP: algorithm implementation 2007-04-25 22:23:18 -07:00
multipath_drr.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
multipath_random.c [IPV4]: Use random32() in net/ipv4/multipath 2007-02-26 11:43:00 -08:00
multipath_rr.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
multipath_wrandom.c [IPV4]: Use random32() in net/ipv4/multipath 2007-02-26 11:43:00 -08:00
multipath.c
netfilter.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
proc.c [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
protocol.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
raw.c [NET]: make seq_operations const 2007-04-25 22:25:03 -07:00
route.c [NET]: make seq_operations const 2007-04-25 22:25:03 -07:00
syncookies.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
sysctl_net_ipv4.c [TCP]: Add two new spurious RTO responses to FRTO 2007-04-25 22:23:23 -07:00
tcp_bic.c [TCP] tcp_bic: use BUILD_BUG_ON 2006-09-22 15:18:04 -07:00
tcp_cong.c [TCP]: Add RFC3742 Limited Slow-Start, controlled by variable sysctl_tcp_max_ssthresh. 2007-04-25 22:23:19 -07:00
tcp_cubic.c [TCP] tcp_cubic: faster cube root 2007-04-25 22:23:47 -07:00
tcp_diag.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
tcp_highspeed.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
tcp_htcp.c [TCP]: cleanup of htcp (resend) 2007-02-12 13:34:03 -08:00
tcp_hybla.c [TCP]: whitespace cleanup 2007-04-25 22:24:13 -07:00
tcp_input.c [SK_BUFF]: Introduce skb_set_network_header 2007-04-25 22:25:01 -07:00
tcp_ipv4.c [TCP]: Abstract out all write queue operations. 2007-04-25 22:24:02 -07:00
tcp_lp.c [TCP] tcp-lp: prevent chance for oops 2006-09-28 18:03:07 -07:00
tcp_minisocks.c [TCP]: whitespace cleanup 2007-04-25 22:24:13 -07:00
tcp_output.c [TCP]: whitespace cleanup 2007-04-25 22:24:13 -07:00
tcp_probe.c [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
tcp_scalable.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
tcp_timer.c [TCP]: Abstract out all write queue operations. 2007-04-25 22:24:02 -07:00
tcp_vegas.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
tcp_veno.c [TCP] Congestion control (modulo lp, bic): use BUILD_BUG_ON 2006-09-22 15:18:13 -07:00
tcp_westwood.c [TCP]: whitespace cleanup 2007-04-25 22:24:13 -07:00
tcp_yeah.c [TCP] TCP Yeah: cleanup 2007-04-25 22:23:48 -07:00
tcp_yeah.h [NET]: div64_64 consolidate (rev3) 2007-04-25 22:23:33 -07:00
tcp.c [TCP]: Abstract out all write queue operations. 2007-04-25 22:24:02 -07:00
tunnel4.c [IPSEC]: Changing API of xfrm4_tunnel_register. 2007-02-13 12:54:47 -08:00
udp_impl.h [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
udp.c [UDP]: Use __skb_pull since we have checked it won't fail with pskb_may_pull 2007-04-25 22:24:20 -07:00
udplite.c [UDP]: Clean up UDP-Lite receive checksum 2007-04-25 22:23:51 -07:00
xfrm4_input.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
xfrm4_mode_beet.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
xfrm4_mode_transport.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
xfrm4_mode_tunnel.c [SK_BUFF]: Use skb_reset_network_header in skb_push cases 2007-04-25 22:24:47 -07:00
xfrm4_output.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
xfrm4_policy.c [SK_BUFF]: Introduce skb_network_header() 2007-04-25 22:24:59 -07:00
xfrm4_state.c [IPSEC]: exporting xfrm_state_afinfo 2007-02-08 12:39:00 -08:00
xfrm4_tunnel.c [IPSEC]: Changing API of xfrm4_tunnel_register. 2007-02-13 12:54:47 -08:00