[dpdk-users] Same port receive/transmit loopback

Dominic Chen d.c.ddcc at gmail.com
Wed Jan 22 06:13:17 CET 2020


I've verified with testpmd that the connection works. Since I'm in a
virtual machine, I don't have a physical cable to loopback, so I added
more virtual NICs and bridged them externally. I've also submitted a
patch to the e1000 driver to add support for loopback mode. I don't have
the physical hardware, so I can only verify that it works in QEMU with
e1000 and e1000e.

Dominic

On 1/21/2020 12:47 AM, Muhammad Zain-ul-Abideen wrote:
> Hey there, have you used packetgen to verify. Build pktgen app and
> loopback your cable to recieve what you send on the port to verify please
>
> On Tue, Jan 21, 2020, 3:34 AM Dominic Chen <d.c.ddcc at gmail.com
> <mailto:d.c.ddcc at gmail.com>> wrote:
>
>     I've just started working with DPDK recently, and I'm a little
>     confused
>     by the intended behavior when transmitting and receiving on the
>     same port.
>
>     Currently, I haven't been able to receive the same packet that I
>     transmitted, regardless of the source/destination MACs on the Ethernet
>     packet (broadcast, self, etc), or whether the port is in promiscuous
>     mode. I've verified from other hosts on the network that my
>     packets are
>     being sent, that I am able to receive packets (as long as I didn't
>     send
>     them), and that I get the same behavior when using vfio-pci with both
>     e1000 and vmxnet3 (emulated in VMware).
>
>     Is there some built-in source MAC filtering that I'm missing? Or do I
>     have to enable loopback mode?
>
>     Thanks,
>
>     Dominic
>
>


More information about the users mailing list