diff options
author | Ananda Raju <Ananda.Raju@neterion.com> | 2006-03-14 15:15:18 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-07-18 22:21:38 -0400 |
commit | 1d077f0b42d91daad0473258f0f8c58efacda71b (patch) | |
tree | 8c4885063abc9aebb82784f3e217dd0fdacf59ea /ethtool-copy.h | |
parent | 7064b0d88a566b4c373593a55c39ea2d1a53c35f (diff) | |
download | ethtool-1d077f0b42d91daad0473258f0f8c58efacda71b.tar.gz |
[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 <ananda.raju@neterion.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'ethtool-copy.h')
-rw-r--r-- | ethtool-copy.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |