DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] ret_pktmbuf_pool_init problem with opaque_arg
@ 2015-01-09 14:12 Alejandro Lucero
  2015-01-09 14:28 ` Olivier MATZ
  2015-01-09 22:42 ` Stephen Hemminger
  0 siblings, 2 replies; 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 [dpdk-dev] ret_pktmbuf_pool_init problem with opaque_arg Alejandro Lucero
2015-01-09 14:28 ` Olivier MATZ
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).