Revert "can: raw: instantly reject unsupported CAN frames"
Status from this message: Applied to linux-can.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Revert "can: raw: instantly reject unsupported CAN frames"drivers/ drivers/ drivers/ +2 more | +17 | 0 replies | |
| 2/3 | can: propagate CAN device capabilities via ml_privdrivers/ drivers/ drivers/ +3 more | +83 | 0 replies | |
| 3/3 | can: raw: instantly reject disabled CAN framesnet/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] Revert "can: raw: instantly reject unsupported CAN frames"
This reverts commit 1a620a723853a0f49703c317d52dc6b9602cbaa8
and its follow-up fixes for the introduced dependency issues.
commit 1a620a723853 ("can: raw: instantly reject unsupported CAN frames") commit cb2dc6d2869a ("can: Kconfig: select CAN driver infrastructure by default") commit 6abd4577bccc ("can: fix build dependency")
commit 5a5aff6338c0 ("can: fix build dependency")
The reverted patch was accessing CAN device internal data structures from the network layer because it needs to know about the CAN protocol capabilities of the CAN devices.
This data access caused build problems between the CAN network and the CAN driver layer which introduced unwanted Kconfig dependencies and fixes.
The patches 2 & 3 implement a better approach which makes use of the CAN specific ml_priv data which is accessible from both sides.
With this change the CAN network layer can check the required features and the decoupling of the driver layer and network layer is restored.
Oliver Hartkopp (3):
Revert "can: raw: instantly reject unsupported CAN frames"
can: propagate CAN device capabilities via ml_priv
can: raw: instantly reject disabled CAN frames
drivers/net/can/Kconfig | 7 +++-- drivers/net/can/Makefile | 2 +- drivers/net/can/dev/Makefile | 5 ++-- drivers/net/can/dev/dev.c | 27 +++++++++++++++++++ drivers/net/can/dev/netlink.c | 1 + drivers/net/can/vcan.c | 15 +++++++++++ drivers/net/can/vxcan.c | 15 +++++++++++ include/linux/can/can-ml.h | 24 +++++++++++++++++ include/linux/can/dev.h | 8 +----- net/can/raw.c | 49 ++++++----------------------------- 10 files changed, 100 insertions(+), 53 deletions(-)
Signature · 1 line
2.47.3