Skip to content

can: per-device hardware filter support

Martin Hundebøll linux-can lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2can: netlink: support setting hardware filtersdrivers/net/can/dev/dev.c drivers/net/can/dev/netlink.c include/linux/can/dev.h +1 more+42 -05 replies
2/2can: m_can: support setting hw filtersdrivers/net/can/m_can/m_can.c+133 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] can: per-device hardware filter support

Hi all,

Based on the prior discussions on hardware filtering in CAN devices[0], I've implemented such support in the m_can driver.

The first patch is almost entirely identical to Oliver Hartkopp's patch from 2018[1] - I've just rebased it to v6.6 and fixed a checkpatch warning. Not sure what to do about the "Not-Signed-off-by" tag though?

The second patch is new. I've tested it with a tcan4550 device together with Oliver's proof-of-concept change in iproute2[2].

Has anyone tried this approach with other devices, e.g. sja1000 ?

Thanks,
Martin

[0] https://lore.kernel.org/linux-can/[email protected]/T/
[1] https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/commit/?h=can-hw-filter&id=87128f7a953ef2eef5f2d2a02ce354350e2c4f7f
[2] https://marc.info/?l=linux-can&m=151949929522529

Martin Hundebøll (2):
can: netlink: support setting hardware filters
can: m_can: support setting hw filters

 drivers/net/can/dev/dev.c        |   3 +
 drivers/net/can/dev/netlink.c    |  33 ++++++++
 drivers/net/can/m_can/m_can.c    | 137 ++++++++++++++++++++++++++++++-
 include/linux/can/dev.h          |   5 ++
 include/uapi/linux/can/netlink.h |   1 +
 5 files changed, 175 insertions(+), 4 deletions(-)
Signature · 1 line
2.41.0