mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 14:23: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>
23 lines
448 B
Makefile
23 lines
448 B
Makefile
CFLAGS += -Wall -Wextra -Werror
|
|
LDLIBS += -lsysrepo -lev -lyang -ljansson -lite -lsrx
|
|
|
|
TARGET = statd
|
|
SRC = statd.c shared.c shared.h \
|
|
iface-ip-link.c iface-ip-link.h \
|
|
iface-ip-addr.c iface-ip-addr.h \
|
|
iface-ethtool.c iface-ethtool.h
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(SRC)
|
|
$(CC) $(CPPFLAGS) $(LDLIBS) $(CFLAGS) -o $(TARGET) $(SRC)
|
|
|
|
clean:
|
|
-rm statd
|
|
|
|
distclean: clean
|
|
-rm *~
|
|
|
|
install:
|
|
install -D statd $(DESTDIR)/sbin/
|