openwrt/target/linux/generic
Antonio Pastor 76a546a83a kernel: generic: patch: 802.2+LLC - set transport_header offset
Conversion to DSA broke 802.2+LLC+SNAP packet processing. Frames
received by napi_complete_done with GRO and DSA have transport_header
set two bytes short, or pointing 2 bytes before network_header &
skb->data. As snap_rcv expects transport_header to point to SNAP
header (OID:PID) after LLC processing advances offset over LLC header
(llc_rcv & llc_fixup_skb), code doesn't find a match and packet is
dropped.

Image built at this commit operates properly:
  86dadeba48 - generic: add patch for GPON-ONU-34-20BI quirk
Image built at following commit exhibits the issue:
  337e36e0ef - ipq806x: convert each device to DSA implementation

As issue is LLC specific, to avoid impacting non-LLC traffic, and to
follow up on original assumption made on kernel commit fda55eca5a33
("net: introduce skb_transport_header_was_set()") stating "network
stacks usually reset the transport header anyway", llc_fixup_skb to
reset and advance the offset. llc_fixup_skb already assumes the LLC
header is at skb->data, and by definition SNAP header immediately
follows.

Signed-off-by: Antonio Pastor <antonio.pastor@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17220
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit da7ab64f1f)
2024-12-28 11:18:36 +01:00
..
backport-6.6 kernel: generic: patch: 802.2+LLC - set transport_header offset 2024-12-28 11:18:36 +01:00
files treewide: remove THIS_MODULE assignment 2024-11-28 18:46:45 +00:00
hack-6.6 kernel: bump 6.6 to 6.6.66 2024-12-19 11:22:12 +01:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-6.6 kernel: generic: netfilter: nft_set_hash: unaligned atomic read on struct nft_set_ext 2024-12-22 18:48:34 +01:00
config-6.6 kernel: bump 6.6 to 6.6.66 2024-12-19 11:22:12 +01:00
config-filter kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
PATCHES