Spdk/lib/env_dpdk
Daniel Verkamp 9f237eac85 env_dpdk: save and restore optind in spdk_env_init
DPDK's use of getopt() needs special handling of the optind global
variable since we are passing it a separate array of arguments (not the
typical argv and argc).  Set optind to 1 internally to env_dpdk so that
the apps don't need to know about it, and restore optind in case the
calling app is also using getopt().

Change-Id: Icbf07002c99fa9f94c866e8eff707124b0ef679b
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/365062
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-06-13 17:39:38 -04:00
..
env_internal.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env.c env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
env.mk env/dpdk: additional library required for DPDK 17.05 ring based mempool 2017-05-02 15:18:15 -07:00
init.c env_dpdk: save and restore optind in spdk_env_init 2017-06-13 17:39:38 -04:00
Makefile env: Move lcore functions into env layer. 2017-04-04 09:19:01 -07:00
pci_ioat.c env: register PMDs on associated first probe 2017-03-06 12:44:34 -07:00
pci_nvme.c env: register PMDs on associated first probe 2017-03-06 12:44:34 -07:00
pci.c env/dpdk: use the new *rte_pci* API for DPDK 17.05 2017-05-12 07:53:42 -07:00
threads.c env: Add wrappers to launch and wait for threads 2017-06-07 12:34:15 -04:00
vtophys.c include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00