> On 11 Jun 2019, at 19:01, guangwei <caoguangwei...@163.com> wrote:
> 
> I'am now working on version 19.04,   and find the behavior of 
> vlib_buffer_free_no_next is different between 18.07 and 19.04,  I think it's 
> the bug for 19.04:
> 
> always_inline void
> vlib_buffer_free_no_next (vlib_main_t * vm,
>    /* pointer to first buffer */
>    u32 * buffers,
>    /* number of buffers to free */
>    u32 n_buffers)
> {
>   vlib_buffer_free_inline (vm, buffers, n_buffers, /* maybe next */ 0);      
> <--------this maybe next don't used in function vlib_buffer_free_inline;
> }
> 


Yep, looks like this is missing:

-      if (flags & VLIB_BUFFER_NEXT_PRESENT)
+      if (maybe_next && (flags & VLIB_BUFFER_NEXT_PRESENT))

will submit patch...

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13255): https://lists.fd.io/g/vpp-dev/message/13255
Mute This Topic: https://lists.fd.io/mt/32030091/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452
Mute #vnet: https://lists.fd.io/mk?hashtag=vnet&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to