sched: release enqueued mbufs when freeing port
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Tue, 17 Nov 2015 08:14:48 +0000 (09:14 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 23:59:58 +0000 (00:59 +0100)
commit61383240eac9ff3a17c88dc22138b36bef46c0dc
treee85136306ba77eabbdc0f550dcf242ae22d9512c
parentd9d15a2eab4bfcbbace9f23ba7ab72e453a1b21f
sched: release enqueued mbufs when freeing port

Otherwise mbufs will leak when the port is destroyed. The
rte_sched_port_qbase() and rte_sched_port_qsize() functions are used
in free now, so move them up.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
lib/librte_sched/rte_sched.c