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:13 +0200
committerMichael Biebl <biebl@debian.org>2025-08-01 19:15:13 +0200
commit7e9091a5960f67a84787c03153324915220e4816 (patch)
treedc743de962532932ebc3b4ed3a36ddd093d97d68 /src/libnm-platform/nmp-ethtool.h
parent582eb4472a0f3375042afb9026cbeb50e058a27d (diff)
New upstream version 1.54.0 upstream/1.54.0
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__ */