DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Same port receive/transmit loopback
@ 2020-01-20 22:34 Dominic Chen
  2020-01-21  5:47 ` Muhammad Zain-ul-Abideen
  0 siblings, 1 reply; 4+ messages in thread
From: Dominic Chen @ 2020-01-20 22:34 UTC (permalink / raw)
  To: users

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-users] Same port receive/transmit loopback
  2020-01-20 22:34 [dpdk-users] Same port receive/transmit loopback Dominic Chen
@ 2020-01-21  5:47 ` Muhammad Zain-ul-Abideen
  2020-01-22  5:13   ` Dominic Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Muhammad Zain-ul-Abideen @ 2020-01-21  5:47 UTC (permalink / raw)
  To: Dominic Chen; +Cc: users

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@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
>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-users] Same port receive/transmit loopback
  2020-01-21  5:47 ` Muhammad Zain-ul-Abideen
@ 2020-01-22  5:13   ` Dominic Chen
  2020-01-23 18:25     ` Muhammad Zain-ul-Abideen
  0 siblings, 1 reply; 4+ messages in thread
From: Dominic Chen @ 2020-01-22  5:13 UTC (permalink / raw)
  To: Muhammad Zain-ul-Abideen; +Cc: users

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@gmail.com
> <mailto:d.c.ddcc@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
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-users] Same port receive/transmit loopback
  2020-01-22  5:13   ` Dominic Chen
@ 2020-01-23 18:25     ` Muhammad Zain-ul-Abideen
  0 siblings, 0 replies; 4+ messages in thread
From: Muhammad Zain-ul-Abideen @ 2020-01-23 18:25 UTC (permalink / raw)
  To: Dominic Chen; +Cc: users

Kindly share what you are sending vs what you are receiving and some more
detail on the environment configuration

On Wed, Jan 22, 2020, 10:13 AM Dominic Chen <d.c.ddcc@gmail.com> wrote:

> 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@gmail.com
> > <mailto:d.c.ddcc@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
> >
> >
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-23 18:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 22:34 [dpdk-users] Same port receive/transmit loopback Dominic Chen
2020-01-21  5:47 ` Muhammad Zain-ul-Abideen
2020-01-22  5:13   ` Dominic Chen
2020-01-23 18:25     ` Muhammad Zain-ul-Abideen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).