Re: [PATCH v2 3/4] ipq40xx: fix compatibility with linux-atm tools

2025-01-12 Thread Andre Heider
Hi, On 12/01/2025 2:02 am, Sergey Ryazanov wrote: 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 upd

Re: [PATCH v2 3/4] ipq40xx: fix compatibility with linux-atm tools

2025-01-12 Thread Sergey Ryazanov
+CC John as the Lantiq patch author On 12.01.2025 11:20, Andre Heider wrote: Hi, On 12/01/2025 2:02 am, Sergey Ryazanov wrote: 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 suppor

[PATCH] fw4: add masquerade-prefix snat type

2025-01-12 Thread Jonas Lochmann
OpenWrt supports requesting IPv6 network prefixes using DHCP. However, the existing masquerade option delegates the rewriting to nftables that knows the ip address used by the router itself but not the prefixes that are only known by netifd and OpenWrt services that use its data. The masquerade-pr

[PATCH v3 3/4] ipq40xx: fix compatibility with linux-atm tools

2025-01-12 Thread Sergey Ryazanov
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

[PATCH v3 0/4] ipq40xx: fritzbox 7530: fix ADSL/ATM support

2025-01-12 Thread Sergey Ryazanov
Andre and Martin did a great job implementing xDSL (VRX518 chip) support for the Fritzbox 7530 router. Device was well tested with VDSL link. Suddenly, there were no ADSL users and the corresponding functionality needs small fixes here and there to make router capable to work with ADSL lines w/ ATM

[PATCH v3 2/4] kernel: vrx518_tc: fix ADSL/ATM operation

2025-01-12 Thread Sergey Ryazanov
ATM TC layer have some issues which effectively prevent VRX518 from being used as ADSL modem. Specifically, there one crash during the ATM layer configuration and wrong PVC ID selection on packet receiving what breaks RX path. Fix both of the issues. Make subif iface registration optional to preven

[PATCH v3 1/4] kernel: vrx518_tc: fix RX desc phys to virt mapping

2025-01-12 Thread Sergey Ryazanov
It looks like VRX518 returns phys addr of data buffer in the 'data_ptr' field of the RX descriptor and an actual data offset within the buffer in the 'byte_off' field. In order to map the phys address back to virtual we need the original phys address of the allocated buffer. In the same driver app

[PATCH v3 4/4] kernel: vrx518_tc: bump PKG_RELEASE

2025-01-12 Thread Sergey Ryazanov
Bump PKG_RELEASE after the previous fixes. Signed-off-by: Sergey Ryazanov --- package/kernel/lantiq/vrx518_tc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/lantiq/vrx518_tc/Makefile b/package/kernel/lantiq/vrx518_tc/Makefile index a5718d9d5b..d92c6d

[PATCH] selinux-policy: update to version v2.0

2025-01-12 Thread Dominick Grift
Rebased onto dssp5-base. Baseline is: ss, tc, stubby, irqbalance, usbutils, ethtool, tcpdump, mtr, bmon, zram-swap, parted, e2fsprogs, gdisk, block-mount, kmod-fs-ext4, kmod-fs-f2fs, kmod-usb-storage, f2fs-tools-selinux, kmod-usb-storage-uas, kmod-usb3, wireguard-tools, openssh-sftp-server, luci-li

[sdwalker/sdwalker.github.io] f8f352: This week's update

2025-01-12 Thread Stephen Walker via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Branch: refs/heads/master Home

Re: [PATCH] selinux-policy: update to version v2.0

2025-01-12 Thread Stefan Hellermann
Hi, I tried it on a armsr virtual machine today and got a few errors. I set the selinux mode to permissive to just watch the audit log, this was the first bootup after sysupgrade, the error on moving sysupgrade.tgz is gone on further startups: Sun Jan 12 17:58:25 2025 user.info kernel: init:

Re: [PATCH] selinux-policy: update to version v2.0

2025-01-12 Thread Dominick Grift
Hi, Thank you for feedback. Comments inline below: Stefan Hellermann writes: > Hi, > > I tried it on a armsr virtual machine today and got a few errors. I > set the selinux mode to permissive to just watch the audit log, this > was the first bootup after sysupgrade, the error on moving > sysupg

Re: [PATCH 1/2] kernel: netdevices: Create Realtek DSA switch packages

2025-01-12 Thread INAGAKI Hiroshi
Hello Linus, On 2025/01/13 8:14, Linus Walleij wrote: ... +$(eval $(call KernelPackage,dsa-realtek-mdio)) + +define KernelPackage/dsa-realtek-smi + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Realtek DSA switches on SMI + DEPENDS:=+kmod-dsa-realtek + KCONFIG:= CONFIG_NET_DSA_REALTEK_SMI + FI

Re: [PATCH] fw4: add masquerade-prefix snat type

2025-01-12 Thread Michael Richardson
Hi, I understand the that this does *NPTv6* RFC6296 when forwarding traffic with source addresses that do not fit into the uplink ISP. You've called this masquerade-prefix, and I think that will confuse people into thinking it's like "NAT44" aka NAPT, when it's different. signature.asc Descri

[PATCH v2 0/2] Convert some users of the MV88E6xxx DSA switch to module

2025-01-12 Thread Linus Walleij
It is perfectly fine to load the MV88E6xxx DSA switch and DSA tagger as modules. Convert a few targets and their images to use this instead of including MV88E6XXX into the kernel config. Kirkwood and ixp4xx are already converted. The two patches to mvebu and qoric can be applied separately, they

[PATCH v2 1/2] mvebu: Switch to use a module for mv88e6xxx

2025-01-12 Thread Linus Walleij
It's possible to add the driver for the Marvell MV88E6xxx DSA switches using a module package rather than to compile it into the kernel. For affected devices this saves a bit of space, typically the DSA core is 600 KB so this and some more is saved for devices with no DSA switch. When adding the p

[PATCH 2/2] gemini: Convert to use module for Realtek switch

2025-01-12 Thread Linus Walleij
Only the DIR-685 uses a Realtek DSA switch currently so convert this platform to load it from a module and save memory on all other devices. At the same time drop the rt2800 PCI package that this device actually isn't using, it needs an out-of-tree wireless driver. Signed-off-by: Linus Walleij -

[PATCH 1/2] kernel: netdevices: Create Realtek DSA switch packages

2025-01-12 Thread Linus Walleij
This adds kernel packages for the Realtek RTL836x switches. My intended usage is for RTL8366RB, but let's package RTL8365MB while we are at it. I did not create separate packages for the two switches, as it complicates things. I have split the switches into MDIO and SMI subvariants as this is how

[PATCH 0/2] gemini: Convert the DSA switches into a module packages

2025-01-12 Thread Linus Walleij
(+), 8 deletions(-) --- base-commit: 277642c035f5a403433f6d24addf021c6485cb79 change-id: 20250112-gemini-rtl-dsa-module-54c870d0860b Best regards, -- Linus Walleij ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org

[PATCH v2 2/2] qoriq: Switch to use a module for mv88e6xxx

2025-01-12 Thread Linus Walleij
It's possible to add the driver for the Marvell MV88E6xxx DSA switches using a module package rather than to compile it into the kernel. For affected devices this saves a bit of space, the DSA core alone is around 600 KB on ARM. I could only find one device actually using this switch (I also check

Re: [PATCH] selinux-policy: update to version v2.0

2025-01-12 Thread Dominick Grift
Dominick Grift writes: > Hi, Thank you for feedback. Comments inline below: > > Stefan Hellermann writes: > >> audit(1736704702.290:4): avc:  denied  { associate } for  pid=1010 >> comm="mv" name="sysupgrade.tgz" scontext=sys.id:sys.role:dos.fs >> tcontext=sys.id:sys.role:xattr.fs tclass=file