On 09.08.2022 14:30:43, Magnus Aagaard Sørensen wrote: > I am working with an out-of-tree kernel driver which maps LIN messages via a > UART onto the CAN networking stack, to allow for using the regular CAN tools > to also work with LIN messages (The driver in question is sllin, > https://github.com/lin-bus/linux-lin/, based on slcan from what I > understand). FYI: in net-next/main the slcan driver has undergone a major cleanup. > During use, I see a lot of frames missing from the output. From debugging > the module, I can see that the kernel module receive the messages as > expected, but they never show up in user space using candump. I can trace > the messages in the module to the hand-off to the networking stack via a > netif_rx call. > > Are there any additional handles in the networking/CAN stack to show me > where the missing frames are being discarded before reaching user space, or > which could otherwise help me narrow down the origin of this issue? The > frames are transmitted from a custom/third party device at 19200 kbps and > with 100 ms spacing. Try running candump with -d. | -d (monitor dropped CAN frames) > Hardware on the Linux side is a Raspberry Pi 4 running kernel 5.15.56 in 64 > bit mode. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature