Merge pull request #17082 from anlancs/zebra/add-debug-flags-fix

zebra: add back one field for debug
This commit is contained in:
Donatas Abraitis 2024-10-14 08:12:40 +03:00 committed by GitHub
commit c45e1066a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1999,10 +1999,9 @@ static void zebra_if_dplane_ifp_handling(struct zebra_dplane_ctx *ctx)
!CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE)) { !CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE)) {
/* Add interface notification from kernel */ /* Add interface notification from kernel */
if (IS_ZEBRA_DEBUG_KERNEL) if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug( zlog_debug("RTM_NEWLINK ADD for %s(%u) vrf_id %u type %d sl_type %d master %u flags 0x%llx",
"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,
name, ifindex, vrf_id, zif_type, master_ifindex, (unsigned long long)flags);
zif_slave_type, master_ifindex);
if (ifp == NULL) { if (ifp == NULL) {
/* unknown interface */ /* unknown interface */
@ -2087,10 +2086,9 @@ static void zebra_if_dplane_ifp_handling(struct zebra_dplane_ctx *ctx)
/* Interface update. */ /* Interface update. */
if (IS_ZEBRA_DEBUG_KERNEL) if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug( zlog_debug("RTM_NEWLINK update for %s(%u) sl_type %d master %u flags 0x%llx",
"RTM_NEWLINK update for %s(%u) sl_type %d master %u", name, ifp->ifindex, zif_slave_type, master_ifindex,
name, ifp->ifindex, zif_slave_type, (unsigned long long)flags);
master_ifindex);
set_ifindex(ifp, ifindex, zns); set_ifindex(ifp, ifindex, zns);
ifp->mtu6 = ifp->mtu = mtu; ifp->mtu6 = ifp->mtu = mtu;