openwrt-mirror/package/kernel
Sergey Ryazanov a96eaa6456 ipq40xx: fix compatibility with linux-atm tools
atm_qos struct should be the same both for user and kernel spaces. Via
the __SO_ENCODE() macro it is used to define the SO_ATMQOS socket IOC.

During the VRX518 support introduction, the atm_trafprm sturct nested
into the atm_qos stucture was update with newer fields that are
referenced by the ATM TC layer of the VRX518 TC driver. These new fields
are intended to communicate information for extra traffic classes
supported by the driver. But we are still using vanilla kernel headers
to build the toolchain. Due to the atm.h header incoherency br2684ctl
from linux-atm tools is incapable to configure the ATM bridge netdev:

  br2684ctl: Interface "dsl0" created sucessfully
  br2684ctl: Communicating over ATM 0.1.2, encapsulation: LLC
  br2684ctl: setsockopt SO_ATMQOS 22 <-- EINVAL errno
  br2684ctl: Fatal: failed to connect on socket; File descriptor in bad state

There are two options to fix this incoherency. (a) update the header
file in the toolchain to build linux-atm against updated atm_trafprm and
atm_qos structures, or (b) revert atm_trafprm changes.

Since there are no actual users of the extra ATM QoS traffic classes,
just drop these extra traffic classes from vrx518_tc ATM TC layer and
drop the kernel patch updating atm.h.

Besides fixing the compatibility with linux-atm tools, removing the
kernel patch should simplify kernel updates removing unneeded burden of
maintenance.

Run tested with FRITZ!Box 7530 with disabled extra traffic classes and
then removed them entirely before the submission.

CC: John Crispin <john@phrozen.org>
Fixes: cfd42a0098 ("ipq40xx: add Intel/Lantiq ATM hacks")
Suggested-by: Andre Heider <a.heider@gmail.com>
Reported-and-tested-by: nebibigon93@yandex.ru
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250122222654.21833-4-ryazanov.s.a@gmail.com/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 6d6dc3a3c9)
2025-01-24 22:26:20 +01:00
..
ath10k-ct ath10k-ct: select mac80211 debugfs support 2024-10-06 23:19:38 +02:00
bcm27xx-gpu-fw bcm27xx-gpu-fw: update to v1.20241126 2024-12-28 18:51:22 +01:00
bcm63xx-cfe bcm63xx-cfe: update to latest version 2024-06-26 19:26:34 +02:00
bpf-headers bpf-headers: update to version 6.6 2024-09-20 23:17:43 +02:00
button-hotplug button-hotplug: simplify build 2022-10-24 20:49:34 +02:00
cryptodev-linux cryptodev-linux: change home-page URL 2024-11-28 18:46:59 +00:00
dtc/patches package: kernel: dtc: Add DTO support 2017-11-06 16:39:41 +01:00
gpio-button-hotplug treewide: remove THIS_MODULE assignment 2024-11-28 18:46:45 +00:00
gpio-nct5104d treewide: remove THIS_MODULE assignment 2024-11-28 18:46:45 +00:00
lantiq ipq40xx: fix compatibility with linux-atm tools 2025-01-24 22:26:20 +01:00
leds-gca230718 package: kernel: leds-gca230718: fix build with Linux 6.6 2024-04-12 02:07:30 +01:00
leds-ws2812b kernel: ws2812b: use devm for mutex_init 2024-10-06 12:21:51 +02:00
linux generic: backport Realtek PHY patches from upstream 2025-01-17 23:53:06 +01:00
mac80211 mac80211: rt2x00: some improvements for rt5592 2025-01-04 22:30:25 +01:00
mt76 mt76: update to Git HEAD (2025-01-14) 2025-01-15 17:16:30 +01:00
mt7621-qtn-rgmii treewide: rename ZyXEL to Zyxel 2024-08-25 15:08:25 +02:00
mwlwifi mwlwifi: fix compilation with 6.6 and 64-bit 2024-10-19 18:57:50 +02:00
nat46 treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
qca-nss-dp kernel: qca-nss-dp: add back printing attached PHY-s 2024-05-21 12:29:33 +02:00
qca-ssdk kernel: qca-ssdk: set OF node for the SFP PHY 2024-07-09 12:33:17 +02:00
r8101 kernel: r8101: print link status when link up 2024-08-18 19:31:55 +02:00
r8125 kernel: r8125: update to v9.014.01 2024-11-06 11:42:35 +01:00
r8126 kernel: r8126: update to v10.014.01 2024-11-05 14:08:07 +01:00
r8168 kernel: r8168: refresh patch 2024-11-05 14:08:28 +01:00
rtc-rv5c386a kernel: Make use of KERNEL_MAKE 2022-12-17 20:12:31 +01:00
rtl8812au-ct rtl8812au-ct: fix build with mac80211 6.9.9 backport 2024-07-13 14:25:36 +02:00
trelay package: drop PKG_VERSION for purely local packages 2020-07-15 18:33:56 +02:00
ubnt-ledbar ubnt-ledbar: fix compilation error 2024-10-08 22:24:54 +02:00
ubootenv-nvram treewide: remove THIS_MODULE assignment 2024-11-28 18:46:45 +00:00