]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
can: use skb hash instead of private variable in headroom
authorOliver Hartkopp <socketcan@hartkopp.net>
Sun, 1 Feb 2026 14:33:16 +0000 (15:33 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 5 Feb 2026 10:58:39 +0000 (11:58 +0100)
commitd4fb6514ff8ed6912a71294e6b66a5d59ee88007
treebe3f7c88425bba46997dd37d3df7204e51103bf0
parent0cbcc0fdce2b90a83a8a77b04c6f8da3d22fc591
can: use skb hash instead of private variable in headroom

The can_skb_priv::skbcnt variable is used to identify CAN skbs in the RX
path analogue to the skb->hash.

As the skb hash is not filled in CAN skbs move the private skbcnt value to
skb->hash and set skb->sw_hash accordingly. The skb->hash is a value used
for RPS to identify skbs. Use it as intended.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://patch.msgid.link/20260201-can_skb_ext-v8-1-3635d790fe8b@hartkopp.net
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/can/dev/skb.c
include/linux/can/core.h
include/linux/can/skb.h
net/can/af_can.c
net/can/bcm.c
net/can/isotp.c
net/can/j1939/socket.c
net/can/j1939/transport.c
net/can/raw.c