can: Speed up CAN frame receiption by using ml_priv
authorOliver Hartkopp <socketcan@hartkopp.net>
Fri, 25 Dec 2009 06:47:47 +0000 (06:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2010 05:31:03 +0000 (21:31 -0800)
commit20dd3850bcf860561496827b711fa10fecf6e787
tree95ecd549717f2d654b870ffb44d342c04ab048b6
parent75ed0a897208c3273fd8dc0f71e1417dba5a049b
can: Speed up CAN frame receiption by using ml_priv

this patch removes the hlist that contains the CAN receiver filter lists.
It uses the 'midlayer private' pointer ml_priv and links the filters directly
to the CAN netdevice, which allows to omit the walk through the complete CAN
devices hlist for each received CAN frame.

This patch is tested and does not remove any locking.

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/af_can.c
net/can/af_can.h
net/can/proc.c