openwrt/staging/wigyori.git
7 months agocv18x0: add new target for Sophgo CV18x0 RISC-V SoCs
Zoltan HERPAI [Wed, 4 Oct 2023 15:28:54 +0000 (17:28 +0200)]
cv18x0: add new target for Sophgo CV18x0 RISC-V SoCs

Initially targeting the Milk-V Duo+dock board.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoleon: refresh patches to apply/compile on 5.15
Zoltan HERPAI [Fri, 18 Aug 2023 07:27:03 +0000 (09:27 +0200)]
leon: refresh patches to apply/compile on 5.15

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoleon: drop sparc32 fixups for now
Zoltan HERPAI [Fri, 18 Aug 2023 07:23:25 +0000 (09:23 +0200)]
leon: drop sparc32 fixups for now

With the change to ARCH_ATOMIC in sparc as well, some of these patches don't
apply or compile correctly. Drop them for now, unsure if the CASA extension
is supported by the leon3_generic target.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoleon: add SDK patches from buildroot-2022.02-1.2/5.10.175
Zoltan HERPAI [Fri, 18 Aug 2023 07:22:18 +0000 (09:22 +0200)]
leon: add SDK patches from buildroot-2022.02-1.2/5.10.175

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoleon: bring back / add new target for LEON3 SPARC support
Zoltan HERPAI [Fri, 18 Aug 2023 07:15:50 +0000 (09:15 +0200)]
leon: bring back / add new target for LEON3 SPARC support

This target has been removed in 2014, re-add target with renewed
interest. It will support LEON3/4-based SPARC CPUs, as well as running
images via QEMU/leon3.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoincludes: add LEON3 CFLAGS
Zoltan HERPAI [Fri, 18 Aug 2023 07:14:47 +0000 (09:14 +0200)]
includes: add LEON3 CFLAGS

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agotoolchain: gcc: add compile opts for upcoming LEON support
Zoltan HERPAI [Fri, 18 Aug 2023 07:13:49 +0000 (09:13 +0200)]
toolchain: gcc: add compile opts for upcoming LEON support

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agomodules: block: add mpt3sas support
Zoltan HERPAI [Tue, 24 Oct 2023 16:41:39 +0000 (18:41 +0200)]
modules: block: add mpt3sas support

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agomodules: block: libraid/libsas can build on non-x86 targets
Zoltan HERPAI [Tue, 24 Oct 2023 16:41:02 +0000 (18:41 +0200)]
modules: block: libraid/libsas can build on non-x86 targets

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agomodules: block: add libraid module
Zoltan HERPAI [Tue, 24 Oct 2023 16:40:24 +0000 (18:40 +0200)]
modules: block: add libraid module

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: include the OV5640 dtsi in the BananaPi P2 Zero board
Zoltan HERPAI [Sun, 29 Oct 2023 17:56:14 +0000 (18:56 +0100)]
sunxi: include the OV5640 dtsi in the BananaPi P2 Zero board

root@OpenWrt:/# v4l2-ctl -D
Driver Info:
        Driver name      : sun6i-csi
        Card type        : sun6i-csi
        Bus info         : platform:1cb0000.camera
        Driver version   : 6.1.55
        Capabilities     : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : sun6i-csi
        Model            : Allwinner A31 CSI Device
        Serial           :
        Bus info         : platform:1cb0000.camera
        Media version    : 6.1.55
        Hardware revision: 0x00000000 (0)
        Driver version   : 6.1.55
Interface Info:
        ID               : 0x03000003
        Type             : V4L Video
Entity Info:
        ID               : 0x00000001 (1)
        Name             : sun6i-csi
        Function         : V4L2 I/O
        Pad 0x01000002   : 0: Sink, Must Connect
          Link 0x02000007: from remote pad 0x1000006 of entity 'ov5640 2-003c' (Camera Sensor): Data, Enabled, Immutable

-------------

root@OpenWrt:/# media-ctl /dev/video0 --print-topology
Media controller API version 6.1.55

Media device information
------------------------
driver          sun6i-csi
model           Allwinner A31 CSI Device
serial
bus info        platform:1cb0000.camera
hw revision     0x0
driver version  6.1.55

Device topology
- entity 1: sun6i-csi (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "ov5640 2-003c":0 [ENABLED,IMMUTABLE]

- entity 5: ov5640 2-003c (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev0
        pad0: Source
                [fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range
                 crop.bounds:(0,0)/2624x1964
                 crop:(0,4)/2624x1944]
                -> "sun6i-csi":0 [ENABLED,IMMUTABLE]

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: add OV5640 dtsi camera module for H2/H3 SoCs
Zoltan HERPAI [Sun, 29 Oct 2023 17:55:22 +0000 (18:55 +0100)]
sunxi: add OV5640 dtsi camera module for H2/H3 SoCs

Create a dtsi with an OV5640 camera definition that can be used
as an include in H2/H3 boards.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agomodules: video: extend with CSI plaform and sensor modules
Zoltan HERPAI [Sat, 28 Oct 2023 18:35:57 +0000 (20:35 +0200)]
modules: video: extend with CSI plaform and sensor modules

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: add missing symbol as prep for camera/CSI support
Zoltan HERPAI [Sat, 28 Oct 2023 16:52:30 +0000 (18:52 +0200)]
sunxi: add missing symbol as prep for camera/CSI support

Disable VIDEO_SUN8I_A83T_MIPI_CSI2.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: add support for Merrii A80 (Optimus) devboard
Zoltan HERPAI [Mon, 26 Aug 2019 08:18:39 +0000 (10:18 +0200)]
sunxi: add support for Merrii A80 (Optimus) devboard

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosh775x: add new target to support SH7751R-based (SH4) boards
Zoltan HERPAI [Mon, 26 Aug 2019 14:37:31 +0000 (16:37 +0200)]
sh775x: add new target to support SH7751R-based (SH4) boards

If SH4 hardware is not available for testing, the generated kernel and
rootfs can happily start up in qemu:

qemu-system-sh4 -M r2d -nographic -no-reboot -kernel openwrt-sh775x-zImage \
-append "console=ttySC1 noiotrap root=/dev/sda" -monitor null -serial null \
-serial stdio -drive file=openwrt-sh775x-rootfs-ext4.img,format=raw

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agomusl: sh4: add missing bits/reg.h
Zoltan HERPAI [Tue, 24 Oct 2023 20:49:58 +0000 (22:49 +0200)]
musl: sh4: add missing bits/reg.h

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agogeneric: add missing symbols for SH4
Zoltan HERPAI [Fri, 1 Apr 2022 08:35:56 +0000 (10:35 +0200)]
generic: add missing symbols for SH4

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agogcc: add multilib m4/m4-nofpu config for sh4
Zoltan HERPAI [Sun, 30 Jan 2022 12:47:12 +0000 (13:47 +0100)]
gcc: add multilib m4/m4-nofpu config for sh4

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoutil-linux: test_enosys: add support for SH
Zoltan HERPAI [Wed, 9 Aug 2023 11:06:17 +0000 (13:06 +0200)]
util-linux: test_enosys: add support for SH

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoshmin: add new SH3-target
Zoltan HERPAI [Mon, 26 Aug 2019 15:04:33 +0000 (17:04 +0200)]
shmin: add new SH3-target

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: t113: add an extra step to copy u-boot into bin/ for eMMC boot support
Zoltan HERPAI [Sat, 26 Aug 2023 23:43:32 +0000 (01:43 +0200)]
sunxi: t113: add an extra step to copy u-boot into bin/ for eMMC boot support

Put an u-boot.bin into bin/ to make it easier for picking it to
install onto mmcblk1boot0.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: t113: add eMMC image generation support
Zoltan HERPAI [Thu, 31 Aug 2023 21:35:27 +0000 (23:35 +0200)]
sunxi: t113: add eMMC image generation support

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: add T113-S3 support
Zoltan HERPAI [Thu, 8 Jun 2023 09:41:03 +0000 (11:41 +0200)]
sunxi: add T113-S3 support

Add support for the T113 family, along with 4 boards.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agouboot-sunxi: add T113-S3 support
Zoltan HERPAI [Thu, 8 Jun 2023 09:40:01 +0000 (11:40 +0200)]
uboot-sunxi: add T113-S3 support

Add support for the T113 family, along with 4 boards.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: add F1C100 (arm926ej-s) support
Zoltan HERPAI [Wed, 13 Mar 2019 23:24:50 +0000 (00:24 +0100)]
sunxi: add F1C100 (arm926ej-s) support

This is Allwinner's ARM926EJ-S core, which is one of its early
products, reappearing in recent compact designs. The SoC includes
32/64Mb memory in the same physical package, and has display and USB
interfaces, allowing for very small footprint boards.

The target consists of basic 6.6 support, with u-boot. Instead of creating
a separate suniv target, as both the kernel and u-boot supports enough of
this SoC by now with minimal patching, add it into sunxi as a subtarget.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: drop 6.1 support
Zoltan HERPAI [Mon, 29 Apr 2024 07:52:51 +0000 (09:52 +0200)]
sunxi: drop 6.1 support

Now that 6.6 is the default, remove the 6.1 config and the hack that
was required for the arm32 DTS dir change.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: switch default to 6.6
Zoltan HERPAI [Mon, 29 Apr 2024 07:51:16 +0000 (09:51 +0200)]
sunxi: switch default to 6.6

Change the default kernel to 6.6.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agompc85xx: convert WS-AP3710i to simpleImage wrapper
David Bauer [Thu, 25 Apr 2024 14:53:55 +0000 (16:53 +0200)]
mpc85xx: convert WS-AP3710i to simpleImage wrapper

Convert the Enterasys WS-AP3710i access point to use the simpleImage
wrapper.

This is necessary, as the bootlaoder does not align the DTB correctly
(and does not support altering the FDT loadaddress). Booting images with
kernels 5.15 and later can break depending on the alignment on the DTB
within the FIT image.

Signed-off-by: David Bauer <mail@david-bauer.net>
7 months agombedtls: Remove Kconfig options removed from mbedtls 3.6.0
Hauke Mehrtens [Sun, 28 Apr 2024 23:29:52 +0000 (01:29 +0200)]
mbedtls: Remove Kconfig options removed from mbedtls 3.6.0

These options are not available in mbedtls 3.6.0 and selecting them
causes an error.

MBEDTLS_CERTS_C was removed in:
https://github.com/Mbed-TLS/mbedtls/commit/1aec64642cd0b9490c96fdd1fa9816741d93fce4

MBEDTLS_XTEA_C was removed in:
https://github.com/Mbed-TLS/mbedtls/commit/10e8cf5fef7e062927bfbec69ad85fbf491b4299

MBEDTLS_SSL_TRUNCATED_HMAC was removed in:
https://github.com/Mbed-TLS/mbedtls/commit/4a7010d1aaae937dfa328ef253d70d04b3b260ff

Fixes: 0e0664264386 ("mbedtls: Update to version 3.6.0")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agolibaudit: update to 3.1.4, join with daemon and utils, rename
Marius Dinu [Sun, 31 Mar 2024 11:22:18 +0000 (14:22 +0300)]
libaudit: update to 3.1.4, join with daemon and utils, rename

Changes:
- new URL for sources (old address is dead)
- daemon and utils from packages feed are merged in here
  - only build once
  - no need to update at the same time in both places
- update to v3.1.4
  - removed unneeded patches
  - added audisp-syslog
  - removed audispd (no longer exists)
- rename and move to package/utils/audit
  - update new path in one dependent package

Signed-off-by: Marius Dinu <m95d+git@psihoexpert.ro>
7 months agotoolchain: binutils: switch to version 2.42 by default
Nick Hainke [Wed, 7 Feb 2024 11:27:55 +0000 (12:27 +0100)]
toolchain: binutils: switch to version 2.42 by default

Change the default binutils version to 2.42.

Tested-by: Jonathan Lancett <j.lancett@ntlworld.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agomalta: refresh kernel 6.6 configuration
Hauke Mehrtens [Wed, 13 Mar 2024 16:58:21 +0000 (17:58 +0100)]
malta: refresh kernel 6.6 configuration

This refreshes the configuration on top of kernel 6.6 and activates it
as test kernel configuration.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agokernel/malta: Restore kernel files for v6.1
Tony Ambardar [Sat, 20 Apr 2024 02:31:42 +0000 (19:31 -0700)]
kernel/malta: Restore kernel files for v6.1

This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agokernel/malta: Create kernel files for v6.6 (from v6.1)
Tony Ambardar [Sat, 20 Apr 2024 02:31:42 +0000 (19:31 -0700)]
kernel/malta: Create kernel files for v6.6 (from v6.1)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agoscripts/kernel_bump: Fix commit text formatting
Tony Ambardar [Sat, 20 Apr 2024 04:42:53 +0000 (21:42 -0700)]
scripts/kernel_bump: Fix commit text formatting

Text of a commit message body should wrap at 75 characters. Manual commits
are expected to do so, but automated commits *must* do so to avoid adding
repeated ugly commits.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agouqmi: set dangling-pointer as error
Jean Thomas [Wed, 24 Apr 2024 11:12:11 +0000 (13:12 +0200)]
uqmi: set dangling-pointer as error

With "ebfe8b4 CMakeLists: set no-dangling-pointer" the compilation
option is set in uqmi, and can therefore be removed from no-error.

Signed-off-by: Jean Thomas <jean.thomas@wifirst.fr>
7 months agouqmi: update to git HEAD
Jean Thomas [Wed, 24 Apr 2024 09:36:26 +0000 (11:36 +0200)]
uqmi: update to git HEAD

e7207be uqmi: print radio interfaces in serving system command
6ef41d6 uqmi: create function to print radio interface string
e25d042 uqmi: Add basic 5G NR support
3e782be uqmi: sync data from libqmi project
368d46c uqmi: support C reserved keywords in upstream JSON files
02e42c0 reorganize source code in common and uqmi specific parts
4591f0a .gitignore build/ directories
2b57ee1 uqmi: commands-uim: fix uninitialized use of card_application_state
7c77e77 data/code-gen: add support for indications
ddbf864 qmi-struct.h: add missing includes
5320c1d move qmi_get_error_str to into utils.c
1503bc7 dev.c: add missing import strings.h
bae945f commands-nas: add missing includes
9ffd0e2 commands: make `struct blob_buf status` public
a4fbdcc commands-nas: fix gcc warning
8ff632a dev.c: add comment to qmi_request_wait()
a043a74 CMakeLists: refactor SOURCES variable to allow later adding uqmid
ebfe8b4 CMakeLists: set no-dangling-pointer
c47125d CMakeLists: improve generated files
0f64b69 CMakeLists: update cmake minimum version to 3.5

As the built uqmi binary is now moved to a dedicated directory,
update the Makefile accordingly.

Signed-off-by: Jean Thomas <jean.thomas@wifirst.fr>
7 months agolibunwind: update to 1.8.1
Weijie Gao [Thu, 14 Mar 2024 13:56:38 +0000 (21:56 +0800)]
libunwind: update to 1.8.1

Rebased patches:
- 003-fix-missing-ef_reg-defs-with-musl.patch
- 004-ppc-musl.patch

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
7 months agogrub2: update to 2.12
Weijie Gao [Sat, 6 Jan 2024 19:35:39 +0000 (03:35 +0800)]
grub2: update to 2.12

compile tested: x86_64,i386,loongarch64

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
{Refresh patches}
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agomediatek: bpi-r4: store random MAC addresses for the BPi-R4
Daniel Golle [Sun, 28 Apr 2024 02:03:43 +0000 (03:03 +0100)]
mediatek: bpi-r4: store random MAC addresses for the BPi-R4

Despite coming with multiple I2C EEPROMs supposedly dedicated for that
purpose, the BPi-R4 does not seem to have factory assigned MAC addresses.
Hence, just like for all other BPi boards, store a randomly generated
MAC address on first boot and derive WAN and Wi-Fi MAC addresses from
that as well. Not perfect, but better than random on every boot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agomediatek: bpi-r3-mini: persist WiFi and WAN MAC addresses
Daniel Golle [Sun, 28 Apr 2024 02:00:50 +0000 (03:00 +0100)]
mediatek: bpi-r3-mini: persist WiFi and WAN MAC addresses

Derive WAN and WiFi MAC addresses from the (random) MAC address stored
in the U-Boot environment.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agokernel: bump 6.6 to 6.6.29
John Audia [Sun, 28 Apr 2024 06:25:30 +0000 (02:25 -0400)]
kernel: bump 6.6 to 6.6.29

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.29

Removed upstreamed:
generic/backport-6.6/740-v6.9-01-netfilter-flowtable-validate-pppoe-header.patch[1]
generic/backport-6.6/740-v6.9-02-netfilter-flowtable-incorrect-pppoe-tuple.patch[2]
generic/backport-6.6/790-29-v6.9-net-dsa-mt7530-fix-improper-frames-on-all-25MHz-and-.patch[3]
generic/backport-6.6/790-31-v6.10-net-dsa-mt7530-fix-enabling-EEE-on-MT7531-switch-on-.patch[4]
generic/backport-6.6/790-34-v6.10-net-dsa-mt7530-fix-mirroring-frames-received-on-loca.patch[5]
generic/backport-6.6/790-35-v6.10-net-dsa-mt7530-fix-port-mirroring-for-MT7988-SoC-swi.patch[6]
mediatek/patches-6.6/963-net-ethernet-mtk_eth_soc-fix-WED-wifi-reset.patch[7]

Manually rebased:
generic/backport-6.6/790-23-v6.9-net-dsa-mt7530-get-rid-of-priv-info-cpu_port_config.patch

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=a2471d271042ea18e8a6babc132a8716bb2f08b9
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=4ed82dd368ad883dc4284292937b882f044e625d
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=21b9d89d93422221cdda1b82fd075fa3c94a11d9
4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=bd41ee1efd478852a0882ce5f136bc2b5e83eff2
5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=d1be3960539249a8690ed09a29d0e3bf34189dd2
6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=f8de1b6208bf71bd3102548d33dd8475573ad2ea
7. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=6855f724f19620c3ddff57c349e0abba797475b1

Build system: x86/64
Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
7 months agombedtls: Update to version 3.6.0
Hauke Mehrtens [Wed, 8 Nov 2023 23:00:09 +0000 (00:00 +0100)]
mbedtls: Update to version 3.6.0

This adds support for mbedtls 3.6.0.
The 3.6 version is the next LTS version of mbedtls.
This version supports TLS 1.3.

This switches to download using git. The codeload tar file misses some
git submodules.

Add some extra options added in mbedtls 3.6.0.

The size of the compressed ipkg increases:
230933 bin/packages/mips_24kc/base/libmbedtls13_2.28.7-r2_mips_24kc.ipk
300154 bin/packages/mips_24kc/base/libmbedtls14_3.6.0-r1_mips_24kc.ipk

The removed patch was integrated upstream.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agohostapd: Fix compile against mbedtsl 3.6
Hauke Mehrtens [Mon, 8 Apr 2024 20:06:08 +0000 (22:06 +0200)]
hostapd: Fix compile against mbedtsl 3.6

Fix compile of the mbedtls extension for hostapd.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agouencrypt: Fix mbedtls 3.6 compatibility
Hauke Mehrtens [Sun, 7 Apr 2024 20:47:26 +0000 (22:47 +0200)]
uencrypt: Fix mbedtls 3.6 compatibility

This makes it compile with mbedtls 3.6.0.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agouencrypt: Fix compile warnings
Hauke Mehrtens [Sun, 7 Apr 2024 20:46:13 +0000 (22:46 +0200)]
uencrypt: Fix compile warnings

keylen and ivlen are of type long and not size_t.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agoat91: 5.15: remove old config and patch files
Nick Hainke [Mon, 22 Apr 2024 08:16:11 +0000 (10:16 +0200)]
at91: 5.15: remove old config and patch files

6.1 is now default so remove old config and patch files.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agoat91: set 6.1 as default kernel version
Nick Hainke [Mon, 22 Apr 2024 08:18:02 +0000 (10:18 +0200)]
at91: set 6.1 as default kernel version

Adjust the kernel version to default 6.1 in order to facilitate testing
for a broader audience.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agozynq: 6.1: set testing kernel
Nick Hainke [Wed, 17 Apr 2024 15:25:44 +0000 (17:25 +0200)]
zynq: 6.1: set testing kernel

Allow selecting 6.1 as testing kernel on zynq.

Tested-by: Luis Araneda <luaraneda@gmail.com> # Zybo Z7-20
Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agozynq: 6.1: refresh kernel config
Nick Hainke [Wed, 17 Apr 2024 15:28:49 +0000 (17:28 +0200)]
zynq: 6.1: refresh kernel config

Refresh the kernel config by runnnig make kernel_menuconfig.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agokernel/zynq: Restore kernel files for v5.15
Nick Hainke [Wed, 17 Apr 2024 15:23:47 +0000 (17:23 +0200)]
kernel/zynq: Restore kernel files for v5.15

This is an automatically generated commit which aids following Kernel patch history,
as git will see the move and copy as a rename thus defeating the purpose.

See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html
for the original discussion.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agokernel/zynq: Create kernel files for v6.1 (from v5.15)
Nick Hainke [Wed, 17 Apr 2024 15:23:47 +0000 (17:23 +0200)]
kernel/zynq: Create kernel files for v6.1 (from v5.15)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agouboot-mvebu: backport patch for Turris Omnia to enable LTO
Josef Schlehofer [Sun, 28 Apr 2024 07:24:29 +0000 (09:24 +0200)]
uboot-mvebu: backport patch for Turris Omnia to enable LTO

Fixes issue while building package uboot-mvebu on OpenWrt 23.05:

u-boot-with-spl.kwb exceeds file size limit:
  limit:  0xf0000 bytes
  actual: 0xf0100 bytes
  excess: 0x100 bytes
make[3]: *** [Makefile:1466: u-boot-with-spl.kwb] Error 1
make[3]: *** Deleting file 'u-boot-with-spl.kwb'
make[3]: Leaving directory '/workspaces/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/u-boot-omnia/u-boot-2024.04'
make[2]: *** [Makefile:83: /workspaces/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/u-boot-omnia/u-boot-2024.04/.built] Error 2

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15307
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agoipq40xx: refresh patches again
Robert Marko [Sun, 28 Apr 2024 09:00:58 +0000 (11:00 +0200)]
ipq40xx: refresh patches again

CI tells us that we need to, so lets refresh them.

Fixes: 4265fe9348c0 ("ipq40xx: refresh patches")
Link: https://github.com/openwrt/openwrt/pull/15310
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agopackage/network/utils/iptables: fix PKG_CPE_ID
Fabrice Fontaine [Sat, 27 Apr 2024 15:25:58 +0000 (17:25 +0200)]
package/network/utils/iptables: fix PKG_CPE_ID

cpe:/a:netfilter:iptables is the correct CPE ID for iptables:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:netfilter:iptables

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15297
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agopackage/libs/libjson-c: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 15:47:24 +0000 (17:47 +0200)]
package/libs/libjson-c: fix PKG_CPE_ID

cpe:/a:json-c:json-c is the correct CPE ID for libjson-c:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:json-c:json-c

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15292
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agopackage/network/services/dropbear: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 14:09:32 +0000 (16:09 +0200)]
package/network/services/dropbear: fix PKG_CPE_ID

cpe:/a:dropbear_ssh_project:dropbear_ssh is the correct CPE ID for dropbear:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:dropbear_ssh_project:dropbear_ssh

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15290
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agotools/expat: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 09:24:41 +0000 (11:24 +0200)]
tools/expat: fix PKG_CPE_ID

cpe:/a:libexpat_project:libexpat is the correct CPE ID for expat:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:libexpat:libexpat

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15291
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agoipq-wifi: correct PKG_MIRROR_HASH
Robert Marko [Sat, 27 Apr 2024 13:46:58 +0000 (15:46 +0200)]
ipq-wifi: correct PKG_MIRROR_HASH

It seems that somehow a wrong hash has been used for ipq-wifi, so refresh
it.

Fixes: f10d55df9e0a ("ipq-wifi: update to Git HEAD (2024-04-26)")
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agoipq40xx: refresh patches
Robert Marko [Sat, 27 Apr 2024 13:44:57 +0000 (15:44 +0200)]
ipq40xx: refresh patches

CI tells us that we need to, so lets refresh them.

Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agonetifd: packet_steering: fix shell error on unset steering_flows option
Felix Fietkau [Sat, 27 Apr 2024 18:59:43 +0000 (20:59 +0200)]
netifd: packet_steering: fix shell error on unset steering_flows option

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agonetifd: fix bogus warnings in packet_steering init script
Felix Fietkau [Sat, 27 Apr 2024 18:57:00 +0000 (20:57 +0200)]
netifd: fix bogus warnings in packet_steering init script

Avoids warnings if options are unset

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agokernel: update fraglist GRO patch to the latest upstream submission
Felix Fietkau [Sat, 27 Apr 2024 18:34:53 +0000 (20:34 +0200)]
kernel: update fraglist GRO patch to the latest upstream submission

Cosmetic fixes + IPv6 NAT support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agokernel: fix crash with multicast-to-unicast and fraglist GRO
Felix Fietkau [Sat, 27 Apr 2024 18:32:59 +0000 (20:32 +0200)]
kernel: fix crash with multicast-to-unicast and fraglist GRO

Avoid calls to skb_copy, which creates invalid packets that cause a crash
on segmentation

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agogeneric: v6.1, v6.6: add patch to fix PHY-muxing on MT7530
Daniel Golle [Sat, 27 Apr 2024 12:05:30 +0000 (13:05 +0100)]
generic: v6.1, v6.6: add patch to fix PHY-muxing on MT7530

Move accepted patches to backport folder, re-add previously removed patch
which caused havoc on MT7621 and add the (still pending) fix.

Fixes: d40691a5fb ("generic: 6.1, 6.6: mt7530: import pending patches")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agokernel: generic backport 6.1: rename mistyped .patch file
Antonio Flores [Fri, 26 Apr 2024 23:16:04 +0000 (19:16 -0400)]
kernel: generic backport 6.1: rename mistyped .patch file

Rename mistyped file .patc to patch

Fixes: ac8bfe316b ("generic: 6.1, 6.6: mt7530: import accepted patches")
Signed-off-by: Antonio Flores <antflores627@gmail.com>
7 months agoubox: update to Git HEAD (2024-04-26)
Robert Marko [Sat, 27 Apr 2024 09:56:14 +0000 (11:56 +0200)]
ubox: update to Git HEAD (2024-04-26)

85f1053019ca kmodloader: fix insmod path logic

Signed-off-by: Robert Marko <robimarko@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15288
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agobcm4908: set kernel 6.6 as a testing version
Mieczyslaw Nalewaj [Fri, 19 Apr 2024 06:34:20 +0000 (08:34 +0200)]
bcm4908: set kernel 6.6 as a testing version

Add kernel 6.6 for testing.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agobcm4908: remove 5.15 support
Mieczyslaw Nalewaj [Fri, 19 Apr 2024 06:31:00 +0000 (08:31 +0200)]
bcm4908: remove 5.15 support

Now that 6.1 is default, remove 5.15 support.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agolldpd: fix reload bug: advertisements shall default to on
Paul Donald [Mon, 22 Apr 2024 13:17:33 +0000 (15:17 +0200)]
lldpd: fix reload bug: advertisements shall default to on

Because these capability advertisements default to on in lldpd, they
became absent at reload, and not restart, due to how the reload logic
works ( keep daemon running, send unconfigured and then the new config
via socket ), and it was not evident unless you happened to be looking
for it (e.g. via pcap or tcpdump). It was also not evident from the
manpage ( have now sent patches upstream ).

At reload time, the unconfigure logic disabled them unless they were
explicitly enabled (compare with other settings where 'unconfigure' just
resets them). Now they default to on/enabled at init time, and are
explicitly 'unconfigure'd at startup if the user disables them via:

lldp_mgmt_addr_advertisements=0
lldp_capability_advertisements=0

In other words: explicit is necessary to disable the advertisements.

The same applies to 'configure system capabilities enabled'. Technically
'unconfigure'd is the default but now it is explicit at reload.

Tested on: 23.05.3

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
7 months agotoolchain/nasm: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 08:41:15 +0000 (10:41 +0200)]
toolchain/nasm: fix PKG_CPE_ID

cpe:/a:nasm:netwide_assembler is the correct CPE ID for nasm:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:nasm:netwide_assembler

Fixes: bcf02c5d3123a99c717ca33f1d7c6250acf0f33f (toolchain: assign PKG_CPE_ID)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 months agotools/flex: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 08:51:16 +0000 (10:51 +0200)]
tools/flex: fix PKG_CPE_ID

cpe:/a:westes:flex is the correct CPE ID for flex:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:westes:flex

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 months agotools/zlib: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 08:59:58 +0000 (10:59 +0200)]
tools/zlib: fix PKG_CPE_ID

cpe:/a:zlib:zlib is the correct CPE ID for zlib:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:zlib:zlib

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 months agopackage/libs/pcre2: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 13:09:50 +0000 (15:09 +0200)]
package/libs/pcre2: fix PKG_CPE_ID

cpe:/a:pcre:pcre2 is the correct CPE ID for pcre2:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:pcre:pcre2

Fixes: c39b0646f3f2d96d40f601209859175af8537b6d (pcre2: import pcre2 from packages feed)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 months agoqualcommax: IPQ807x: ZyXEL NBG7815: Fix random Wifi MAC
Ulrich Stark [Thu, 25 Apr 2024 11:17:53 +0000 (13:17 +0200)]
qualcommax: IPQ807x: ZyXEL NBG7815: Fix random Wifi MAC
For this particualar device we get random MAC's for Wifi on each (re-)boot.
This is because art partition/pre caldata do not contain valid MAC addresses.

As we have now a new/better approach with ath11k_patch_mac we can use it for
this device too.

I'm using this approach for like two weeks and its working flawlessly.

Signed-off-by: Ulrich Stark <pwned-pixel@posteo.de>
qualcommax: IPQ807x: ZyXEL NBG7815: Fix random Wifi MAC
Changing order to 3/phy0/5G-1, 2/phy1/2G, 4/phy2/5G-2.

Signed-off-by: Ulrich Stark <pwned-pixel@posteo.de>
7 months agoustp: update to Git HEAD (2023-05-29)
Paul Donald [Tue, 23 Apr 2024 02:28:38 +0000 (04:28 +0200)]
ustp: update to Git HEAD (2023-05-29)

a85a5bc83bde netif_utils: correctly close fd on read error

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
7 months agoipq40xx: fix USB on Aruba AP-303H
Ryan Salsbury [Sat, 27 Apr 2024 00:27:36 +0000 (17:27 -0700)]
ipq40xx: fix USB on Aruba AP-303H

Enable USB 3.0 controller, disable USB 2.0 controller.

The USB 2.0 port on the AP-303H is actually connected to the USB 3.0
controller's HS phy. Enable the HS phy only, since the SS lanes are not
brought out to the connector.

Signed-off-by: Ryan Salsbury <ryanrs@gmail.com>
7 months agoipq40xx: use nvmem ethernet MACs on Aruba AP-303H
Ryan Salsbury [Sat, 27 Apr 2024 00:35:58 +0000 (17:35 -0700)]
ipq40xx: use nvmem ethernet MACs on Aruba AP-303H

Use NVMEM to assign "factory sticker" MAC address to WAN ethernet
interface. Set LAN address to sticker + 1.

Signed-off-by: Ryan Salsbury <ryanrs@gmail.com>
7 months agogeneric: 6.1, 6.6: remove patch which breaks WAN on MT7621
Daniel Golle [Sat, 27 Apr 2024 02:19:03 +0000 (03:19 +0100)]
generic: 6.1, 6.6: remove patch which breaks WAN on MT7621

Importing pending patch "net: dsa: mt7530: move MT753X_MTRAP operations
for MT7530" broke WAN connectivity on most MT7621 which use PHY-muxing
to hook up either port 0 or port 4 to GMAC1.

Remove it for now until the author submits a fixed version.

Fixes: https://github.com/openwrt/openwrt/issues/15279
Fixes: https://github.com/openwrt/openwrt/issues/15273
Fixes: d40691a5fb ("generic: 6.1, 6.6: mt7530: import pending patches")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agokernel: move mv88e6xxx fix to generic backports
Stijn Tintel [Fri, 26 Apr 2024 16:40:17 +0000 (19:40 +0300)]
kernel: move mv88e6xxx fix to generic backports

The backports introduced in commit d40756563c46 ("kernel: backport
phylink changes from mainline Linux") broke the mv88e6xxx DSA driver.
A backport to fix this was added to the kirkwood target, but as it is
used in multiple targets, and there's a kmod package for it, the fix
should be in generic backports.

This fixes the switch on the WatchGuard Firebox M300 when running the
6.1 testing kernel.

There is no need to backport the fix for the 6.6 kernel, as it was
included in 6.6.5.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 months agoperf: fix build on PowerPC
Stijn Tintel [Fri, 26 Apr 2024 11:41:28 +0000 (14:41 +0300)]
perf: fix build on PowerPC

Building perf's intel-pt-decoder fails on both PPC32 and PPC64:

/home/stijn/Development/OpenWrt/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-13.2.0_musl/lib/gcc/powerpc64-openwrt-linux-musl/13.2.0/../../../../powerpc64-openwrt-linux-musl/bin/ld.bfd:
/home/stijn/Development/OpenWrt/openwrt/build_dir/target-powerpc64_e5500_musl/linux-qoriq_generic/linux-6.1.86/tools/
perf-target-powerpc64_e5500_musl/perf-in.o: in function `insn_set_byte':
/home/stijn/Development/OpenWrt/openwrt/build_dir/target-powerpc64_e5500_musl/linux-qoriq_generic/linux-6.1.86/tools/perf/util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h:64:
undefined reference to `__le32_to_cpu'

Add NO_AUXTRACE=1 to MAKE_FLAGS for LINUX_KARCH powerpc, which disables
build of intel-pt-decoder on both PPC32 and PPC64.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 months agoipq-wifi: update to Git HEAD (2024-04-26)
Christian Marangi [Fri, 26 Apr 2024 11:28:09 +0000 (13:28 +0200)]
ipq-wifi: update to Git HEAD (2024-04-26)

fab9e29f6b92 ipq6018: update regdb in TPLink EAP610-Outdoor BDF
6d02b65fadf3 ipq8074: update RegDB in new submitted BDF
644ba9ea2e66 ipq6018: update RegDB in new submitted BDF

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq40xx: set DEVICE_DTS_DIR to /qcom by default
Christian Marangi [Fri, 26 Apr 2024 10:52:06 +0000 (12:52 +0200)]
ipq40xx: set DEVICE_DTS_DIR to /qcom by default

Set DEVICE_DTS_DIR to /qcom by default instead of limiting it to
TESTING_KERNEL since we moved 6.6 to default version.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq806x: set DEVICE_DTS_DIR to /qcom by default
Christian Marangi [Fri, 26 Apr 2024 10:50:47 +0000 (12:50 +0200)]
ipq806x: set DEVICE_DTS_DIR to /qcom by default

Set DEVICE_DTS_DIR to /qcom by default instead of limiting it to
TESTING_KERNEL since we moved 6.6 to default version.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agobcm53xx: update 600-net-disable-GRO-by-default.patch after recent GRO change
Felix Fietkau [Fri, 26 Apr 2024 10:41:01 +0000 (12:41 +0200)]
bcm53xx: update 600-net-disable-GRO-by-default.patch after recent GRO change

Fixes build error

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agoipq40xx: drop 6.1 support
Christian Marangi [Fri, 26 Apr 2024 10:30:26 +0000 (12:30 +0200)]
ipq40xx: drop 6.1 support

Drop support for ipq40xx for kernel 6.1.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq40xx: switch default to 6.6
Christian Marangi [Fri, 26 Apr 2024 10:29:30 +0000 (12:29 +0200)]
ipq40xx: switch default to 6.6

Switch default kernel version for ipq40xx to 6.6.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq806x: drop 6.1 support
Christian Marangi [Fri, 26 Apr 2024 10:27:21 +0000 (12:27 +0200)]
ipq806x: drop 6.1 support

Drop support for ipq806x for kernel 6.1.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq806x: switch default to 6.6
Christian Marangi [Fri, 26 Apr 2024 10:26:53 +0000 (12:26 +0200)]
ipq806x: switch default to 6.6

Switch default kernel version for ipq806x to 6.6.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoath79: update 900-unaligned_access_hacks.patch after recent GRO change
Felix Fietkau [Fri, 26 Apr 2024 10:24:21 +0000 (12:24 +0200)]
ath79: update 900-unaligned_access_hacks.patch after recent GRO change

Fixes build error

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agosunxi: update the 6.6 DTS_DIR hack
Zoltan HERPAI [Fri, 26 Apr 2024 09:06:17 +0000 (11:06 +0200)]
sunxi: update the 6.6 DTS_DIR hack

Update and simplify the 6.1 vs. 6.6 DTS_DIR hack until 6.1 support is gone.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agonetifd: add flow steering mode to the packet steering script
Felix Fietkau [Wed, 24 Apr 2024 17:23:11 +0000 (19:23 +0200)]
netifd: add flow steering mode to the packet steering script

This allows directing processing of locally received packets to the CPUs
of the tasks receiving them

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agonetifd: add a packet steering mode matching the old script
Felix Fietkau [Wed, 24 Apr 2024 17:16:05 +0000 (19:16 +0200)]
netifd: add a packet steering mode matching the old script

This spreads packet processing across all cores

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agokernel: improve GRO performance
Felix Fietkau [Tue, 23 Apr 2024 10:37:05 +0000 (12:37 +0200)]
kernel: improve GRO performance

For packets not belonging to a local socket, use fraglist GRO instead of
regular GRO. This make segmenting packets very cheap and avoids the need for
selectively disabling GRO

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agokernel: backport flow offload pppoe fix
Felix Fietkau [Tue, 23 Apr 2024 10:08:45 +0000 (12:08 +0200)]
kernel: backport flow offload pppoe fix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agotools/elfutils: refresh portability patch for macOS
Michael Pratt [Mon, 8 Apr 2024 19:15:31 +0000 (15:15 -0400)]
tools/elfutils: refresh portability patch for macOS

Quilt refresh combined two sets of changes to the same file.

The switch from using libgen.h to dirname.h because of function poisoning
from gnulib's import of basename() was added as a new patch hunk instead
of an edit to the original one.

The original patch hunk was to fix build errors on an earlier version of
elfutils before the "dirname" module was being imported to fix further
build errors with the 0.191 version.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/elfutils: remove no-op copy of tdestroy()
Michael Pratt [Mon, 8 Apr 2024 07:54:13 +0000 (03:54 -0400)]
tools/elfutils: remove no-op copy of tdestroy()

A false tdestroy() function was added in order to make elfutils build on
macOS again. A previous commit added declarations for a real version of
tdestroy() into gnulib, which is already imported, as well as the
preprocessor flags and the triggers for the Makefile.am conditional in
order to include the source to be built.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/elfutils: use locally declared static reallocarray()
Michael Pratt [Mon, 8 Apr 2024 03:28:51 +0000 (23:28 -0400)]
tools/elfutils: use locally declared static reallocarray()

On macOS, stdlib.h in the standard include paths does not provide
reallocarray() while both elfutils and gnulib do, however they are
declared differently, leading to an error:

  ./system.h:101:1: error: static declaration of 'reallocarray' follows non-static declaration
  reallocarray (void *ptr, size_t nmemb, size_t size)

A normal "configure && make" build cycle results in both declarations
being enabled as a result of both elfutils and gnulib having completely
separate configure checks where gnulib uses an internal placeholder symbol
HAVE_REALLOCARRAY, and elfutils uses a standard autoconf macro
HAVE_DECL_REALLOCARRAY.

Fix this by excluding the import of the reallocarray module which causes
gnulib checks in the configure stage to not even consider whether to
declare reallocarray later on, so the decision is only between the
standard include stdlib.h and the elfutils header.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/elfutils: organize gnulib import build stage
Michael Pratt [Fri, 5 Apr 2024 08:42:14 +0000 (04:42 -0400)]
tools/elfutils: organize gnulib import build stage

Organize the Makefile lines involved in gnulib importing and its
workarounds. It improves readability and keeps git history organized.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>