]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdda0bb882334a9ea69605d673546c55cc6544977
tree95ecd549717f2d654b870ffb44d342c04ab048b6
parent666715631d94ccd170491b6e50a7d7a07a19abc4
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