Merge pull request #34 from peci1/2.17.1

Imported version 2.17.1 from Realtek
This commit is contained in:
Hyacinthe Cartiaux
2023-09-03 16:48:32 +02:00
committed by GitHub
3 changed files with 1301 additions and 791 deletions
+17
View File
@@ -39,3 +39,20 @@
Changes the number of ring entries for the Rx ring.
# ethtool -G eth0 rx 100
- Tunable parameters
Get the current rx copybreak value in bytes.
# ethtool --get-tunable eth0 rx-copybreak
Set the rx copybreak value in bytes.
# ethtool --set-tunable eth0 rx-copybreak 256
- Flow control
Queries the specified Ethernet device for pause parameter information.
# ethtool -a eth0
Changes the pause parameters of the specified Ethernet device.
# ethtool -A eth0 rx off tx off (Disable flow control)
# ethtool -A eth0 rx on tx off (Enable flow control)
+5
View File
@@ -21,6 +21,10 @@
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) */
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0)
#define TSO_LEGACY_MAX_SIZE 65536
#define netif_napi_add_weight netif_napi_add
#define netif_set_tso_max_size netif_set_gso_max_size
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
#define PHY_MAC_INTERRUPT PHY_IGNORE_INTERRUPT
@@ -613,6 +617,7 @@
memcpy(dev->dev_addr, addr, 6);
}
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) */
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0) */
#ifndef FALSE
#define TRUE 1
+1279 -791
View File
File diff suppressed because it is too large Load Diff