avinashkrc
avinashkrc

Reputation: 93

Not able to receive packets using DPDK over vmxnet3

I have implemented a simple code that sends the packet from one machine to other using DPDK. When I use E1000E then I am able to receive packets. But when I use vmxnet3 then at the receiver side erroneous packets are received as per ethernet stats. rte_eth_rx_burst() dont receive any packet. Is there a way to solve this? Why packets are erroneous?

update: vmxnet3 is receiving non DPDK packets correctly but when it comes to DPDK packets sent by our custom generator, it is still categorised as erroneous. Did something changed with respect to security in ESXI and Vcenter? I worked for earlier version of ESXI with vcenter 6+.

[EDIT-1] details shared based on the comment

VMShpere version: 7

  1. VMShpere vswitch: connected between only 2 VMs backed as 10Gbps VMXNET3 NIC
  2. DPDK verion: 18.11
  3. Guest os: Ubuntu 20.04 (tried Ubuntu 16.04 as well)
  4. Packet Flow: mac address is changed according to destination VM Setup: VM-1 runs DPDK application is custom packet generator and receptor, and VM-2 runs rx_burst and tx_burst.

Upvotes: 0

Views: 881

Answers (1)

Vipin Varghese
Vipin Varghese

Reputation: 4798

[answer based on the live debug] there is no issue on the DPDK side with either e1000e or vmxnet3 device. Based on the current debug it based on switch on vsphere

Debugging with kernel driver vmnext3, shows

  1. VM-1 receives and transmit packets
  2. VM-2 receives and transmit packets
  3. there is a physical interface also connected which forwards packets.
  4. set the IP address of VM-1 to '12.12.12.1' and IP address of VM-2 to '12.12.12.2'
  5. Run iperf3 between VM-1 and VM-2, it fails.
  6. debugging with tcpdump showcases that VM-1 is not receiving packets from the switch from VM-2. While packets from VM-1 are received.

The same is behaviour with DPDK l2fwd/testpmd/skeleton and even sample application. Hence DPDK 18.11.11 LTS with vmxnet3 has no issues in sending or receiving packets.

Upvotes: 0

Related Questions