summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2014-07-02 15:09:32 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-07-02 22:32:34 +0200
commitae7a7cd1623d400a0ddc01cb4e39ee621a16f620 (patch)
tree63144ef80c85645d0cb15ec1f91e7b40564461b9
parentbcc733c4780a007f56564277a79309c427367cc2 (diff)
downloaddpdk-ae7a7cd1623d400a0ddc01cb4e39ee621a16f620.zip
dpdk-ae7a7cd1623d400a0ddc01cb4e39ee621a16f620.tar.gz
dpdk-ae7a7cd1623d400a0ddc01cb4e39ee621a16f620.tar.xz
pcap: fix build
The commit 83b41136934 (add unique name to devices) didn't compile if CONFIG_RTE_LIBRTE_PMD_PCAP is enabled. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
-rw-r--r--lib/librte_pmd_pcap/rte_eth_pcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_pmd_pcap/rte_eth_pcap.c b/lib/librte_pmd_pcap/rte_eth_pcap.c
index 12b7e0c..c77ee25 100644
--- a/lib/librte_pmd_pcap/rte_eth_pcap.c
+++ b/lib/librte_pmd_pcap/rte_eth_pcap.c
@@ -719,7 +719,7 @@ rte_pmd_pcap_devinit(const char *name, const char *params)
if (ret < 0)
return -1;
- return rte_eth_from_pcaps(pcaps.pcaps, 1, pcaps.pcaps, 1,
+ return rte_eth_from_pcaps(name, pcaps.pcaps, 1, pcaps.pcaps, 1,
numa_node, kvlist);
}