Skip to content

Commit

Permalink
Merge pull request #34 from peci1/2.17.1
Browse files Browse the repository at this point in the history
Imported version 2.17.1 from Realtek
  • Loading branch information
hcartiaux authored Sep 3, 2023
2 parents 5ee1af8 + 72d7ffa commit 94365f2
Show file tree
Hide file tree
Showing 3 changed files with 1,306 additions and 796 deletions.
17 changes: 17 additions & 0 deletions ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 5 additions & 0 deletions compatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit 94365f2

Please sign in to comment.