summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChirag Shah <chirag@nvidia.com>2024-11-14 15:17:07 -0800
committerChirag Shah <chirag@nvidia.com>2024-11-25 09:00:03 -0800
commit97538158ba0b073febebea1439dceae2947a7e0c (patch)
tree2c9bd255f6c31f8ccf58f62c8cdd44f298d602f8
parentadae8192d184beafdf84b15b24b66c7ccd0c92e0 (diff)
zebra: EVPN add debug trace for HREP entry
Ticket: #4139506 Signed-off-by: Chirag Shah <chirag@nvidia.com>
-rw-r--r--zebra/rt_netlink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index ab07ef8d21..492fe52889 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -3683,6 +3683,13 @@ netlink_vxlan_flood_update_ctx(const struct zebra_dplane_ctx *ctx, int cmd,
if (dplane_ctx_get_type(ctx) != 0)
proto = zebra2proto(dplane_ctx_get_type(ctx));
+ if (IS_ZEBRA_DEBUG_KERNEL)
+ zlog_debug("Tx %s family %s IF %s(%u) VNI %u MAC %pEA VTEP %pIA vid %u",
+ nl_msg_type_to_str(cmd), nl_family_to_str(PF_BRIDGE),
+ dplane_ctx_get_ifname(ctx), dplane_ctx_get_ifindex(ctx),
+ dplane_ctx_neigh_get_vni(ctx), &dst_mac,
+ dplane_ctx_neigh_get_ipaddr(ctx), dplane_ctx_mac_get_vlan(ctx));
+
return netlink_neigh_update_msg_encode(
ctx, cmd, (const void *)&dst_mac, ETH_ALEN,
dplane_ctx_neigh_get_ipaddr(ctx), false, PF_BRIDGE, 0, NTF_SELF,