Imported version 2.17.1
This commit is contained in:
+17
@@ -39,3 +39,20 @@
|
|||||||
|
|
||||||
Changes the number of ring entries for the Rx ring.
|
Changes the number of ring entries for the Rx ring.
|
||||||
# ethtool -G eth0 rx 100
|
# 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)
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */
|
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */
|
||||||
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) */
|
#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,15,0)
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
|
||||||
#define PHY_MAC_INTERRUPT PHY_IGNORE_INTERRUPT
|
#define PHY_MAC_INTERRUPT PHY_IGNORE_INTERRUPT
|
||||||
@@ -613,6 +617,7 @@
|
|||||||
memcpy(dev->dev_addr, addr, 6);
|
memcpy(dev->dev_addr, addr, 6);
|
||||||
}
|
}
|
||||||
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) */
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) */
|
||||||
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0) */
|
||||||
|
|
||||||
#ifndef FALSE
|
#ifndef FALSE
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
|
|||||||
Reference in New Issue
Block a user