android_kernel_xiaomi_sm8350/net/ipv4/ipvs
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
..
ip_vs_app.c [IP]: Introduce ip_hdrlen() 2007-04-25 22:25:07 -07:00
ip_vs_conn.c [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
ip_vs_core.c [IP]: Introduce ip_hdrlen() 2007-04-25 22:25:07 -07:00
ip_vs_ctl.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
ip_vs_dh.c
ip_vs_est.c
ip_vs_ftp.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
ip_vs_lblc.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
ip_vs_lblcr.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
ip_vs_lc.c
ip_vs_nq.c
ip_vs_proto_ah.c [NET] IPV4: Use hton{s,l}() where appropriate. 2007-04-25 22:23:58 -07:00
ip_vs_proto_esp.c
ip_vs_proto_tcp.c [IP]: Introduce ip_hdrlen() 2007-04-25 22:25:07 -07:00
ip_vs_proto_udp.c [IP]: Introduce ip_hdrlen() 2007-04-25 22:25:07 -07:00
ip_vs_proto.c
ip_vs_rr.c [NET] IPV4: Fix whitespace errors. 2007-02-10 23:19:39 -08:00
ip_vs_sched.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ip_vs_sed.c
ip_vs_sh.c
ip_vs_sync.c [IPVS]: Make ip_vs_sync.c <= 80col wide. 2006-12-11 14:35:03 -08:00
ip_vs_wlc.c
ip_vs_wrr.c
ip_vs_xmit.c [SK_BUFF]: Use skb_reset_network_header in skb_push cases 2007-04-25 22:24:47 -07:00
Kconfig
Makefile