Files
infix/src/statd/Makefile
T
Richard AlpeandJoachim Wiberg 14dc3cf8a0 statd: add ethtool frame counters to op datastore
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>
2023-10-17 18:17:54 +02:00

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/