sched: use malloc instead of memzone for allocation
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 14 May 2014 16:25:25 +0000 (09:25 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 22 May 2014 14:13:30 +0000 (16:13 +0200)
commit3d349a1d35edf2cbd6c16a2c65967ec964469654
tree7a92dfdd5fd736998c66c88446683dbbe6c84499
parent519f32279e8436524959ed3bc5b0b74e6cef4908
sched: use malloc instead of memzone for allocation

The existing rte scheduler can only be safely configured once per port
because a memory zone has a fixed size once it is created and can never
be freed or change in size.

This patch changes the scheduler to use rte_malloc instead. This allows
for a port to be reconfigured by doing rte_sched_port_free followed
rte_sched_port_config.

The patch also removes the now unused name parameter from the
port parameters structure.

Signed-off-by: Stephen Hemminger <shemming@brocade.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test/test_sched.c
lib/librte_sched/rte_sched.c