mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 21:33:02 +02:00
This patch adds the framework for reading ethtool statistics and inserting it into the operational datastore. The ethtool data we rely on is "group data" such as "eth-mac" or "rmon". This data can be displayed using: ethtool --json -S e0 --all-groups The "group data" is still missing for most common drivers, so testing this will require a firmware which has support for it. Signed-off-by: Richard Alpe <richard@bit42.se>
9 lines
179 B
C
9 lines
179 B
C
#ifndef STATD_IFACE_ETHTOOL_H_
|
|
#define STATD_IFACE_ETHTOOL_H_
|
|
|
|
#include <srx/lyx.h>
|
|
|
|
int ly_add_ethtool(const struct ly_ctx *ctx, struct lyd_node **parent, char *ifname);
|
|
|
|
#endif
|