package/r8125: update to 9.012.03-1

This commit is contained in:
Liangbin Lian 2024-02-18 15:22:53 +08:00
parent 8661954b38
commit 1768e60f69
6 changed files with 7 additions and 42 deletions

View File

@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=r8125
PKG_VERSION:=9.010.01-2
PKG_VERSION:=9.012.03-1
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/awesometic/realtek-r8125-dkms/tar.gz/$(PKG_VERSION)?
PKG_HASH:=b3e1b36578ba92a775049535e7434a9fc46710a721846c3706aca3d265db8cb9
PKG_HASH:=7964aacf4a2873cbe4133aeca830bd0725f819ea286bab162026ff283510144f
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILE:=LICENSE

View File

@ -19,4 +19,4 @@
+ENABLE_RSS_SUPPORT = y
ENABLE_LIB_SUPPORT = n
ENABLE_USE_FIRMWARE_FILE = n
DISABLE_PM_SUPPORT = n
DISABLE_WOL_SUPPORT = n

View File

@ -1,34 +0,0 @@
From 4fc5fb85fea59b67d15aeca72022b26a2f04e5db Mon Sep 17 00:00:00 2001
From: jjm2473 <1129525450@qq.com>
Date: Tue, 8 Nov 2022 11:34:00 +0800
Subject: [PATCH] default enable tso
---
src/r8125_n.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/r8125_n.c b/src/r8125_n.c
index 3c2866e..2edeaba 100755
--- a/src/r8125_n.c
+++ b/src/r8125_n.c
@@ -12711,7 +12711,7 @@ rtl8125_init_one(struct pci_dev *pdev,
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)
tp->cp_cmd |= RxChkSum;
#else
- dev->features |= NETIF_F_RXCSUM;
+ dev->features |= NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_TSO;
dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO |
NETIF_F_RXCSUM | NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
dev->vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO |
@@ -12723,7 +12723,7 @@ rtl8125_init_one(struct pci_dev *pdev,
dev->hw_features |= NETIF_F_RXFCS;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
dev->hw_features |= NETIF_F_IPV6_CSUM | NETIF_F_TSO6;
- dev->features |= NETIF_F_IPV6_CSUM;
+ dev->features |= NETIF_F_IPV6_CSUM | NETIF_F_TSO6;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)
netif_set_tso_max_size(dev, LSO_64K);
netif_set_tso_max_segs(dev, NIC_MAX_PHYS_BUF_COUNT_LSO2);
--
2.31.0

View File

@ -1,6 +1,6 @@
--- a/src/r8125_rss.c
+++ b/src/r8125_rss.c
@@ -88,8 +88,6 @@ int rtl8125_get_rxnfc(struct net_device
@@ -91,8 +91,6 @@ int rtl8125_get_rxnfc(struct net_device
struct rtl8125_private *tp = netdev_priv(dev);
int ret = -EOPNOTSUPP;

View File

@ -8,7 +8,7 @@
#include <linux/if_vlan.h>
#include <linux/crc32.h>
#include <linux/interrupt.h>
@@ -10416,6 +10417,23 @@ rtl8125_setup_mqs_reg(struct rtl8125_pri
@@ -14818,6 +14819,23 @@ rtl8125_setup_mqs_reg(struct rtl8125_pri
}
}
@ -32,7 +32,7 @@
static void
rtl8125_init_software_variable(struct net_device *dev)
{
@@ -10847,6 +10865,8 @@ rtl8125_init_software_variable(struct ne
@@ -15384,6 +15402,8 @@ rtl8125_init_software_variable(struct ne
if (tp->InitRxDescType == RX_DESC_RING_TYPE_3)
tp->rtl8125_rx_config |= EnableRxDescV3;

View File

@ -9,10 +9,9 @@ so we report 2500baseX instead
---
diff --git a/src/r8125_n.c b/src/r8125_n.c
--- a/src/r8125_n.c
+++ b/src/r8125_n.c
@@ -5014,14 +5014,10 @@ static void rtl8125_gset_xmii(struct net
@@ -6336,14 +6336,10 @@ static void rtl8125_gset_xmii(struct net
lpa_adv);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0)
if (supported & SUPPORTED_2500baseX_Full) {