[dpdk-dev] ret_pktmbuf_pool_init problem with opaque_arg
Alejandro Lucero
alejandro.lucero at netronome.com
Fri Jan 9 15:12:10 CET 2015
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;
More information about the dev
mailing list