Re: [dpdk-dev] [PATCH] enic: check for nb_free > 0

2017-08-02 Thread John Daley (johndale)
> -Original Message- > From: Aaron Conole [mailto:acon...@redhat.com] > Sent: Wednesday, August 02, 2017 11:02 AM > To: dev@dpdk.org > Cc: sta...@dpdk.org; John Daley (johndale) ; Bruce > Richardson > Subject: [PATCH] enic: check for nb_free > 0 > > Occasionally, the amount of packets t

[dpdk-dev] [PATCH] enic: check for nb_free > 0

2017-08-02 Thread Aaron Conole
Occasionally, the amount of packets to free from the work queue ends perfectly on a boundary to have nb_free = 0 and pool = 0. This causes a segfault as follows: (gdb) bt #0 rte_mempool_default_cache (mp=, mp=, lcore_id=) at /usr/src/debug/openvswitch-2.6.1/dpdk-16.11/x86_64-nat