11 Commits
Author SHA1 Message Date
Andrea Pesaresi f36067d4e9 mediatek: correct MT7986 system timer rate
Port MediaTek commit 6a4c41c41410 ("fix timer inaccurate"), which
corrects the architected timer rate from 13 MHz to 12,986,200 Hz in the
DTS files for both MT7986A and MT7986B.

Upstream mt7986b.dtsi includes mt7986a.dtsi, so add the corrected rate
once to the common timer node. This makes the architected timer driver
override the 13 MHz value reported by firmware through CNTFRQ_EL0 for
both SoC variants.

The resulting 1062 ppm discrepancy exceeds the kernel's 500 ppm NTP
correction limit. This matches reports of sysntpd remaining saturated at
+500 ppm on the GL-MT6000.

Link: https://github.com/mediatek/mtk-openwrt-feeds/commit/6a4c41c41410cd5042ad10c39da6593ba036283c
Link: https://github.com/openwrt/openwrt/issues/24789
Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
2026-09-07 23:22:33 +01:00
Andrea Pesaresi 065a9b9abc kernel: 6.18: backport ksmbd TCP connection fixes
Backport upstream fixes that enable TCP keepalive on accepted ksmbd
connections and preserve TCP timers for kernel sockets.

This prevents stale ESTABLISHED and FIN-WAIT-1 sockets from exhausting
the per-IP connection limit after clients disconnect unexpectedly.

Refresh the patches against Linux 6.18.44.

Link: https://git.kernel.org/torvalds/c/56549c18a4f75309161ca780feaa4d17904e3ee9
Link: https://git.kernel.org/torvalds/c/80b6367ec37faf61fbd11aae6fae64c51faa5bba
Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24935
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-09-01 21:38:16 +02:00
Andrea Pesaresi dee747c9ef kernel: 6.12: backport ksmbd TCP connection fixes
Backport upstream fixes that enable TCP keepalive on accepted ksmbd
connections and preserve TCP timers for kernel sockets.

This prevents stale ESTABLISHED and FIN-WAIT-1 sockets from exhausting
the per-IP connection limit after clients disconnect unexpectedly.

Refresh the patches against Linux 6.12.105.

Link: https://git.kernel.org/torvalds/c/56549c18a4f75309161ca780feaa4d17904e3ee9
Link: https://git.kernel.org/torvalds/c/80b6367ec37faf61fbd11aae6fae64c51faa5bba
Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24935
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-09-01 21:38:16 +02:00
Andrea Pesaresi d9f4284a71 kernel: 6.12-6.18: move ksmbd signing fix to backports
The multi-iov signing fix has moved from the SMB code-review tree to
ksmbd-for-next.

Move both patches from pending to backport, number them 502 so the v7.1
session teardown fix is applied first, and refresh them for the new
ordering.

Match the continuation-line indentation in the upstream commit.

Link: https://github.com/smfrench/smb3-kernel/commit/a4c06ff2eb66fc704582a443b47798a52c4303e2

Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24804
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-08-21 17:44:35 +02:00
Andrea Pesaresi c53603002d kernel: 6.12-6.18: backport ksmbd session teardown fix
Backport the upstream ksmbd file-lifetime hardening for session and tree
connection teardown. The fix closes races that can corrupt file lists,
over-release or leak file references, and sleep while holding the file
table spinlock.

Refresh the patches against Linux 6.12.103 and 6.18.44.

Link: https://git.kernel.org/torvalds/c/a42896bebfcc

Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24804
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-08-21 17:44:34 +02:00
Andrea Pesaresi eaa7fab3e1 kernel: 6.18: backport ksmbd multi-iov signing fix
Backport the ksmbd fix for signing responses whose SMB header and payload
are stored in separate iovecs. The existing code only handles SMB2 READ
specially, causing QUERY_INFO and CHANGE_NOTIFY responses to omit the
header from the signature and be rejected by Windows clients.

The change is queued in the SMB maintainer code-review tree. Refresh the
patch against Linux 6.18.44.

Link: https://github.com/smfrench/smb3-kernel/commit/a99deddaa603c56e824e0916d433e7f7d3015f53
Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24657
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-08-20 09:11:24 +02:00
Andrea Pesaresi a35257c120 kernel: 6.12: backport ksmbd multi-iov signing fix
Backport the ksmbd fix for signing responses whose SMB header and payload
are stored in separate iovecs. The existing code only handles SMB2 READ
specially, causing QUERY_INFO and CHANGE_NOTIFY responses to omit the
header from the signature and be rejected by Windows clients.

The change is queued in the SMB maintainer code-review tree. Refresh the
patch against Linux 6.12.103.

Link: https://github.com/smfrench/smb3-kernel/commit/a99deddaa603c56e824e0916d433e7f7d3015f53
Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24657
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-08-20 09:11:23 +02:00
Andrea Pesaresi e78f000869 kernel: ksmbd: add max ip connection parameter
With this patch is set the maximum number of connections per ip address instead of no control.
The default is 8.

Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20377
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-10-15 23:39:37 +02:00
Andrea Pesaresi 711e14af79 kernel: ksmbd: browse-interfaces-list-on-FSCTL_QUERY_INTERFACE_INFO
backport from kernel 6.12

ksmbd.mount will give each interfaces list and bind_interfaces_only flags
to ksmbd server. Previously, the interfaces list was sent only
when bind_interfaces_only was enabled.
ksmbd server browse only interfaces list given from ksmbd.conf on
FSCTL_QUERY_INTERFACE_INFO IOCTL.

Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20377
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-10-15 23:39:33 +02:00
Andrea Pesaresi 18bdeda011 kernel: ksmbd: revert upstream limit repeated connection
The upstream commit https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/fs/smb?h=linux-6.6.y&id=fa1c47af4ff641cf9197ecdb1f8240cbb30389c1
and the extended for ipv6 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/fs/smb?h=linux-6.6.y&id=d9e157fcfebc126cd19b2333a6417a840c24e529
cause a regression if you try to get a connection on nautilus by a double click on share name.
When you do a double click on share name Nautilus try to connect two times, and ksmbd refusing it.
An issue is opened here https://github.com/namjaejeon/ksmbd/issues/512, at the moment, until we don't have a fix upstream I suggest to revert these two commits.

Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20192
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-10-05 00:17:02 +02:00
Andrea Pesaresi 9454331b7f ethtool: update to 6.11
Version 6.11 - October 8, 2024
	* Feature: cmis: print active and inactive firmware versions
	* Feature: flash transceiver module firmware (--flash-module-firmware)
	* Feature: add T1BRR 10Mb/s mode to link mode tables
	* Feature: support for disabling netlink from command line
	* Fix: fix lanes parameter format specifier
	* Fix: add missing clause 33 PSE manual description
	* Fix: qsf: Better handling of Page A2h netlink read failure
	* Fix: rss: retrieve ring count using ETHTOOL_GRXRINGS ioctl (-x)
	* Misc: man page formatting fix

* changelog here: https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/NEWS?id=c0ea4b70c71334ef038f7a3416b228a50dada406

Tested on gl.inet MT6000, retrieve ring count is now working

Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17607
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-01-19 11:58:06 +01:00