Re: [dpdk-dev] [PATCH v5 03/15] distributor: do not use oldpkt when not needed

2020-10-08 Thread David Hunt
Hi Lukasz, On 8/10/2020 6:23 AM, Lukasz Wojciechowski wrote: rte_distributor_request_pkt and rte_distributor_get_pkt dereferenced oldpkt parameter when in RTE_DIST_ALG_SINGLE even if number of returned buffers from worker to distributor was 0. This patch passes NULL to the legacy API when numbe

[dpdk-dev] [PATCH v5 03/15] distributor: do not use oldpkt when not needed

2020-10-07 Thread Lukasz Wojciechowski
rte_distributor_request_pkt and rte_distributor_get_pkt dereferenced oldpkt parameter when in RTE_DIST_ALG_SINGLE even if number of returned buffers from worker to distributor was 0. This patch passes NULL to the legacy API when number of returned buffers is 0. This allows passing NULL as oldpkt p