summaryrefslogtreecommitdiff
path: root/src/shared/ethtool-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-01-21 20:06:40 +0900
committerLennart Poettering <lennart@poettering.net>2020-01-21 16:51:19 +0100
commit502991215726347b2b3b0dfcee29c66e4038c888 (patch)
tree046141f5eddbf6fe6b030a5150963c36c4ee8245 /src/shared/ethtool-util.h
parentce96c9cb1a8f81ff4bbc40f5a98d003d6ffacb57 (diff)
downloadsystemd-502991215726347b2b3b0dfcee29c66e4038c888.tar.gz
network,udev: use uint64_t for bit rate
Fixes #14620.
Diffstat (limited to 'src/shared/ethtool-util.h')
-rw-r--r--src/shared/ethtool-util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/ethtool-util.h b/src/shared/ethtool-util.h
index 8468a26bc2..8d76287640 100644
--- a/src/shared/ethtool-util.h
+++ b/src/shared/ethtool-util.h
@@ -90,7 +90,7 @@ typedef struct netdev_ring_param {
int ethtool_get_driver(int *ethtool_fd, const char *ifname, char **ret);
int ethtool_get_link_info(int *ethtool_fd, const char *ifname,
- int *ret_autonegotiation, size_t *ret_speed,
+ int *ret_autonegotiation, uint64_t *ret_speed,
Duplex *ret_duplex, NetDevPort *ret_port);
int ethtool_get_permanent_macaddr(int *ethtool_fd, const char *ifname, struct ether_addr *ret);
int ethtool_set_speed(int *ethtool_fd, const char *ifname, unsigned speed, Duplex duplex);
@@ -99,7 +99,7 @@ int ethtool_set_nic_buffer_size(int *ethtool_fd, const char *ifname, netdev_ring
int ethtool_set_features(int *ethtool_fd, const char *ifname, int *features);
int ethtool_set_glinksettings(int *ethtool_fd, const char *ifname,
int autonegotiation, uint32_t advertise[static N_ADVERTISE],
- size_t speed, Duplex duplex, NetDevPort port);
+ uint64_t speed, Duplex duplex, NetDevPort port);
int ethtool_set_channels(int *ethtool_fd, const char *ifname, netdev_channels *channels);
const char *duplex_to_string(Duplex d) _const_;