about summary refs log tree commit diff
path: root/src/libnm-platform/nmp-ethtool.h
blob: 88bb95b6872de6aacf10b500efb73844af8e9366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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__ */