VPP-580: Host Interface created via Command Line Arg is misnamed 77/4577/2
authorBilly McFall <bmcfall@redhat.com>
Thu, 5 Jan 2017 18:23:39 +0000 (13:23 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Fri, 13 Jan 2017 15:37:46 +0000 (15:37 +0000)
Host interfaces created via the command-line arguments are missed named
(i.e. - UnknownEthernet0 instead of af_packet0). In DPDK 16.11, they
changed the driver names from eth_xxx to net_xxx. However, looks like
the AF_PACKET driver still returns "AF_PACKET PMD" as the driver name
in the rte_eth_dev_info_get(..) call. I modified the driver name look
table in vnet/devices/dpdk/dpdk.h to revert the name back.

Change-Id: I2b0a9f6b4d5245b76548027891d40f81a56b230d
Signed-off-by: Billy McFall <bmcfall@redhat.com>
src/vnet/devices/dpdk/dpdk.h

index d8f378d..e043603 100644 (file)
@@ -79,7 +79,7 @@ extern vlib_node_registration_t handoff_dispatch_node;
   _ ("net_virtio", VIRTIO)        \
   _ ("net_enic", ENIC)            \
   _ ("net_vmxnet3", VMXNET3)      \
-  _ ("net_af_packet", AF_PACKET)  \
+  _ ("AF_PACKET PMD", AF_PACKET)  \
   _ ("rte_bond_pmd", BOND)        \
   _ ("net_fm10k", FM10K)          \
   _ ("net_cxgbe", CXGBE)          \