[PATCH v2] app/testpmd: use burst IO for IEEE1588 forwarding

Stephen Hemminger stephen at networkplumber.org
Mon Nov 23 19:38:20 CET 2026


On Mon, 23 Nov 2026 16:53:38 +0000
Bruce Richardson <bruce.richardson at intel.com> wrote:

> > Since only called here:  
> > >  static bool
> > > -ieee1588_packet_fwd(struct fwd_stream *fs)
> > > +ieee1588_process_packet(struct fwd_stream *fs, struct rte_mbuf *mb)
> > >  {  
> > 
> > Make it void not bool
> > 
> > and drop the cast.
> >   
> 
> I thought about that, and thought it best to leave it as bool to allow for
> any future error checking we might need. The cast can be safely dropped,
> but I think some form of return value might be useful from this.

YAGNI

Since it is internal to the file, you can change API at will later
to return an int or whatever suits.


More information about the stable mailing list