From 1d077f0b42d91daad0473258f0f8c58efacda71b Mon Sep 17 00:00:00 2001 From: Ananda Raju Date: Tue, 14 Mar 2006 15:15:18 -0500 Subject: [PATCH] UFO patch Hi, Kernel version 2.6.15 onwards provides UDP Fragmentation Offload (UFO) This patch to ethtool provides UFO (UDP Fragmentation Offload) on/off support using -K option similar to feature TSO. To find out whether UFO is enabled or not use #ethtool -k eth3 Offload parameters for eth3: rx-checksumming: on tx-checksumming: on scatter-gather: on tcp segmentation offload: on udp fragmentation offload: on # To turn off UFO use following command. #ethtool -K eth3 ufo off To turn off UFO use following command. #ethtool -K eth3 ufo on Please review the patch. Signed-off-by: Ananda Raju Signed-off-by: Jeff Garzik --- ethtool-copy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ethtool-copy.h') diff --git a/ethtool-copy.h b/ethtool-copy.h index 41aae0d..d696de3 100644 --- a/ethtool-copy.h +++ b/ethtool-copy.h @@ -283,6 +283,8 @@ struct ethtool_stats { #define ETHTOOL_GSTATS 0x0000001d /* get NIC-specific statistics */ #define ETHTOOL_GTSO 0x0000001e /* Get TSO enable (ethtool_value) */ #define ETHTOOL_STSO 0x0000001f /* Set TSO enable (ethtool_value) */ +#define ETHTOOL_GUFO 0x00000021 /* Get UFO enable (ethtool_value) */ +#define ETHTOOL_SUFO 0x00000022 /* Set UFO enable (ethtool_value) */ /* compatibility with older code */ #define SPARC_ETH_GSET ETHTOOL_GSET -- cgit v1.2.1