summaryrefslogtreecommitdiff
path: root/src/udev/net/ethtool-util.h
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@users.noreply.github.com>2016-08-30 20:22:04 +0530
committerLennart Poettering <lennart@poettering.net>2016-08-30 16:52:04 +0200
commit50725d10e3417fd357abe1df2f177b8458027ac7 (patch)
tree4f047ea153910172de4f2e782b4ad5ef6f2fd587 /src/udev/net/ethtool-util.h
parenta908cf0a126a332a209670ad5c769efa231fd002 (diff)
link : add support to configure Offload features (#4017)
This patch supports these features to be on or off Generic Segmentation Offload TCP Segmentation Offload UDP Segmentation Offload fixes #432
Diffstat (limited to 'src/udev/net/ethtool-util.h')
-rw-r--r--src/udev/net/ethtool-util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/udev/net/ethtool-util.h b/src/udev/net/ethtool-util.h
index 7716516e76..2b5b9fbd1a 100644
--- a/src/udev/net/ethtool-util.h
+++ b/src/udev/net/ethtool-util.h
@@ -38,11 +38,20 @@ typedef enum WakeOnLan {
_WOL_INVALID = -1
} WakeOnLan;
+typedef enum NetDevFeature {
+ NET_DEV_FEAT_GSO,
+ NET_DEV_FEAT_TSO,
+ NET_DEV_FEAT_UFO,
+ _NET_DEV_FEAT_MAX,
+ _NET_DEV_FEAT_INVALID = -1
+} NetDevFeature;
+
int ethtool_connect(int *ret);
int ethtool_get_driver(int *fd, const char *ifname, char **ret);
int ethtool_set_speed(int *fd, const char *ifname, unsigned int speed, Duplex duplex);
int ethtool_set_wol(int *fd, const char *ifname, WakeOnLan wol);
+int ethtool_set_features(int *fd, const char *ifname, NetDevFeature *features);
const char *duplex_to_string(Duplex d) _const_;
Duplex duplex_from_string(const char *d) _pure_;