Skip to contentSkip to conversation

isotp in mainline?

DISCUSSION Drew Fustini 2 participants 4 messages Jun 11, 2020 – Jun 12, 2020 CAN network drivers

lore
Share & tools
lore
#1 lore raw

Hi Drew,

Quoted 1 line

Is there a current effort to get the isotp driver accepted into mainline?

I believe ISOTP has been mainline for quite a while.

I remember writing a test script when Python 3.7 came out in Aug 2018 and added the isotp socket type to socket class [1].

I tested on a X86_64 machine with Ubuntu 18.04 LTS, so it must have been mainline at that time.

Regards,
Patrick

[1]
https://docs.python.org/3.7/library/socket.html?highlight=socket#socket.CAN_ISOTP

#2 lore raw
Quoted 9 lines · Patrick Menschel

Hi Drew,

Quoted 1 line

Is there a current effort to get the isotp driver accepted into mainline?

I believe ISOTP has been mainline for quite a while.

I remember writing a test script when Python 3.7 came out in Aug 2018 and added the isotp socket type to socket class [1].

Quoted 9 lines

I tested on a X86_64 machine with Ubuntu 18.04 LTS, so it must have been mainline at that time.

Regards,
Patrick

[1]
https://docs.python.org/3.7/library/socket.html?highlight=socket#socket.CAN_ISOTP

Hi Patrick,

Maybe it was just to a test to see if the the protocol type existed?

It does look like the protocol is defined in include/uapi/linux/can.h:

#define CAN_ISOTP 6 /* ISO 15765-2 Transport Protocol */

However, there does not appear to be any implementation in the mainline kernel.

I recall Oliver mentioning that he should try to mainline isotp modules at the end of the J1939 talk at ELC-E last October [1]. I don't see any posts regarding isotp in the linux-can archives since then, so I thought I would bring it up.

Thanks,
Drew

[0] https://elixir.bootlin.com/linux/v5.7/source/include/uapi/linux/can.h#L159
[1] https://youtu.be/3NfN8B4-w8w?t=2052

#3 lore raw
Quoted 6 lines

Maybe it was just to a test to see if the the protocol type existed?

It does look like the protocol is defined in include/uapi/linux/can.h:

#define CAN_ISOTP 6 /* ISO 15765-2 Transport Protocol */

Quoted 7 lines

However, there does not appear to be any implementation in the mainline kernel.

I recall Oliver mentioning that he should try to mainline isotp modules at the end of the J1939 talk at ELC-E last October [1]. I don't see any posts regarding isotp in the linux-can archives since then, so I thought I would bring it up.

Hi,

you're perfectly right. I just tested that script on a fresh ubuntu 20.04 install and it turns out, isotp-module is missing.

"OSError: [Errno 93] Protocol not supported"

I must have compiled it by hand back then.

--Patrick