Skip to content

CAN: add SAE J1939 protocol

Kurt Van Dijck netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 5 repliesIn review
  2. v3 RFC6 patches 23 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5can: extend sockaddr_can to include j1939 membersinclude/linux/can.h include/linux/can/core.h net/can/bcm.c +1 more+32 -50 replies
2/5can: add rtnetlink supportinclude/linux/can/core.h net/can/af_can.c net/can/bcm.c +1 more+253 -173 replies
3/5can-j1939: Import SAE J1939 stackinclude/linux/can/Kbuild include/linux/can/j1939.h net/can/Kconfig +13 more+4609 -00 replies
4/5can-j1939: add documentationDocumentation/networking/j1939.txt MAINTAINERS+584 -00 replies
5/5iproute2: add can-j1939 supportMakefile include/linux/can.h include/linux/can/j1939.h +7 more+512 -212 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/5] CAN: add SAE J1939 protocol

This series adds SAE J1939 support to the current net-next-2.6.

1/5: can: extend sockaddr_can to include j1939 members 2/5: can: add rtnetlink support
3/5: j1939: initial import of SAE J1939
4/5: j1939: add documentation & MAINTAINERS 5/5: iproute2: use CAN & J1939

Differences from v3:
* Address claiming does not need a state machine anymore
* Dropped a per-ECU lock.
* Tasklets fill the gap between hrtimer (hardirq context) and networking (softirq context), without needing spin_lock_irqsave() & friends.
* Added example sendto() code in documentation

Differences from v2:
* replace magic constants with macro's
* use a static protocol stack, not a dynamic one.
* remove feature that have limited use and are difficult to explain.
* renamed some structure types to increase code readability.
* block on transport sessions until CAN frame is queued.

Kind regards,
Kurt Van Dijck