sdnfv / openNetVM

A high performance container-based NFV platform from GW and UCR.
http://sdnfv.github.io/onvm/
Other
262 stars 136 forks source link

Setting up Jumbo Packet mtu 9000 in ONVM #276

Closed vtran42 closed 3 years ago

vtran42 commented 3 years ago

Bug Report

Hi all, I am using the bridge example in ONVM to forward a packet. When the sender sends a packet with mtu 1472(1500), ONVM manager can recognize. However, when I increase the packet size to mtu 8972(9000), the ONVM manager did not recognize. My questions is how to setup jumbo packet in ONVM? Thanks

twood02 commented 3 years ago

We haven't experimented with large packets in ONVM, but I think it should be easy to support this.

The maximum packet size is set when the packet memory pools are created here: https://github.com/sdnfv/openNetVM/blob/master/onvm/onvm_mgr/onvm_init.c#L289

this uses the macros defined here: https://github.com/sdnfv/openNetVM/blob/master/onvm/onvm_mgr/onvm_init.h#L81-L83

I expect that if you modify the macro you can make this work for larger packets (but DPDK will be allocating 9KB for every packet even if some are small and some are large). I don't know of any way for DPDK to be smarter about this.

See https://software.intel.com/content/www/us/en/develop/articles/jumbo-frames-in-open-vswitch-with-dpdk.html for more info