summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-09-04 15:20:56 +0300
committerGitHub <noreply@github.com>2023-09-04 15:20:56 +0300
commitff542b22d219107bede01c74b426ddda87c7a31d (patch)
treecd8a2a63973fc488b7d452b547035ebac82a2c1a /lib
parent640b59a8b0d87337fef336950e7ebf94a3344a7f (diff)
parent7b8a4249ea9481ced4a5c29a7b5cacc0e3acb80d (diff)
Merge pull request #14340 from mjstapp/txqlen_info
lib,zebra: add tx queuelen to interface struct
Diffstat (limited to 'lib')
-rw-r--r--lib/if.h3
-rw-r--r--lib/zclient.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/if.h b/lib/if.h
index c6b4fd216a..7b4415da45 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -252,6 +252,9 @@ struct interface {
/* Interface Speed in Mb/s */
uint32_t speed;
+ /* TX queue len */
+ uint32_t txqlen;
+
/* Interface MTU. */
unsigned int mtu; /* IPv4 MTU */
unsigned int
diff --git a/lib/zclient.c b/lib/zclient.c
index e40725826a..68a3429822 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -2761,6 +2761,7 @@ static void zebra_interface_if_set_value(struct stream *s,
STREAM_GETC(s, ifp->ptm_status);
STREAM_GETL(s, ifp->metric);
STREAM_GETL(s, ifp->speed);
+ STREAM_GETL(s, ifp->txqlen);
STREAM_GETL(s, ifp->mtu);
STREAM_GETL(s, ifp->mtu6);
STREAM_GETL(s, ifp->bandwidth);