[dpdk-dev] [PATCH] mbuf: cleanup rte_pktmbuf_lastseg(), remove useless variable

Ilya Matveychikov matvejchikov at gmail.com
Tue Nov 14 21:50:58 CET 2017


> On Nov 15, 2017, at 12:32 AM, Hanoch Haim (hhaim) <hhaim at cisco.com> wrote:
> 
> I would add this too 
> 
> -  } else if (rte_atomic16_add_return(&m->refcnt_atomic, -1) == 0)
> 
> Should be :
> 
> + } else if (likely(rte_mbuf_refcnt_update(m, -1) == 0)) {
> 
> 
> Hanoh
> 

Why not to send the separate patch for the change?



More information about the dev mailing list