vpe: convert DPKD_PORT to LINK ID 29/43229/8
authorRoss Brattain <ross.b.brattain@intel.com>
Tue, 26 Sep 2017 23:43:12 +0000 (16:43 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Tue, 6 Feb 2018 20:33:34 +0000 (12:33 -0800)
commit944523e14720956402e1904f9838abe7a020d581
treede6a45f740ca04e89ebade83e01b3fa48bdf5435
parent93b96e3aed1a56d8910f7d09e556ff720d261fb2
vpe: convert DPKD_PORT to LINK ID

http://dpdk.org/doc/guides/sample_app_ug/ip_pipeline.html#application-resources-present-in-the-configuration-file

LINK instances are created implicitly based on the PORT_MASK application startup
argument. LINK0 is the first port enabled in the PORT_MASK, port 1 is the next one,
etc. The LINK ID is different than the DPDK PMD-level NIC port ID, which is the actual
 position in the bitmask mentioned above. For example, if bit 5 is the first bit set
in the bitmask, then LINK0 is having the PMD ID of 5. This mechanism creates a
contiguous LINK ID space and isolates the configuration file against changes in the
board PCIe slots where NICs are plugged in.

Change-Id: I6e449272cfcfb2b2a75c246f7f569e3f923da245
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
tests/unit/network_services/vnf_generic/vnf/test_vpe_vnf.py
yardstick/network_services/vnf_generic/vnf/vpe_vnf.py