]> rtime.felk.cvut.cz Git - socketcan-devel.git/log
socketcan-devel.git
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

16 years agoSupport network namespaces introduced in the current net-2.6.24 GIT tree:
hartkopp [Fri, 14 Sep 2007 08:31:46 +0000 (08:31 +0000)]
Support network namespaces introduced in the current net-2.6.24 GIT tree:

David Miller's 2.6.24 networking tree
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.24.git;a=summary

[NET]: Make /proc/net per network namespace
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.24.git;a=commitdiff;h=39954fef318243ead56486775160c65f92ec092f

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

16 years agoUse proc_net_remove(x) instead of remove_proc_entry(x, proc_net) to
hartkopp [Fri, 14 Sep 2007 08:10:30 +0000 (08:10 +0000)]
Use proc_net_remove(x) instead of remove_proc_entry(x, proc_net) to
have the changes for net_namespace similar to other sources.

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

16 years agoChanged procfs handling to depend from proc_net directory.
hartkopp [Fri, 14 Sep 2007 07:27:56 +0000 (07:27 +0000)]
Changed procfs handling to depend from proc_net directory.
It looks like there is no 'nice' solution to get the broadcast managers
procfs entries under /proc/net/can/bcm/* as we would need to publish the
/proc/net/can directory reference to all CAN protocol modules.
Therefore the BCM entries are attached to /proc/net/can-bcm/* for now.

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

16 years agoSupport network namespaces introduced in the current net-2.6.24 GIT tree:
hartkopp [Thu, 13 Sep 2007 17:41:34 +0000 (17:41 +0000)]
Support network namespaces introduced in the current net-2.6.24 GIT tree:

David Miller's 2.6.24 networking tree
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.24.git;a=summary

[NET]: Make the device list and device lookups per namespace.
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.24.git;a=commitdiff;h=19dcccd778b49378287317c6c31ee763ebe08bd0

[NET]: Make socket creation namespace safe.
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.24.git;a=commitdiff;h=07fee2eb642a99726ba71111bcad7180ba5479f0

[NET]: Make packet reception network namespace safe
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.24.git;a=commitdiff;h=6de5b5062e26475050ebd88b33d3c056faa72c3f

TODO: Repair the current procfs support.

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

16 years agoUpdated the canplayer to accept logfile timestamps in the future (which
hartkopp [Fri, 7 Sep 2007 11:15:22 +0000 (11:15 +0000)]
Updated the canplayer to accept logfile timestamps in the future (which
is very nice when you don't have a RTC and your systemtime is somewhere
in the 1970's :)
Added a new commandline option to skip timestamp jumps greater than x
seconds to allow to concatenate different logfiles that replay
constantly and not waiting for the absolute timestamp offsets.

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

16 years agoUpdate to patch-series to revision 455.
thuermann [Fri, 3 Aug 2007 14:08:42 +0000 (14:08 +0000)]
Update to patch-series to revision 455.
Rebase from net-2.6.23 to net-2.6.

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

16 years agoRemoved "unused variable i" warning for the dry-run testing.
hartkopp [Fri, 3 Aug 2007 11:17:10 +0000 (11:17 +0000)]
Removed "unused variable i" warning for the dry-run testing.

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

16 years agoFixed inclusion of uaccess.h that had to be made Kernel version dependend.
hartkopp [Fri, 3 Aug 2007 07:58:20 +0000 (07:58 +0000)]
Fixed inclusion of uaccess.h that had to be made Kernel version dependend.

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

16 years agoFixed Kernel version dependend irqflags.
hartkopp [Fri, 3 Aug 2007 07:49:30 +0000 (07:49 +0000)]
Fixed Kernel version dependend irqflags.

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

16 years agoAdded module parameter for irq_mode to force the driver to use
hartkopp [Fri, 3 Aug 2007 07:32:55 +0000 (07:32 +0000)]
Added module parameter for irq_mode to force the driver to use
non-shared interrupt handling and to let the Linux Kernel disable local
interrupts when processing the irq handler.
Fixed irqflags defines that have been changed from 2.6.17 to 2.6.18 and
not (like the irq handler) from 2.6.18 to 2.6.19.

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

16 years agoFixed a character swap typo.
hartkopp [Thu, 2 Aug 2007 19:21:24 +0000 (19:21 +0000)]
Fixed a character swap typo.

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

16 years agoNew Version 20070802
hartkopp [Thu, 2 Aug 2007 11:29:24 +0000 (11:29 +0000)]
New Version 20070802

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

16 years agoReduced the comments for the loopback parameter of the vcan driver to point
hartkopp [Thu, 2 Aug 2007 11:28:16 +0000 (11:28 +0000)]
Reduced the comments for the loopback parameter of the vcan driver to point
out the 'testing' use-case and to reduce the confusion which may come up
the known 'loopback' interface in Linux.

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

16 years agoRemoved the CCAN driver from the default targets analogue to the mscan
hartkopp [Wed, 25 Jul 2007 12:24:21 +0000 (12:24 +0000)]
Removed the CCAN driver from the default targets analogue to the mscan
driver. As these drivers only compile on special ARCHs they should not
compile by default after SVN checkout.

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

16 years agoFixed in-kerneltree compilation
skallweit [Wed, 25 Jul 2007 12:02:04 +0000 (12:02 +0000)]
Fixed in-kerneltree compilation

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

16 years ago- removed obsolete kernel version check
skallweit [Wed, 25 Jul 2007 11:55:21 +0000 (11:55 +0000)]
- removed obsolete kernel version check
- renamed ccan_(un)register to (un)register_ccandev

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

16 years agoCleaned up FILES-2.6 which represents the first Kernel mainlining amount.
hartkopp [Wed, 25 Jul 2007 11:54:46 +0000 (11:54 +0000)]
Cleaned up FILES-2.6 which represents the first Kernel mainlining amount.

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

16 years ago- added a new kernel module for Bosch CCAN based CAN hardware
skallweit [Wed, 25 Jul 2007 11:46:56 +0000 (11:46 +0000)]
- added a new kernel module for Bosch CCAN based CAN hardware
- added a new kernel module for the Hynix/Magnachip H7202 chip using the CCAN module

the following TODOs are still pending:

- ccan_set_mode() and it's usage is incomplete and bogus.
- ccan_set_bit_time() can be called when the device is active.
- You already handle the state changes via interrupts. The common
  variable priv->can.state should be set accordingly. ccan_get_state()
  may then just return that value.
- You already handle error interrupts. You should fill an error frame
  and send it like a normal frame with the CAN_ERR_FLAG set. Have a look
  to the  mscan driver or http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/drivers/can/sja1000/rtcan_sja1000.c#156.

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

16 years agoFixed in-kerneltree compilation with a generated patch.
hartkopp [Wed, 25 Jul 2007 11:41:27 +0000 (11:41 +0000)]
Fixed in-kerneltree compilation with a generated patch.
As Marc Klein-Budde stated the "hal" should move to platform drivers - but
until then the generated patches work so far.

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

16 years agoMSCAN: fix bug with retry counter in mscan_set_mode()
wolf [Wed, 25 Jul 2007 11:08:11 +0000 (11:08 +0000)]
MSCAN: fix bug with retry counter in mscan_set_mode()

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