diff options
| author | Davide Caratti <[email protected]> | 2025-06-04 16:06:04 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2025-06-10 08:23:30 +0000 |
| commit | 127c49624a0980ee7b8a5ba9094d6942332a48da (patch) | |
| tree | 71e9014b1f7f595c54558aa02fe7220877f70fcf /drivers/usb/cdns3/cdns3-plat.c | |
| parent | documentation: networking: can: Document alloc_candev_mqs() (diff) | |
| download | kernel-127c49624a0980ee7b8a5ba9094d6942332a48da.tar.gz kernel-127c49624a0980ee7b8a5ba9094d6942332a48da.zip | |
can: add drop reasons in the receive path of AF_CAN
Besides the existing pr_warn_once(), use skb drop reasons in case AF_CAN
layer drops non-conformant CAN{,FD,XL} frames, or conformant frames
received by "wrong" devices, so that it's possible to debug (and count)
such events using existing tracepoints:
| # perf record -e skb:kfree_skb -aR -- ./drv/canfdtest -v -g -l 1 vcan0
| # perf script
| [...]
| canfdtest 1123 [000] 3893.271264: skb:kfree_skb: skbaddr=0xffff975703c9f700 rx_sk=(nil) protocol=12 location=can_rcv+0x4b reason: CAN_RX_INVALID_FRAME
Signed-off-by: Davide Caratti <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions
