Skip to content

Commit

Permalink
bump r8125 to 9.011.01
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlife committed May 2, 2023
1 parent 0356cd2 commit 59225ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion r8125/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=r8125
PKG_VERSION:=9.011.00
PKG_VERSION:=9.011.01
PKG_RELEASE:=1

#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
Expand Down
6 changes: 5 additions & 1 deletion r8125/src/r8125.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ do { \
#define RSS_SUFFIX ""
#endif

#define RTL8125_VERSION "9.011.00" NAPI_SUFFIX DASH_SUFFIX REALWOW_SUFFIX PTP_SUFFIX RSS_SUFFIX
#define RTL8125_VERSION "9.011.01" NAPI_SUFFIX DASH_SUFFIX REALWOW_SUFFIX PTP_SUFFIX RSS_SUFFIX
#define MODULENAME "r8125"
#define PFX MODULENAME ": "

Expand Down Expand Up @@ -676,7 +676,11 @@ typedef int *napi_budget;
typedef struct napi_struct *napi_ptr;
typedef int napi_budget;

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0)
#define RTL_NAPI_CONFIG(ndev, priv, function, weight) netif_napi_add_weight(ndev, &priv->napi, function, weight)
#else
#define RTL_NAPI_CONFIG(ndev, priv, function, weight) netif_napi_add(ndev, &priv->napi, function, weight)
#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0)
#define RTL_NAPI_QUOTA(budget, ndev) min(budget, budget)
#define RTL_GET_PRIV(stuct_ptr, priv_struct) container_of(stuct_ptr, priv_struct, stuct_ptr)
#define RTL_GET_NETDEV(priv_ptr) struct net_device *dev = priv_ptr->dev;
Expand Down
3 changes: 2 additions & 1 deletion r8125/src/r8125_n.c
Original file line number Diff line number Diff line change
Expand Up @@ -16698,6 +16698,8 @@ rtl8125_rx_interrupt(struct net_device *dev,

skb->protocol = eth_type_trans(skb, dev);

total_rx_bytes += skb->len;

if (skb->pkt_type == PACKET_MULTICAST)
total_rx_multicast_packets++;

Expand All @@ -16707,7 +16709,6 @@ rtl8125_rx_interrupt(struct net_device *dev,
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)
dev->last_rx = jiffies;
#endif //LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)
total_rx_bytes += skb->len;
total_rx_packets++;

#ifdef ENABLE_PAGE_REUSE
Expand Down

0 comments on commit 59225ea

Please sign in to comment.