Skip to content

Commit

Permalink
zebra: add back one field for debug
Browse files Browse the repository at this point in the history
The `flags` field is removed recently, so add back it for debug.

Signed-off-by: anlan_cs <[email protected]>
  • Loading branch information
anlancs committed Oct 13, 2024
1 parent adc0f00 commit 05e2472
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions zebra/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1999,10 +1999,9 @@ static void zebra_if_dplane_ifp_handling(struct zebra_dplane_ctx *ctx)
!CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE)) {
/* Add interface notification from kernel */
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
"RTM_NEWLINK ADD for %s(%u) vrf_id %u type %d sl_type %d master %u",
name, ifindex, vrf_id, zif_type,
zif_slave_type, master_ifindex);
zlog_debug("RTM_NEWLINK ADD for %s(%u) vrf_id %u type %d sl_type %d master %u flags 0x%llx",
name, ifindex, vrf_id, zif_type, zif_slave_type,
master_ifindex, (unsigned long long)flags);

if (ifp == NULL) {
/* unknown interface */
Expand Down Expand Up @@ -2087,10 +2086,9 @@ static void zebra_if_dplane_ifp_handling(struct zebra_dplane_ctx *ctx)

/* Interface update. */
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
"RTM_NEWLINK update for %s(%u) sl_type %d master %u",
name, ifp->ifindex, zif_slave_type,
master_ifindex);
zlog_debug("RTM_NEWLINK update for %s(%u) sl_type %d master %u flags 0x%llx",
name, ifp->ifindex, zif_slave_type, master_ifindex,
(unsigned long long)flags);

set_ifindex(ifp, ifindex, zns);
ifp->mtu6 = ifp->mtu = mtu;
Expand Down

0 comments on commit 05e2472

Please sign in to comment.