<html>
<head>
<base href="https://bugs.dpdk.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - failed to parse device "net_pcap0""
href="https://bugs.dpdk.org/show_bug.cgi?id=1673">1673</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>failed to parse device "net_pcap0"
</td>
</tr>
<tr>
<th>Product</th>
<td>DPDK
</td>
</tr>
<tr>
<th>Version</th>
<td>21.11
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>ethdev
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dev@dpdk.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>915768903@qq.com
</td>
</tr>
<tr>
<th>Target Milestone</th>
<td>---
</td>
</tr></table>
<p>
<div class="bz_comment_block">
<pre class="bz_comment_text">[Background Introduction]
"I understand that the KNI feature was removed in DPDK version 23. I want
DPDK to load TAP devices to communicate with the kernel. The control-plane
packets [ICMP] received from the physical port should be handled by the TAP
devices <–vdev=net_tap0 –vdev=net_tap1>. After processing by DPDK, the
user-plane packets will be sent back to the physical port via DPDK’s TX
interface."
[To create a TAP device]
sudo ip tuntap add dev dpdk_tap mode tap
sudo ip link set dpdk_tap up
sudo ip addr add 5.5.5.88/24 dev dpdk_tap
[To create a TAP device]
snprintf(option[opt_num++], 128, "dpdk_tap");
snprintf(option[opt_num++], 128, "--main-lcore=%u", dns_cfg.mx_cpu);
snprintf(option[opt_num++], 128, "--file-prefix=dpdk_tap");
snprintf(option[opt_num++], 128, "-c0x%016llx%016llx%016llx%016llx",
core_mask[3], core_mask[2], core_mask[1], core_mask[0]);
snprintf(option[opt_num++], 128, "-n4");
snprintf(option[opt_num++], 128, "--vdev=net_pcap0,iface=dpdk_tap");
snprintf(option[opt_num++], 128, "--log-level=lib.eal:debug");
dpdk_opt_info_get(&opt_num, option, &dns_cfg);
dpdk_pci_info_get(&opt_num, option);
int ret;
if((ret = rte_eal_init(opt_num, option)) < 0)
{
printf("!error: rte_eal_init failed\n");
return false;
}
[Error message"]
EAL: Detected lcore 62 as core 12 on socket 0
EAL: Detected lcore 63 as core 12 on socket 1
EAL: Maximum logical cores by configuration: 128
EAL: Detected CPU lcores: 64
EAL: Detected NUMA nodes: 2
EAL: Checking presence of .so 'librte_eal.so.22.0'
EAL: Checking presence of .so 'librte_eal.so.22'
EAL: Checking presence of .so 'librte_eal.so'
EAL: Detected static linkage of DPDK
EAL: failed to parse device "net_pcap0"
EAL: Unable to parse device 'net_pcap0,iface=dpdk_tap'
</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1673">
<meta itemprop="name" content="View bug">
</div>
<meta itemprop="description" content="Bugzilla bug update notification">
</div>
</body>
</html>