On Wed, Nov 04, 2026 at 10:53:20AM +0000, Tom Smyth wrote:
> Hi Vitaliy,
> 
> it builds, boots, and fixes the fault,  Ill be lead by your good self ,
> 
> tested twice on amd 64 kvm
> 

Thanks, I'll commit it lately if nobody has objections.

> 
> I was just encountering these in testing our own software for firewall
> / router management ...
> 
> Thanks
> 
> On Wed, 4 Nov 2026 at 09:52, Vitaliy Makkoveev <[email protected]> wrote:
> > I would prefer to keep `sc_ifa' initialization together. Does this diff
> > works to you?
> >
> > Index: sys/net/if_mpw.c
> > ===================================================================
> > RCS file: /cvs/src/sys/net/if_mpw.c,v
> > retrieving revision 1.71
> > diff -u -p -r1.71 if_mpw.c
> > --- sys/net/if_mpw.c    5 Feb 2026 03:26:00 -0000       1.71
> > +++ sys/net/if_mpw.c    4 Nov 2026 09:29:47 -0000
> > @@ -97,9 +97,6 @@ mpw_clone_create(struct if_clone *ifc, i
> >         sc->sc_txhprio = 0;
> >         sc->sc_rxhprio = IF_HDRPRIO_PACKET;
> >         sc->sc_rdomain = 0;
> > -       refcnt_init_trace(&sc->sc_ifa.ifa_refcnt, DT_REFCNT_IDX_IFADDR);
> > -       sc->sc_ifa.ifa_ifp = ifp;
> > -       sc->sc_ifa.ifa_addr = sdltosa(ifp->if_sadl);
> >         sc->sc_smpls.smpls_len = sizeof(sc->sc_smpls);
> >         sc->sc_smpls.smpls_family = AF_MPLS;
> >
> > @@ -117,6 +114,11 @@ mpw_clone_create(struct if_clone *ifc, i
> >
> >         ether_ifattach(ifp);
> >         ifp->if_input = mpw_input;
> > +
> > +       /* ether_ifattach did if_sadl allocation */
> > +       refcnt_init_trace(&sc->sc_ifa.ifa_refcnt, DT_REFCNT_IDX_IFADDR);
> > +       sc->sc_ifa.ifa_ifp = ifp;
> > +       sc->sc_ifa.ifa_addr = sdltosa(ifp->if_sadl);
> >
> >  #if NBPFILTER > 0
> >         bpfdetach(ifp); /* undo bpfattach in ether_ifattach */
> 
> 
> 
> -- 
> Kindest regards,
> Tom Smyth.

Reply via email to