emmericp / MoonGen

MoonGen is a fully scriptable high-speed packet generator built on DPDK and LuaJIT. It can saturate a 10 Gbit/s connection with 64 byte packets on a single CPU core while executing user-provided Lua scripts for each packet. Multi-core support allows for even higher rates. It also features precise and accurate timestamping and rate control.
MIT License
1.04k stars 234 forks source link

Invalid after setting setVlan () #252

Closed qwe131829 closed 4 years ago

qwe131829 commented 4 years ago

Sorry to disturb you!setVlan(wlanID,7,1),I try to modify pktgen, using setVlan function to construct vlan packet based on udp with X710. However, through wireshark analysis, it is found that type is still ip4,0x800, with vlan missing in the middle. How should it be solved?

qwe131829 commented 4 years ago

Dpdk default tx offload is off.Is this reason?

qwe131829 commented 4 years ago

I saw that testpmd of dpdk can add double-layer vlan through offload. The x710 NIC also seems to support the simultaneous stripping of Layer 2 vlan

emmericp commented 4 years ago

Normal VLAN offloading works fine. You probably don't see it in wireshark because you are probably strip it somewhere on the receiving side.

We don't support QinQ offloading at the moment, pull requests welcome.