]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
can: gw: use can_gw_hops instead of sk_buff::csum_start
authorOliver Hartkopp <socketcan@hartkopp.net>
Sun, 1 Feb 2026 14:33:21 +0000 (15:33 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 5 Feb 2026 10:58:40 +0000 (11:58 +0100)
commit3ffecc14ec7ee8eb941e50c0076798a042924c62
treef1d09f5cf5ea5f006619c271065441352af0aac6
parent9f10374bb024593a611e6845847f0444841a231b
can: gw: use can_gw_hops instead of sk_buff::csum_start

As CAN skbs don't use IP checksums the skb->csum_start variable was used to
store the can-gw CAN frame time-to-live counter together with
skb->ip_summed set to CHECKSUM_UNNECESSARY.

Remove the 'hack' using the skb->csum_start variable and move the content
to can_skb_ext::can_gw_hops of the CAN skb extensions.

The module parameter 'max_hops' has been reduced to a single byte to fit
can_skb_ext::can_gw_hops as the maximum value to be stored is 6.

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-6-3635d790fe8b@hartkopp.net
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/can/vxcan.c
net/can/gw.c