> > diff --git sys/sys/mbuf.h sys/sys/mbuf.h
> > index 202ce8ced8b..7ca1a779fe0 100644
> > --- sys/sys/mbuf.h
> > +++ sys/sys/mbuf.h
> > @@ -127,10 +127,11 @@ struct        pkthdr {
> >     u_int16_t                ph_flowid;     /* pseudo unique flow id */
> >     u_int16_t                csum_flags;    /* checksum flags */
> >     u_int16_t                ether_vtag;    /* Ethernet 802.1p+Q vlan tag */
> >     u_int                    ph_rtableid;   /* routing table id */
> >     u_int                    ph_ifidx;      /* rcv interface index */
> > +   int64_t                  ph_timestamp;  /* packet timestamp */
> 
> That field ought to be moved much earlier, in order to prevent wasting
> an extra 32 bits due to alignment.

Well, pkthdr as a whole is pretty misorganized at this point.

We need a complete restructuring of it, and that includes thinking
about how pkthdr_pf fits into it.

Mike, please put ph_timestamp after ph_tags, and if that works fine
let's queue an independent rework in this area.

Export of this ABI is going to change anyways.  No harm doing it in
two or more steps.

Reply via email to