]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
Changed prototypes for CAN core exported functions to use ifindex
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 10 Jun 2007 18:21:58 +0000 (18:21 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sun, 10 Jun 2007 18:21:58 +0000 (18:21 +0000)
commitc1fbfcad13178c869cca9c77b65b638ea36fbdd0
tree708b724d22d7af452c5ec3186fbba8a69c76d063
parent5c6e7ddbb7826178e605e222392941b2c9e02a1b
Changed prototypes for CAN core exported functions to use ifindex
instead of *dev to hold the dev-pointer only very local and to reduce
locking issues.
Removed some handling in the raw/bcm notifiers that caused the system to
crash, when removing the network driver under heavy load on the fly.
TODO:
Put notifier into protocol opt structure to make kmalloc/kfree obsolete.
Handle the notifiers with RCU lists.
Put notifier list 'device dependend' into dev_rcv_lists.
After that check for better notifier handling.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@334 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/raw.c