net/cxgbe: do not dereference global config struct
authorDavid Marchand <david.marchand@redhat.com>
Wed, 15 May 2019 07:54:19 +0000 (09:54 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 29 May 2019 22:28:40 +0000 (00:28 +0200)
commit64a46f14f616ff83da9ebfa8ab1c93e62dc99dd5
tree61fd0ec372b49e4172586e0332a8a1061059535e
parent9c1be11a4a6545af438a01e5df8c323f150aa56a
net/cxgbe: do not dereference global config struct

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

Fixes: 92c8a63223e5 ("cxgbe: add device configuration and Rx support")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/cxgbe/cxgbe_main.c