mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 14:05:22 +08:00
6567cb588b
PFC, for "Priority-based Flow Control", allows configuration of priority lossiness, and related toggles. Add a dcb subtool to allow showing and tweaking of individual PFC configuration options, and querying statistics. For example: # dcb pfc show dev eni1np1 pfc-cap 8 macsec-bypass on delay 0 pg-pfc 0:off 1:on 2:off 3:off 4:off 5:off 6:off 7:on requests 0:0 1:217 2:0 3:0 4:0 5:0 6:0 7:28 indications 0:0 1:179 2:0 3:0 4:0 5:0 6:0 7:18 Signed-off-by: Petr Machata <me@pmachata.org> Signed-off-by: David Ahern <dsahern@gmail.com>
25 lines
381 B
Makefile
25 lines
381 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
include ../config.mk
|
|
|
|
TARGETS :=
|
|
|
|
ifeq ($(HAVE_MNL),y)
|
|
|
|
DCBOBJ = dcb.o dcb_ets.o dcb_pfc.o
|
|
TARGETS += dcb
|
|
|
|
endif
|
|
|
|
all: $(TARGETS) $(LIBS)
|
|
|
|
dcb: $(DCBOBJ) $(LIBNETLINK)
|
|
$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
|
|
|
|
install: all
|
|
for i in $(TARGETS); \
|
|
do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
|
|
done
|
|
|
|
clean:
|
|
rm -f $(DCBOBJ) $(TARGETS)
|