]> git.proxmox.com Git - ovs.git/commit - lib/netdev-dpdk.c
vswitchd: skip right number of arguments in dpdk_init()
authorDaniele Di Proietto <ddiproietto@vmware.com>
Mon, 23 Jun 2014 21:11:46 +0000 (14:11 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Mon, 23 Jun 2014 21:41:09 +0000 (14:41 -0700)
commit9441caf37205225e0fd8600aabbb9a23d822c480
tree901f275606cc172b95c94254dfe86fe66b87315d
parentcdbdeedada0c1e13a6075debaa5b3ada99714176
vswitchd: skip right number of arguments in dpdk_init()

rte_eal_init() returns the number of parsed dpdk arguments to skip.
dpdk_init() should add 1 to that number, because it has already skipped
the "--dpdk" argument itself.

This patch also makes sure the program name is ovs-vswitchd in
rte_eal_init() and proctitle_init().

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Signed-off-by: Ryan Wilson <wryan@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/netdev-dpdk.c