On Mon, Nov 23, 2026 at 08:50:50AM -0800, Stephen Hemminger wrote:
> On Mon, 23 Nov 2026 12:26:26 +0000
> Bruce Richardson <[email protected]> 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.

> > +static bool
> > +ieee1588_packet_fwd(struct fwd_stream *fs)
> > +{
> > +   struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
> > +
> > +   const uint16_t nb_rx = common_fwd_stream_receive(fs, pkts_burst, 
> > nb_pkt_per_burst);
> > +   for (uint16_t i = 0; i < nb_rx; i++)
> > +           (void)ieee1588_process_packet(fs, pkts_burst[i]);

Reply via email to