1
1
openmpi/opal/util/ethtool.h
Karol Mroz 31e33a64f9 opal/util: add function to obtain interface speed
If kernel ethtool_cmd_speed() is not available, use copies if possible.

Signed-off-by: Karol Mroz <mroz.karol@gmail.com>
2016-05-18 16:25:51 +02:00

21 строка
417 B
C

/*
* Copyright (c) 2016 Karol Mroz. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#ifndef OPAL_ETHTOOL_H
#define OPAL_ETHTOOL_H
/*
* Obtain an appropriate bandwidth for the interface if_name. On Linux, we
* get this via an ioctl(). Elsewhere or in the error case, we return the
* speed as 0.
*/
unsigned int opal_ethtool_get_speed(const char *if_name);
#endif