about summary refs log tree commit diff
path: root/src/libnm-platform/nmp-ethtool.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2025-08-01 19:15:18 +0200
committerMichael Biebl <biebl@debian.org>2025-08-01 19:15:18 +0200
commit43a9f1ee48d7f7b9f4447e9fe17a4274c6fad67f (patch)
tree5f570d79dfc6eb4c736b708a99b3b2e5ed7608d1 /src/libnm-platform/nmp-ethtool.h
parente0a3970cd0ea64b36773deae96366bbe7d1efbee (diff)
parent7e9091a5960f67a84787c03153324915220e4816 (diff)
Update upstream source from tag 'upstream/1.54.0'
Update to upstream version '1.54.0'
with Debian dir efd253369d835d8f9c404eef4f97d88deb9625fe
Diffstat (limited to 'src/libnm-platform/nmp-ethtool.h')
-rw-r--r--src/libnm-platform/nmp-ethtool.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/libnm-platform/nmp-ethtool.h b/src/libnm-platform/nmp-ethtool.h
new file mode 100644
index 00000000..88bb95b6
--- /dev/null
+++ b/src/libnm-platform/nmp-ethtool.h
@@ -0,0 +1,35 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#ifndef __NMP_ETHTOOL_H__
+#define __NMP_ETHTOOL_H__
+
+#include "libnm-platform/nmp-base.h"
+#include "libnm-platform/nm-netlink.h"
+
+gboolean nmp_ethtool_get_pause(struct nl_sock      *genl_sock,
+                               guint16              family_id,
+                               int                  ifindex,
+                               NMEthtoolPauseState *pause);
+gboolean nmp_ethtool_set_pause(struct nl_sock            *genl_sock,
+                               guint16                    family_id,
+                               int                        ifindex,
+                               const NMEthtoolPauseState *pause);
+
+gboolean nmp_ethtool_get_eee(struct nl_sock    *genl_sock,
+                             guint16            family_id,
+                             int                ifindex,
+                             NMEthtoolEEEState *eee);
+gboolean nmp_ethtool_set_eee(struct nl_sock          *genl_sock,
+                             guint16                  family_id,
+                             int                      ifindex,
+                             const NMEthtoolEEEState *eee);
+
+gboolean nmp_ethtool_get_ring(struct nl_sock     *genl_sock,
+                              guint16             family_id,
+                              int                 ifindex,
+                              NMEthtoolRingState *ring);
+gboolean nmp_ethtool_set_ring(struct nl_sock           *genl_sock,
+                              guint16                   family_id,
+                              int                       ifindex,
+                              const NMEthtoolRingState *ring);
+
+#endif /* __NMP_ETHTOOL_H__ */