]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
Omit unneeded skb_clone() calls.
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 6 Jan 2009 09:23:41 +0000 (09:23 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 6 Jan 2009 09:23:41 +0000 (09:23 +0000)
commitd463bf5bc5cacef97ca27eac5e083efd18e00e18
tree9163639f8d4696001e4a7a967fc2928987d49147
parent1b6d9a1edaf84115e766fe84124a6654a63ff4e1
Omit unneeded skb_clone() calls.
The AF_CAN core delivered always cloned sk_buffs to the AF_CAN
protocols, although this was _only_ needed by the can-raw protocol.
With this (additionally documented) change, the AF_CAN core calls the
callback functions of the registered AF_CAN protocols with the original
(uncloned) sk_buff pointer and let's the can-raw protocol do the
skb_clone() itself which omits all unneeded skb_clone() calls for other
AF_CAN protocols.

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: Urs Thuermann <urs.thuermann@volkswagen.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@894 030b6a49-0b11-0410-94ab-b0dab22257f2
kernel/2.6/include/linux/can/core.h
kernel/2.6/net/can/af_can.c
kernel/2.6/net/can/bcm.c
kernel/2.6/net/can/isotp.c
kernel/2.6/net/can/raw.c