android_kernel_google_msm/net/irda
Herbert Xu d55d87fdff net: Move rx skb_orphan call to where needed
In order to get the tun driver to account packets, we need to be
able to receive packets with destructors set.  To be on the safe
side, I added an skb_orphan call for all protocols by default since
some of them (IP in particular) cannot handle receiving packets
destructors properly.

Now it seems that at least one protocol (CAN) expects to be able
to pass skb->sk through the rx path without getting clobbered.

So this patch attempts to fix this properly by moving the skb_orphan
call to where it's actually needed.  In particular, I've added it
to skb_set_owner_[rw] which is what most users of skb->destructor
call.

This is actually an improvement for tun too since it means that
we only give back the amount charged to the socket when the skb
is passed to another socket that will also be charged accordingly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Oliver Hartkopp <olver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-06-23 16:36:25 -07:00
..
ircomm net: Move rx skb_orphan call to where needed 2009-06-23 16:36:25 -07:00
irlan irlan: convert to net_device_ops 2009-03-21 19:19:16 -07:00
irnet
af_irda.c net: Move rx skb_orphan call to where needed 2009-06-23 16:36:25 -07:00
discovery.c
irda_device.c
iriap.c
iriap_event.c
irias_object.c
irlap.c
irlap_event.c
irlap_frame.c irda: Use SKB queue and list helpers instead of doing it by-hand. 2009-05-28 23:26:33 -07:00
irlmp.c
irlmp_event.c
irlmp_frame.c
irmod.c
irnetlink.c irda: Use genl_register_family_with_ops() 2009-05-21 16:50:22 -07:00
irproc.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
irqueue.c
irsysctl.c
irttp.c
Kconfig
Makefile
parameters.c
qos.c
timer.c
wrapper.c