mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
r8125: bump to version 9.011.00-1
This commit is contained in:
parent
198e536d15
commit
b570280edf
@ -1,18 +1,18 @@
|
|||||||
# Attribution: https://gist.github.com/lenew/9b41ba901c3393047ede0766760f9d55
|
#
|
||||||
|
# Download realtek r8125 linux driver from official site:
|
||||||
#Put this source to 'package/lean/r8125' folder of OpenWRT/LEDE SDK
|
# [https://www.realtek.com/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software]
|
||||||
#Build(make menuconfig, make defconfig, make)
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=r8125
|
PKG_NAME:=r8125
|
||||||
PKG_VERSION:=9.010.01-2
|
PKG_VERSION:=9.011.00-1
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/awesometic/realtek-r8125-dkms/tar.gz/$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/awesometic/realtek-r8125-dkms/tar.gz/$(PKG_VERSION)?
|
||||||
PKG_HASH:=b3e1b36578ba92a775049535e7434a9fc46710a721846c3706aca3d265db8cb9
|
PKG_HASH:=750a05c05f318fc5e1e05e6b2d1f61a76fffa3133eae1bf9ce5ff6d03ae29cb7
|
||||||
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/realtek-$(PKG_NAME)-dkms-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/realtek-$(PKG_NAME)-dkms-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0-only
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
--- a/src/r8125_n.c
|
|
||||||
+++ b/src/r8125_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, 19, 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;
|
|
28
package/lean/r8125/patches/020-fixes-build-werror.patch
Normal file
28
package/lean/r8125/patches/020-fixes-build-werror.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
--- a/src/r8125_rss.c
|
||||||
|
+++ b/src/r8125_rss.c
|
||||||
|
@@ -57,21 +57,21 @@ static int rtl8125_get_rss_hash_opts(struct rtl8125_private *tp,
|
||||||
|
switch (cmd->flow_type) {
|
||||||
|
case TCP_V4_FLOW:
|
||||||
|
cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
|
||||||
|
- /* fallthrough */
|
||||||
|
+ fallthrough;
|
||||||
|
case UDP_V4_FLOW:
|
||||||
|
if (tp->rss_flags & RTL_8125_RSS_FLAG_HASH_UDP_IPV4)
|
||||||
|
cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
|
||||||
|
- /* fallthrough */
|
||||||
|
+ fallthrough;
|
||||||
|
case IPV4_FLOW:
|
||||||
|
cmd->data |= RXH_IP_SRC | RXH_IP_DST;
|
||||||
|
break;
|
||||||
|
case TCP_V6_FLOW:
|
||||||
|
cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
|
||||||
|
- /* fallthrough */
|
||||||
|
+ fallthrough;
|
||||||
|
case UDP_V6_FLOW:
|
||||||
|
if (tp->rss_flags & RTL_8125_RSS_FLAG_HASH_UDP_IPV6)
|
||||||
|
cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
|
||||||
|
- /* fallthrough */
|
||||||
|
+ fallthrough;
|
||||||
|
case IPV6_FLOW:
|
||||||
|
cmd->data |= RXH_IP_SRC | RXH_IP_DST;
|
||||||
|
break;
|
@ -8,7 +8,7 @@
|
|||||||
#include <linux/if_vlan.h>
|
#include <linux/if_vlan.h>
|
||||||
#include <linux/crc32.h>
|
#include <linux/crc32.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
@@ -10425,6 +10426,23 @@ rtl8125_setup_mqs_reg(struct rtl8125_private *tp)
|
@@ -11479,6 +11480,23 @@ rtl8125_setup_mqs_reg(struct rtl8125_private *tp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
static void
|
static void
|
||||||
rtl8125_init_software_variable(struct net_device *dev)
|
rtl8125_init_software_variable(struct net_device *dev)
|
||||||
{
|
{
|
||||||
@@ -10856,6 +10874,8 @@ rtl8125_init_software_variable(struct net_device *dev)
|
@@ -11957,6 +11975,8 @@ rtl8125_init_software_variable(struct net_device *dev)
|
||||||
if (tp->InitRxDescType == RX_DESC_RING_TYPE_3)
|
if (tp->InitRxDescType == RX_DESC_RING_TYPE_3)
|
||||||
tp->rtl8125_rx_config |= EnableRxDescV3;
|
tp->rtl8125_rx_config |= EnableRxDescV3;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user