net/softnic: do not dereference global config struct
authorDavid Marchand <david.marchand@redhat.com>
Wed, 15 May 2019 07:54:20 +0000 (09:54 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 29 May 2019 22:29:09 +0000 (00:29 +0200)
commit9c6b199354fa7773ef2e65ce51a94342925eb5ea
tree2d44f6e592c42a268e648cc24b22c595277c987d
parent64a46f14f616ff83da9ebfa8ab1c93e62dc99dd5
net/softnic: do not dereference global config struct

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

Fixes: a958a5c07f4b ("net/softnic: support service cores")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/softnic/rte_eth_softnic_thread.c