event/sw: fix mapped qid count with parallel queue
authorHarry van Haaren <harry.van.haaren@intel.com>
Wed, 7 Jun 2017 10:04:44 +0000 (11:04 +0100)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Wed, 21 Jun 2017 13:33:22 +0000 (15:33 +0200)
commit6da10cf062cecf803124b935c7dc338b97b63d75
tree56647c3728badd2b11e059c57876e1249ef91c12
parent261de0a6adf17a132a1d8363203635d13e27ea00
event/sw: fix mapped qid count with parallel queue

This commit fixes the counting of mapped queues to a port,
when the type of queue type is PARALLEL. Not incrementing
the count here could lead to an underflow of the count when
unlinking at a later date.

Fixes: 371a688fc159 ("event/sw: support linking queues to ports")

Reported-by: Jesse Bruni <jesse.bruni@intel.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
drivers/event/sw/sw_evdev.c