dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* ret_pktmbuf_pool_init problem with opaque_arg
@ 2015-01-09 14:12 Alejandro Lucero
       [not found] ` <CAD+H9911EO_0J_GRt34j-ugOSqeJo-QobNYc_cMe+52kvXLEfw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Lucero @ 2015-01-09 14:12 UTC (permalink / raw)
  To: dev

Inside this function mbuf_data_room_size is set to a default value if
opaque_arg is null and it should be set to the value pointed by opaque_arg
if not null. Current implementation is using not the value but with the
pointer itself. I think this:

        roomsz = (uint16_t)(uintptr_t)opaque_arg;

should be something like this:

        roomsz = *(uint16_t *)opaque_arg;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-09 22:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-09 14:12 ret_pktmbuf_pool_init problem with opaque_arg Alejandro Lucero
     [not found] ` <CAD+H9911EO_0J_GRt34j-ugOSqeJo-QobNYc_cMe+52kvXLEfw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-09 14:28   ` Olivier MATZ
     [not found]     ` <54AFE58E.50009-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-01-09 14:38       ` Alejandro Lucero
2015-01-09 22:42   ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).