numam-dpdk/drivers
Gage Eads 4521900526 event/sw: remove stale IQ references when reconfigured
This commit fixes a bug in which, when the sw PMD is reconfigured, it would
leave stale IQ chunk pointers in each queue's IQ structure. Now, the PMD
initializes all IQs at eventdev start time and releases all IQ chunk
pointers at eventdev stop time (which has the consequence that any events
in a queue when the eventdev is stopped will be lost). This approach should
be resilient to any reconfiguration done between the stop and start, such
as adding or removing queues.

This commit also fixes two potential issues in iq_chunk.h. iq_init()
now initializes the IQ's count field to 0, and iq_dequeue_burst() sets
iq->head to the appropriate next pointer.

Fixes: dca926ca9f ("event/sw: use dynamically-sized IQs")

Reported-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Signed-off-by: Gage Eads <gage.eads@intel.com>
Reviewed-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
2018-01-19 16:09:56 +01:00
..
bbdev bb/turbo_sw: add software turbo driver 2018-01-19 01:44:25 +01:00
bus bus/fslmc: clear the vfio group on error 2018-01-17 00:44:47 +01:00
crypto bus/fslmc: support dynamic IOVA 2018-01-16 18:47:49 +01:00
event event/sw: remove stale IQ references when reconfigured 2018-01-19 16:09:56 +01:00
mempool mempool/octeontx: fix natural alignment being optimized out 2018-01-19 00:43:56 +01:00
net log: remove log level config option 2018-01-17 14:21:46 +01:00
Makefile bb/null: add null base band device driver 2018-01-19 01:44:25 +01:00