summaryrefslogtreecommitdiff
path: root/zebra/zebra_dplane.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@labn.net>2023-09-01 10:06:10 -0400
committerMark Stapp <mjs@labn.net>2023-09-01 10:06:10 -0400
commit7b8a4249ea9481ced4a5c29a7b5cacc0e3acb80d (patch)
tree00bf1649958cb472ffa12b2217a6f53cfec0aeab /zebra/zebra_dplane.c
parent030d2f0b8bd671cac091f965b8c3925e879ba3b0 (diff)
lib,zebra: add tx queuelen to interface struct
Add the txqlen attribute to the common interface struct. Capture the value in zebra, and distribute it through the interface lib module's zapi messaging. Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'zebra/zebra_dplane.c')
-rw-r--r--zebra/zebra_dplane.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c
index 7b2f643080..03d7bb88a2 100644
--- a/zebra/zebra_dplane.c
+++ b/zebra/zebra_dplane.c
@@ -216,6 +216,8 @@ struct dplane_intf_info {
uint32_t rc_bitfield;
+ uint32_t txqlen;
+
uint32_t metric;
uint32_t flags;
@@ -2656,6 +2658,20 @@ void dplane_ctx_set_intf_label(struct zebra_dplane_ctx *ctx, const char *label)
}
}
+void dplane_ctx_set_intf_txqlen(struct zebra_dplane_ctx *ctx, uint32_t txqlen)
+{
+ DPLANE_CTX_VALID(ctx);
+
+ ctx->u.intf.txqlen = txqlen;
+}
+
+uint32_t dplane_ctx_get_intf_txqlen(const struct zebra_dplane_ctx *ctx)
+{
+ DPLANE_CTX_VALID(ctx);
+
+ return ctx->u.intf.txqlen;
+}
+
/* Accessors for MAC information */
vlanid_t dplane_ctx_mac_get_vlan(const struct zebra_dplane_ctx *ctx)
{