examples/qos_sched: do not dereference global config struct
authorDavid Marchand <david.marchand@redhat.com>
Wed, 15 May 2019 07:54:22 +0000 (09:54 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 29 May 2019 22:30:17 +0000 (00:30 +0200)
commit4df7d46bbdba4f390816476fa62f21668f87b995
tree3e1ae15d603a1607434638c8a5fb2a5591a0b4e0
parent200bc52e5aa0d72e70464c9cd22b55cf536ed13c
examples/qos_sched: do not dereference global config struct

Prefer the existing apis rather than direct access the configuration
structure.

Fixes: de3cfa2c9823 ("sched: initial import")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/qos_sched/args.c