linux/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
Kconfig [PATCH] Remove duplicate file in Documentation/networking (drivers_net_wan_Kconfig) 2005-06-25 16:25:09 -07:00
Makefile
c101.c
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
cycx_drv.c
cycx_main.c
cycx_x25.c
dlci.c
dscc4.c
farsync.c [PATCH] net/farsync: add set_current_state() before schedule_timeout() 2005-06-26 23:48:37 -04:00
farsync.h
hd6457x.c
hd64570.h
hd64572.h
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
hdlc_raw.c
hdlc_raw_eth.c
hdlc_x25.c
hostess_sv11.c
lapbether.c
n2.c
pc300-falc-lh.h
pc300.h
pc300_drv.c
pc300_tty.c
pci200syn.c
sbni.c
sbni.h
sdla.c
sdla_chdlc.c
sdla_fr.c
sdla_ft1.c
sdla_ppp.c
sdla_x25.c
sdladrv.c
sdlamain.c
sealevel.c
syncppp.c
wanpipe_multppp.c
wanxl.c drivers/net/: Use the DMA_{64,32}BIT_MASK constants 2005-06-26 18:22:14 -04:00
wanxl.h
wanxlfw.S
wanxlfw.inc_shipped
x25_asy.c [PATCH] Convert users to tty_unregister_ldisc() 2005-06-23 09:45:36 -07:00
x25_asy.h
z85230.c
z85230.h