sched: fix releasing enqueued packets
authorHiroyuki Mikita <h.mikita89@gmail.com>
Mon, 5 Sep 2016 15:15:14 +0000 (00:15 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 23 Sep 2016 19:14:54 +0000 (21:14 +0200)
commit7b3c4f351708a4bf5d311266d9f8c32e5704701f
tree6802b3e855815f645bfe2ec202a6896bea02ba38
parentaf2c6fffe6bdea4dd55c5faf731fbaec27275d0b
sched: fix releasing enqueued packets

rte_sched_port_free should release only enqueued packets of all queues.
Previous behavior is that enqueued and already dequeued packets of
only first 4 queues are released.

Fixes: 61383240 ("sched: release enqueued mbufs when freeing port")

Signed-off-by: Hiroyuki Mikita <h.mikita89@gmail.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_sched/rte_sched.c