examples/ipsec-secgw: fix use of ethdev internal struct
authorMarcin Zapolski <marcinx.a.zapolski@intel.com>
Wed, 17 Jul 2019 07:58:06 +0000 (09:58 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 18 Jul 2019 21:05:13 +0000 (23:05 +0200)
commit0109baf1964ca047646d49708263b2f6cbd63571
tree33a350c9b21712cf2859e2fa7f273e72a3fb8023
parent5c5c1f99a923986b5b2d2d34e874ca14ffabbcb0
examples/ipsec-secgw: fix use of ethdev internal struct

Modify ipsec-secgw example app to use rte_eth_dev_info_get instead of
rte_eth_dev.
Apps should not be using internal DPDK data structures directly.

Fixes: a4677f78368b ("examples/ipsec-secgw: add target queues in flow actions")
Cc: stable@dpdk.org
Signed-off-by: Marcin Zapolski <marcinx.a.zapolski@intel.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
examples/ipsec-secgw/ipsec.c