]> rtime.felk.cvut.cz Git - socketcan-devel.git/log
socketcan-devel.git
16 years agoUpdate patch series to r560.
thuermann [Fri, 16 Nov 2007 15:19:36 +0000 (15:19 +0000)]
Update patch series to r560.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@561 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemove trailing white-space.
thuermann [Fri, 16 Nov 2007 13:57:29 +0000 (13:57 +0000)]
Remove trailing white-space.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@560 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdate version string.
thuermann [Fri, 16 Nov 2007 13:38:16 +0000 (13:38 +0000)]
Update version string.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@559 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUse of setup_timer().
hartkopp [Fri, 16 Nov 2007 10:08:00 +0000 (10:08 +0000)]
Use of setup_timer().

git-svn-id: svn://svn.berlios.de//socketcan/trunk@558 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUse of mod_timer() instead of delete_timer() / add_timer()
hartkopp [Fri, 16 Nov 2007 09:55:15 +0000 (09:55 +0000)]
Use of mod_timer() instead of delete_timer() / add_timer()

git-svn-id: svn://svn.berlios.de//socketcan/trunk@557 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUse NETDEV_TX_OK instead 0 for return value.
thuermann [Fri, 16 Nov 2007 09:13:58 +0000 (09:13 +0000)]
Use NETDEV_TX_OK instead 0 for return value.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@556 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoWhite-space: break a long line.
thuermann [Fri, 16 Nov 2007 09:13:20 +0000 (09:13 +0000)]
White-space: break a long line.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@555 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdd can_ prefix to some global variables.
thuermann [Fri, 16 Nov 2007 09:00:05 +0000 (09:00 +0000)]
Add can_ prefix to some global variables.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@554 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMade non static rx_dev_list namespace safe -> can_rx_dev_list.
hartkopp [Fri, 16 Nov 2007 08:37:42 +0000 (08:37 +0000)]
Made non static rx_dev_list namespace safe -> can_rx_dev_list.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@553 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoFixed missed initialisation of non static value which is used in proc.c
hartkopp [Fri, 16 Nov 2007 08:31:29 +0000 (08:31 +0000)]
Fixed missed initialisation of non static value which is used in proc.c

git-svn-id: svn://svn.berlios.de//socketcan/trunk@552 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMoved init_timer() and add_timer() for timer setup to
hartkopp [Fri, 16 Nov 2007 08:24:23 +0000 (08:24 +0000)]
Moved init_timer() and add_timer() for timer setup to
setup_timer() and mod_timer() to prevent comments from Stephen Hemminger
on netdev ML ...

git-svn-id: svn://svn.berlios.de//socketcan/trunk@551 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoSome more cosmetics in comments.
hartkopp [Thu, 15 Nov 2007 14:41:33 +0000 (14:41 +0000)]
Some more cosmetics in comments.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@550 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoCosmetics.
hartkopp [Thu, 15 Nov 2007 14:14:07 +0000 (14:14 +0000)]
Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@549 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoOops, Kconfig got lost in the last commit.
thuermann [Thu, 15 Nov 2007 13:39:33 +0000 (13:39 +0000)]
Oops, Kconfig got lost in the last commit.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@548 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemove debug code completely to stop endless discussions on netdev ML.
thuermann [Thu, 15 Nov 2007 13:38:03 +0000 (13:38 +0000)]
Remove debug code completely to stop endless discussions on netdev ML.
The code is quite stable anyway, so we don't need debugging anymore.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@547 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoDue to discussions on netdev ML the CAN core debugging facilities are
hartkopp [Thu, 15 Nov 2007 13:00:14 +0000 (13:00 +0000)]
Due to discussions on netdev ML the CAN core debugging facilities are
removed. The stuff is quite stable and clarified now - therfore the
debugging macros became obsolete anyhow.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@546 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoChange DBG macros to use do-while(0).
thuermann [Thu, 15 Nov 2007 12:56:54 +0000 (12:56 +0000)]
Change DBG macros to use do-while(0).
Fix white-space.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@545 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemoved obsolete code for software netdevices.
hartkopp [Wed, 14 Nov 2007 13:12:20 +0000 (13:12 +0000)]
Removed obsolete code for software netdevices.
Corrected vcan_tx() return value to NETDEV_TX_OK.
Thanks to Patrick McHardy for the hint.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@544 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRebase patch series to net-2.6.25 and update to r542.
thuermann [Wed, 14 Nov 2007 12:12:20 +0000 (12:12 +0000)]
Rebase patch series to net-2.6.25 and update to r542.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@543 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRename some variables for readability.
thuermann [Wed, 7 Nov 2007 13:57:16 +0000 (13:57 +0000)]
Rename some variables for readability.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@542 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded install target.
hartkopp [Wed, 7 Nov 2007 13:31:19 +0000 (13:31 +0000)]
Added install target.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@541 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoround_jiffies() has been introduced in 2.6.20.
hartkopp [Mon, 5 Nov 2007 12:58:26 +0000 (12:58 +0000)]
round_jiffies() has been introduced in 2.6.20.
Added version depended code for older Kernels.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@540 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoskb_reset_*_header(skb) has been introduced in 2.6.22.
hartkopp [Mon, 5 Nov 2007 12:30:55 +0000 (12:30 +0000)]
skb_reset_*_header(skb) has been introduced in 2.6.22.
Added version depended code for older Kernels.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@539 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoThe sk_alloc() function call has two changes in 2.6.24:
hartkopp [Sat, 3 Nov 2007 21:12:47 +0000 (21:12 +0000)]
The sk_alloc() function call has two changes in 2.6.24:
1. add net namespaces
2. removal of 'zero_it' argument

Added the second point here.

Reference in net-2.6 git:
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.git;a=commit;h=6257ff2177ff02d7f260a7a501876aa41cb9a9f6

git-svn-id: svn://svn.berlios.de//socketcan/trunk@538 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded include of linux/version.h .
hartkopp [Sat, 3 Nov 2007 21:07:25 +0000 (21:07 +0000)]
Added include of linux/version.h .

git-svn-id: svn://svn.berlios.de//socketcan/trunk@537 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded simple test programm for remote BCM access.
hartkopp [Sun, 28 Oct 2007 21:38:32 +0000 (21:38 +0000)]
Added simple test programm for remote BCM access.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@536 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoNew version 20071027.
hartkopp [Sat, 27 Oct 2007 15:09:23 +0000 (15:09 +0000)]
New version 20071027.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@535 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded some Kernel version depended stuff for 2.6.24
hartkopp [Sat, 27 Oct 2007 15:06:31 +0000 (15:06 +0000)]
Added some Kernel version depended stuff for 2.6.24

git-svn-id: svn://svn.berlios.de//socketcan/trunk@534 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemoved the compiler warning:
hartkopp [Sat, 27 Oct 2007 14:56:04 +0000 (14:56 +0000)]
Removed the compiler warning:
378: warning: `d' may be used uninitialized in this function
The compiler was right :)

git-svn-id: svn://svn.berlios.de//socketcan/trunk@533 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUse sock_alloc_send_skb() instead of alloc_skb() to allocate a socket buffer,
thuermann [Mon, 22 Oct 2007 12:03:16 +0000 (12:03 +0000)]
Use sock_alloc_send_skb() instead of alloc_skb() to allocate a socket buffer,
as suggested by Marc Klein-Budde.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@532 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agonuke SET_MODULE_OWNER() macro which is a nop in Kernel 2.6.
hartkopp [Fri, 19 Oct 2007 07:38:29 +0000 (07:38 +0000)]
nuke SET_MODULE_OWNER() macro which is a nop in Kernel 2.6.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@531 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoThe definition of IFF_ECHO is part of the socketcan patchset for the
hartkopp [Fri, 19 Oct 2007 07:32:59 +0000 (07:32 +0000)]
The definition of IFF_ECHO is part of the socketcan patchset for the
mainline kernel. As this patchset didn't go into 2.6.24 the
KERNEL_VERSION depended definition has to be adjusted ...

git-svn-id: svn://svn.berlios.de//socketcan/trunk@530 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoReverted the changes from r528 as 'ret' was set every time at socket
hartkopp [Thu, 18 Oct 2007 02:27:15 +0000 (02:27 +0000)]
Reverted the changes from r528 as 'ret' was set every time at socket
creation time even in the unlikely case that these protocol checks fail.
Additionally it was worse in readability.
Updated the comment for the whole protocol checks _code block_.
Therefore this comment is not directly placed before the first check.
I hope this was enough explanation why i reverted r528 like this.
If not, we should discuss it outside the SVN.
Oliver

git-svn-id: svn://svn.berlios.de//socketcan/trunk@529 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdd comment, minor cleanup.
thuermann [Wed, 17 Oct 2007 18:38:48 +0000 (18:38 +0000)]
Add comment, minor cleanup.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@528 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoNew Version 20071016.
hartkopp [Wed, 17 Oct 2007 18:19:26 +0000 (18:19 +0000)]
New Version 20071016.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@527 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoFixed possible NULL dereferencing in the failure of module load.
hartkopp [Wed, 17 Oct 2007 18:15:29 +0000 (18:15 +0000)]
Fixed possible NULL dereferencing in the failure of module load.
Thanks to Andre Naujoks for reporting this bug.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@526 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoSet skb's network- and transport-header to a reasonable state.
hartkopp [Sat, 13 Oct 2007 06:45:08 +0000 (06:45 +0000)]
Set skb's network- and transport-header to a reasonable state.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@525 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoFixed checking of CAN interface name commandline parameter.
hartkopp [Sun, 7 Oct 2007 14:39:52 +0000 (14:39 +0000)]
Fixed checking of CAN interface name commandline parameter.
Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@524 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdate patch series for net-2.6.24 to r522.
thuermann [Fri, 5 Oct 2007 10:57:41 +0000 (10:57 +0000)]
Update patch series for net-2.6.24 to r522.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@523 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMinor changes: Typos, comments, docs.
thuermann [Fri, 5 Oct 2007 09:04:03 +0000 (09:04 +0000)]
Minor changes: Typos, comments, docs.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@522 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdd a ":" in debug output.
thuermann [Thu, 4 Oct 2007 21:16:45 +0000 (21:16 +0000)]
Add a ":" in debug output.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@521 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemove unnecessary includes of poll.h.
thuermann [Thu, 4 Oct 2007 21:03:46 +0000 (21:03 +0000)]
Remove unnecessary includes of poll.h.
Rename debug to {can,raw,bcm}_debug respectively.
Change DBG() macros to work with {can,raw,bcm}_debug instead of debug.
Use module_param_named() instead of module_param().
Change prefix for can-core debug messages from "can-core" to "can".
Remove definitions of IDENT macro, use that value directly.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@520 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoNew Version 20071004.
hartkopp [Thu, 4 Oct 2007 17:32:31 +0000 (17:32 +0000)]
New Version 20071004.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@519 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoremoved obsolete local *_poll functions and used datagram_poll directly.
hartkopp [Thu, 4 Oct 2007 17:25:30 +0000 (17:25 +0000)]
removed obsolete local *_poll functions and used datagram_poll directly.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@518 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agouse of module_param_named to have a separate vcan_debug variable as
hartkopp [Thu, 4 Oct 2007 17:15:49 +0000 (17:15 +0000)]
use of module_param_named to have a separate vcan_debug variable as
suggested by Arnaldo Carvalho de Melo.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@517 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoReduced multiple definitions for CAN-Ids used by transport protocols.
hartkopp [Thu, 4 Oct 2007 17:02:08 +0000 (17:02 +0000)]
Reduced multiple definitions for CAN-Ids used by transport protocols.
Changed comments regarding protocol specific address information.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@516 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMade the boolean module_param 'echo' a 'bool' value.
hartkopp [Tue, 2 Oct 2007 21:37:57 +0000 (21:37 +0000)]
Made the boolean module_param 'echo' a 'bool' value.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@515 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoFix a typo.
thuermann [Tue, 2 Oct 2007 10:30:50 +0000 (10:30 +0000)]
Fix a typo.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@514 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRebase patch series to latest net-2.6.24.
thuermann [Tue, 2 Oct 2007 10:15:26 +0000 (10:15 +0000)]
Rebase patch series to latest net-2.6.24.
Minor changes in intro.
Move change in include/linux/if.h from patch/02-can-core.diff
to patch/01-can-proto-numbers.diff

git-svn-id: svn://svn.berlios.de//socketcan/trunk@513 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdate patch-series for net-2.6.24 to r511.
thuermann [Tue, 2 Oct 2007 09:09:27 +0000 (09:09 +0000)]
Update patch-series for net-2.6.24 to r511.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@512 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMinor documentation changes.
thuermann [Mon, 1 Oct 2007 17:31:54 +0000 (17:31 +0000)]
Minor documentation changes.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@511 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoNew Version 20071001.
hartkopp [Mon, 1 Oct 2007 06:14:35 +0000 (06:14 +0000)]
New Version 20071001.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@510 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdated documentation (IFF_ECHO, ccan driver, cosmetics).
hartkopp [Mon, 1 Oct 2007 06:13:34 +0000 (06:13 +0000)]
Updated documentation (IFF_ECHO, ccan driver, cosmetics).

git-svn-id: svn://svn.berlios.de//socketcan/trunk@509 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoReverted most of the changes since r500 except the changes in
hartkopp [Mon, 1 Oct 2007 05:48:50 +0000 (05:48 +0000)]
Reverted most of the changes since r500 except the changes in
drivers/net/can/* after discussion with Urs.
TODO: Documentation & new Version.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@508 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoNew Version 20070930.
hartkopp [Sun, 30 Sep 2007 14:14:20 +0000 (14:14 +0000)]
New Version 20070930.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@507 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdated documentation from loopback to echo.
hartkopp [Sun, 30 Sep 2007 14:05:24 +0000 (14:05 +0000)]
Updated documentation from loopback to echo.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@506 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoChanged loppback to echo namings.
hartkopp [Sun, 30 Sep 2007 13:32:41 +0000 (13:32 +0000)]
Changed loppback to echo namings.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@505 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoChanged module parameter and it's variable from loopback to echo.
hartkopp [Sun, 30 Sep 2007 13:16:52 +0000 (13:16 +0000)]
Changed module parameter and it's variable from loopback to echo.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@504 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoChanged loopback comments.
hartkopp [Sun, 30 Sep 2007 13:07:07 +0000 (13:07 +0000)]
Changed loopback comments.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@503 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoFixed missing renaming of CAN_RAW_LOOPBACK in kernel 2.4 tree.
hartkopp [Sun, 30 Sep 2007 13:03:55 +0000 (13:03 +0000)]
Fixed missing renaming of CAN_RAW_LOOPBACK in kernel 2.4 tree.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@502 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoChanged loopback to echo in CAN RAW sockets. The binary interface does
hartkopp [Sun, 30 Sep 2007 13:00:42 +0000 (13:00 +0000)]
Changed loopback to echo in CAN RAW sockets. The binary interface does
not change through this renaming of CAN_RAW_LOOPBACK to CAN_RAW_ECHO.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@501 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoChanged variables and comments from loopback to echo.
hartkopp [Sun, 30 Sep 2007 12:40:29 +0000 (12:40 +0000)]
Changed variables and comments from loopback to echo.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@500 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded patch basefile to create patched for the current net-2.6.24 kernels.
hartkopp [Sun, 30 Sep 2007 10:43:14 +0000 (10:43 +0000)]
Added patch basefile to create patched for the current net-2.6.24 kernels.
This includes the new IFF_ECHO interface flag.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@499 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoIntroduced new interface flags IFF_ECHO which is to be used, when the
hartkopp [Sun, 30 Sep 2007 10:21:32 +0000 (10:21 +0000)]
Introduced new interface flags IFF_ECHO which is to be used, when the
code hits the kernel. See discussion at
http://marc.info/?l=linux-netdev&m=119100461315453&w=2

Due to the masking of interface flags with IFF_VOLATILE in core/net/dev.c
IFF_ECHO cannot be used for external compilation, so we still use
IFF_LOOPBACK in older kernels and external compilation.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@498 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoReverted the introduction of -DCONFIG_CAN_DEBUG_CORE which has been
hartkopp [Sat, 29 Sep 2007 16:26:29 +0000 (16:26 +0000)]
Reverted the introduction of -DCONFIG_CAN_DEBUG_CORE which has been
committed through an oversight in r496.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@497 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoFixed contradiction in Sourcecode discalimer.
hartkopp [Thu, 27 Sep 2007 12:29:32 +0000 (12:29 +0000)]
Fixed contradiction in Sourcecode discalimer.
See details at
http://marc.info/?l=linux-netdev&m=119074747913703&w=2

git-svn-id: svn://svn.berlios.de//socketcan/trunk@496 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoChanges suggested by Arnaldo Carvalho de Melo:
thuermann [Tue, 25 Sep 2007 13:32:50 +0000 (13:32 +0000)]
Changes suggested by Arnaldo Carvalho de Melo:
* Use gfp_any() instead of checking in_interrupt().
* Don't kfree() the sk_protinfo field in kerenls >= 2.6.12.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@495 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdate patch-series for net-2.6.24 to revision 493
thuermann [Tue, 25 Sep 2007 12:05:45 +0000 (12:05 +0000)]
Update patch-series for net-2.6.24 to revision 493

git-svn-id: svn://svn.berlios.de//socketcan/trunk@494 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemove dynamically allocated buffer for debug output.
thuermann [Tue, 25 Sep 2007 09:41:47 +0000 (09:41 +0000)]
Remove dynamically allocated buffer for debug output.
Use kernel functions for hexdumps.
Don't interpret printf-style %-sequences in can_debug_cframe.
Specify the fixed fmt argument to DBG() macro and use GCC ## mechanism
to remove , when args is empty.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@493 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMinor optimization.
thuermann [Tue, 25 Sep 2007 08:44:50 +0000 (08:44 +0000)]
Minor optimization.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@492 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemoved obsolete #define's CONFIG_CAN_RAW_USER and CONFIG_CAN_BCM_USER.
hartkopp [Mon, 24 Sep 2007 16:12:52 +0000 (16:12 +0000)]
Removed obsolete #define's CONFIG_CAN_RAW_USER and CONFIG_CAN_BCM_USER.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@491 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemoved capability defines.
hartkopp [Mon, 24 Sep 2007 09:15:43 +0000 (09:15 +0000)]
Removed capability defines.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@490 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemoved CAN_RAW_USER and CAN_BCM_USER Kconfig options due to a
hartkopp [Sun, 23 Sep 2007 17:14:29 +0000 (17:14 +0000)]
Removed CAN_RAW_USER and CAN_BCM_USER Kconfig options due to a
discussion of Usr and Patrick:

http://marc.info/?l=linux-netdev&m=119045947822801&w=2

The capability checks are still part of the source to allow developers
to change the capabilities according to their needs.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@489 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdate outdated comment.
hartkopp [Fri, 21 Sep 2007 07:21:24 +0000 (07:21 +0000)]
Update outdated comment.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@488 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdate patch-series for net-2.6.24 to revision 484
thuermann [Thu, 20 Sep 2007 19:35:39 +0000 (19:35 +0000)]
Update patch-series for net-2.6.24 to revision 484

git-svn-id: svn://svn.berlios.de//socketcan/trunk@487 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdated documentation analogue to SVN r479 log:
hartkopp [Thu, 20 Sep 2007 19:16:27 +0000 (19:16 +0000)]
Updated documentation analogue to SVN r479 log:
Removed "VAG Bedien- und Anzeigeprotokoll" from the defined CAN protocols.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@486 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded missing overflow check for stats.tx_frames.
hartkopp [Thu, 20 Sep 2007 17:00:38 +0000 (17:00 +0000)]
Added missing overflow check for stats.tx_frames.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@485 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdate version number.
thuermann [Thu, 20 Sep 2007 13:41:14 +0000 (13:41 +0000)]
Update version number.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@484 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdd lock for proto_tab[] access.
thuermann [Thu, 20 Sep 2007 12:48:17 +0000 (12:48 +0000)]
Add lock for proto_tab[] access.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@483 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMore changes after review from Patrick McHardy
thuermann [Thu, 20 Sep 2007 11:46:29 +0000 (11:46 +0000)]
More changes after review from Patrick McHardy
- add _rcu to some hlist traversals.
- remove BH blocking from receive list spinlocks.
- use printk_ratelimit for module autoload failures.

Remove the BUG_ON() after assurance from Patrick that NETDEV_REGISTER
is always run in process context.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@482 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoIntroduced error handling in the case of can_rx_register() failure.
hartkopp [Thu, 20 Sep 2007 09:53:32 +0000 (09:53 +0000)]
Introduced error handling in the case of can_rx_register() failure.
Additionally bind() and setsockopt() do not touch the socket state nor the
filterlists anymore when these syscalls failed for any reason.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@481 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoFixed error handling in the case of can_rx_register() failure.
hartkopp [Thu, 20 Sep 2007 07:02:05 +0000 (07:02 +0000)]
Fixed error handling in the case of can_rx_register() failure.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@480 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemoved "VAG Bedien- und Anzeigeprotokoll" from the defined CAN protocols.
hartkopp [Wed, 19 Sep 2007 19:05:18 +0000 (19:05 +0000)]
Removed "VAG Bedien- und Anzeigeprotokoll" from the defined CAN protocols.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@479 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdd comment on return value of can_send().
thuermann [Wed, 19 Sep 2007 15:35:37 +0000 (15:35 +0000)]
Add comment on return value of can_send().

git-svn-id: svn://svn.berlios.de//socketcan/trunk@478 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded return values to be sent to the user in the case of can_rx_register()
hartkopp [Wed, 19 Sep 2007 14:50:24 +0000 (14:50 +0000)]
Added return values to be sent to the user in the case of can_rx_register()
failure.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@477 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdated function prototypes.
hartkopp [Wed, 19 Sep 2007 13:24:39 +0000 (13:24 +0000)]
Updated function prototypes.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@476 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoChange can_proto_unregister() and can_rx_unregister() to return void.
thuermann [Wed, 19 Sep 2007 13:05:43 +0000 (13:05 +0000)]
Change can_proto_unregister() and can_rx_unregister() to return void.
Change two DBG()s to printk(KERN_ERR).
Add KERN_ERR to two printk()s.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@475 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoSome changes suggested by Patrick McHardy:
thuermann [Wed, 19 Sep 2007 12:24:00 +0000 (12:24 +0000)]
Some changes suggested by Patrick McHardy:
* use sbk_share_check().
* use new and much simpler rtnl API
  - delete list of vcan devices and struct vcan_priv.
  - delete newlink() and dellink() functions.
  To reduce kernel version depencies, the new rtnl API will
  now only be used for 2.6.24 and higher.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@474 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoA couple of changes, mostly suggested by Patrick McHardy:
thuermann [Wed, 19 Sep 2007 12:08:38 +0000 (12:08 +0000)]
A couple of changes, mostly suggested by Patrick McHardy:
* use round_jiffies() for statistics timer.
* make stats_timer static.
* add __read_mostly to a number of variables.
* in can_create() check for net namespace before loading modules.
* the NETDEV_REGISTER notifier can't run in interrupt context, so we
  don't need to check that and call kzalloc() with GFP_KERNEL always.
* check that the sizeof(skb->cb) >= sizeof(struct sockaddr_can).
* use return values of can_proto_{un,}register().
* fix some comments.
* update version number.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@473 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoFix some more typos and white-space.
thuermann [Wed, 19 Sep 2007 10:52:18 +0000 (10:52 +0000)]
Fix some more typos and white-space.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@472 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdated to new netdev stats handling in Kernel 2.6.23 where the struct
hartkopp [Tue, 18 Sep 2007 11:33:24 +0000 (11:33 +0000)]
Updated to new netdev stats handling in Kernel 2.6.23 where the struct
net_device_stats is part of the struct net_device.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@471 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdate patch series to revision 469.
thuermann [Mon, 17 Sep 2007 20:08:02 +0000 (20:08 +0000)]
Update patch series to revision 469.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@470 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoFix typos pointed out by Randy Dunlap on linux-netdev ML.
thuermann [Mon, 17 Sep 2007 18:37:33 +0000 (18:37 +0000)]
Fix typos pointed out by Randy Dunlap on linux-netdev ML.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@469 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdate patch series to revision 466.
thuermann [Mon, 17 Sep 2007 10:23:07 +0000 (10:23 +0000)]
Update patch series to revision 466.
Rebase from net-2.6 to net-2.6.24.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@468 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdd attribution to Patrick in patch series intro text
thuermann [Mon, 17 Sep 2007 10:16:49 +0000 (10:16 +0000)]
Add attribution to Patrick in patch series intro text
(this change was actually done at Aug 3 with try #5 of
our patch series, but I missed to check it in).

git-svn-id: svn://svn.berlios.de//socketcan/trunk@467 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoCleanup LINUX_VERSION_CODE kludge.
thuermann [Mon, 17 Sep 2007 08:02:21 +0000 (08:02 +0000)]
Cleanup LINUX_VERSION_CODE kludge.
Remove superfluous parenthesis.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@466 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdd support for #elif.
thuermann [Mon, 17 Sep 2007 07:59:34 +0000 (07:59 +0000)]
Add support for #elif.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@465 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoNew Version 20070916
hartkopp [Sun, 16 Sep 2007 16:42:29 +0000 (16:42 +0000)]
New Version 20070916

git-svn-id: svn://svn.berlios.de//socketcan/trunk@464 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemoved SET_MODULE_OWNER() macros for Kernel 2.6.24 and newer.
hartkopp [Sun, 16 Sep 2007 16:07:08 +0000 (16:07 +0000)]
Removed SET_MODULE_OWNER() macros for Kernel 2.6.24 and newer.

Reference:
[NET]: Nuke SET_MODULE_OWNER macro.

It's been a useless no-op for long enough in 2.6 so I figured it's time to
remove it.  The number of people that could object because they're
maintaining unified 2.4 and 2.6 drivers is probably rather small.

[ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ]

http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.24.git;a=commit;h=d19ef7a45e8f177e27fe8b085a68f0f3d68c7a05

git-svn-id: svn://svn.berlios.de//socketcan/trunk@463 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemoved SET_MODULE_OWNER() macros for Kernel 2.6.24 and newer.
hartkopp [Sun, 16 Sep 2007 16:03:01 +0000 (16:03 +0000)]
Removed SET_MODULE_OWNER() macros for Kernel 2.6.24 and newer.

Reference:
[NET]: Nuke SET_MODULE_OWNER macro.

It's been a useless no-op for long enough in 2.6 so I figured it's time to
remove it.  The number of people that could object because they're
maintaining unified 2.4 and 2.6 drivers is probably rather small.

[ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ]

http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.24.git;a=commit;h=d19ef7a45e8f177e27fe8b085a68f0f3d68c7a05

git-svn-id: svn://svn.berlios.de//socketcan/trunk@462 030b6a49-0b11-0410-94ab-b0dab22257f2