event/sw: fix cq index check for unlink usecases
authorHarry van Haaren <harry.van.haaren@intel.com>
Fri, 21 Sep 2018 10:25:10 +0000 (11:25 +0100)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 1 Oct 2018 14:48:24 +0000 (16:48 +0200)
commit733fc6ca0b48e4bdf2717a8723243f93a3864bb4
treeb563146ff7dd250c479820dc469f772768ed8acd
parent97428d7b8e0ff103369f95dbe35a5c0f8c2ad132
event/sw: fix cq index check for unlink usecases

This commit fixes the cq index checks when unlinking
ports/queues while the scheduler core is running.
Previously, the == comparison could be "skipped" if
in particular corner cases. With the check being changed
to >= this is resolved as the cq idx gets reset to zero.

Bugzilla ID: 60
Fixes: 617995dfc5b2 ("event/sw: add scheduling logic")
Cc: stable@dpdk.org
Suggested-by: Matias Elo <matias.elo@nokia.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
drivers/event/sw/sw_evdev_scheduler.c