distributor: fix clearing returns buffer
The patch clears distributors returns buffer in clear_returns() by setting start and count to 0. Fixes: 775003ad2f96 ("distributor: add new burst-capable library") Cc: stable@dpdk.org Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> Acked-by: David Hunt <david.hunt@intel.com>
This commit is contained in:
parent
91d6b8235e
commit
20fa39d230
@ -702,6 +702,8 @@ rte_distributor_clear_returns(struct rte_distributor *d)
|
||||
/* Sync with worker. Release retptrs. */
|
||||
__atomic_store_n(&(d->bufs[wkr].retptr64[0]), 0,
|
||||
__ATOMIC_RELEASE);
|
||||
|
||||
d->returns.start = d->returns.count = 0;
|
||||
}
|
||||
|
||||
/* creates a distributor instance */
|
||||
|
Loading…
x
Reference in New Issue
Block a user