Fix bonded interface name to use instance number starting from 0 88/5788/3
authorJohn Lo <loj@cisco.com>
Fri, 17 Mar 2017 22:05:35 +0000 (18:05 -0400)
committerJohn Lo <loj@cisco.com>
Sat, 18 Mar 2017 20:27:35 +0000 (20:27 +0000)
commit95475a3661b95150c8d1e60a3942b91c2b5d06bc
tree0f9c24d7169eabc50ca5ad9e413278d838f27dac
parent898273fbb588811824bb27ad0ef203d358a7121a
Fix bonded interface name to use instance number starting from 0

With DPDK 17.02, bonded interface device_index does not start
from 0 and may vary depends on the existence of other interfaces.
Implement instance number for bonded interface so the interface
name can make use of instance number starting from 0.

Change-Id: Ia8eb7bd530446faa02ee7c7d1f6abdc22ac60b62
Signed-off-by: John Lo <loj@cisco.com>
src/plugins/dpdk/device/dpdk.h
src/plugins/dpdk/device/format.c
src/plugins/dpdk/device/init.c