android_kernel_xiaomi_sm8350/drivers/net/wan
David S. Miller 689be43945 [NET]: Remove gratuitous use of skb->tail in network drivers.
Many drivers use skb->tail unnecessarily.

In these situations, the code roughly looks like:

	dev = dev_alloc_skb(...);

	[optional] skb_reserve(skb, ...);

	... skb->tail ...

But even if the skb_reserve() happens, skb->data equals
skb->tail.  So it doesn't make any sense to use anything
other than skb->data in these cases.

Another case was the s2io.c driver directly mucking with
the skb->data and skb->tail pointers.  It really just wanted
to do an skb_reserve(), so that's what the code was changed
to do instead.

Another reason I'm making this change as it allows some SKB
cleanups I have planned simpler to merge.  In those cleanups,
skb->head, skb->tail, and skb->end pointers are removed, and
replaced with skb->head_room and skb->tail_room integers.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
2005-06-28 15:25:31 -07:00
..
lmc [netdrvrs] Use netif_carrier_* instead of IFF_RUNNING 2005-05-12 19:45:25 -04:00
c101.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cosa.c [PATCH] class: convert drivers/* to use the new class api instead of class_simple 2005-06-20 15:15:09 -07:00
cosa.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cycx_drv.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cycx_main.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cycx_x25.c [WAN]: kfree of NULL pointer is valid 2005-05-03 14:33:27 -07:00
dlci.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dscc4.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
farsync.c [PATCH] net/farsync: add set_current_state() before schedule_timeout() 2005-06-26 23:48:37 -04:00
farsync.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hd6457x.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hd64570.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hd64572.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hdlc_cisco.c [NET]: Remove gratuitous use of skb->tail in network drivers. 2005-06-28 15:25:31 -07:00
hdlc_fr.c [PATCH] Generic HDLC update 2005-05-15 22:24:12 -04:00
hdlc_generic.c [PATCH] Generic HDLC update 2005-05-15 22:24:12 -04:00
hdlc_ppp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hdlc_raw_eth.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hdlc_raw.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hdlc_x25.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hostess_sv11.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [PATCH] Remove duplicate file in Documentation/networking (drivers_net_wan_Kconfig) 2005-06-25 16:25:09 -07:00
lapbether.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
n2.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pc300_drv.c [PATCH] PC300 pci_enable_device fix 2005-04-26 13:09:35 -07:00
pc300_tty.c [WAN]: kfree of NULL pointer is valid 2005-05-03 14:33:27 -07:00
pc300-falc-lh.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pc300.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci200syn.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sbni.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sbni.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sdla_chdlc.c [WAN]: kfree of NULL pointer is valid 2005-05-03 14:33:27 -07:00
sdla_fr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sdla_ft1.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sdla_ppp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sdla_x25.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sdla.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sdladrv.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sdlamain.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sealevel.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
syncppp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
wanpipe_multppp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
wanxl.c drivers/net/: Use the DMA_{64,32}BIT_MASK constants 2005-06-26 18:22:14 -04:00
wanxl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
wanxlfw.inc_shipped Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
wanxlfw.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
x25_asy.c [PATCH] Convert users to tty_unregister_ldisc() 2005-06-23 09:45:36 -07:00
x25_asy.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
z85230.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
z85230.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00