From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0DCB2158094 for ; Tue, 2 Aug 2022 17:36:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 362D1E08DD; Tue, 2 Aug 2022 17:36:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17953E08DD for ; Tue, 2 Aug 2022 17:36:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 14B3934105C for ; Tue, 2 Aug 2022 17:36:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9F0D6544 for ; Tue, 2 Aug 2022 17:36:27 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1659461752.b74666ef91c8b5a079782b77e86e3fb01ffb5807.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/r8168/files/, net-misc/r8168/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch net-misc/r8168/r8168-8.050.03.ebuild X-VCS-Directories: net-misc/r8168/ net-misc/r8168/files/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: b74666ef91c8b5a079782b77e86e3fb01ffb5807 X-VCS-Branch: master Date: Tue, 2 Aug 2022 17:36:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0ba88786-685d-4622-b3a9-307836d8402d X-Archives-Hash: 2fa4f43d994acee4d17dc2a4d130868f commit: b74666ef91c8b5a079782b77e86e3fb01ffb5807 Author: Pacho Ramos gentoo org> AuthorDate: Tue Aug 2 17:35:52 2022 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Tue Aug 2 17:35:52 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b74666ef net-misc/r8168: Fix kernel 5.19 support Thanks-to: Peter Levine Closes: https://bugs.gentoo.org/862609 Signed-off-by: Pacho Ramos gentoo.org> net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch | 23 ++++++++++++++++++++++ net-misc/r8168/r8168-8.050.03.ebuild | 1 + 2 files changed, 24 insertions(+) diff --git a/net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch b/net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch new file mode 100644 index 000000000000..d0f5d30ada06 --- /dev/null +++ b/net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch @@ -0,0 +1,23 @@ +From: Andrea Righi +Subject: support linux 5.19 + +Index: r8168-8.050.03/src/r8168_n.c +=================================================================== +--- r8168-8.050.03.orig/src/r8168_n.c ++++ r8168-8.050.03/src/r8168_n.c +@@ -116,6 +116,15 @@ + #define FIRMWARE_8168FP_3 "rtl_nic/rtl8168fp-3.fw" + #define FIRMWARE_8168FP_4 "rtl_nic/rtl8168fp-4.fw" + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) ++static inline void netif_set_gso_max_size(struct net_device *dev, ++ unsigned int size) ++{ ++ /* dev->gso_max_size is read locklessly from sk_setup_caps() */ ++ WRITE_ONCE(dev->gso_max_size, size); ++} ++#endif ++ + /* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). + The RTL chips use a 64 element hash table based on the Ethernet CRC. */ + static const int multicast_filter_limit = 32; diff --git a/net-misc/r8168/r8168-8.050.03.ebuild b/net-misc/r8168/r8168-8.050.03.ebuild index 33393afdbf6a..b2ff7ea4f8a6 100644 --- a/net-misc/r8168/r8168-8.050.03.ebuild +++ b/net-misc/r8168/r8168-8.050.03.ebuild @@ -26,6 +26,7 @@ WARNING_R8169="CONFIG_R8169 is enabled. ${P} will not be loaded unless kernel dr PATCHES=( "${FILESDIR}/r8168-8.050.02-5.18-fix.patch" + "${FILESDIR}/r8168-8.050.03-5.19-fix.patch" ) pkg_setup() {