numam-dpdk/drivers/event/sw
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
..
event_ring.h drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
iq_chunk.h event/sw: remove stale IQ references when reconfigured 2018-01-19 16:09:56 +01:00
Makefile drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_pmd_sw_event_version.map event/sw: rename map file to standard name 2017-10-10 18:31:57 +02:00
sw_evdev_scheduler.c event/sw: use dynamically-sized IQs 2018-01-19 16:09:56 +01:00
sw_evdev_worker.c event/sw: simplify credit scheme 2018-01-19 16:09:56 +01:00
sw_evdev_xstats.c event/sw: use dynamically-sized IQs 2018-01-19 16:09:56 +01:00
sw_evdev.c event/sw: remove stale IQ references when reconfigured 2018-01-19 16:09:56 +01:00
sw_evdev.h eventdev: add implicit release disable capability 2018-01-19 16:09:56 +01:00