Re: [vpp-dev] why vlib_buffer_push_ip4 not support fragmentation and set df flag for tcp?

2021-06-30 Thread Florin Coras
Fragmentation is expensive. Therefore, because tcp originates the packets locally, we do not want it to exceed the interface’s mtu. If you want to force larger bursts from tcp, try enabling tso if the egress interface supports it. Any particular reason why you’d like tcp to use such a large

[vpp-dev] why vlib_buffer_push_ip4 not support fragmentation and set df flag for tcp?

2021-06-30 Thread jiangxiaoming
Hi guys, In my project, I set tcp mtu 9000 in vpp startup file: tcp { mtu 9000 }, and set interfaces mtu 1500. When sending tcp packet, vlib_buffer_push_ip4 will add 'dont frag' flag for packet, if tcp data more then 1500 bytes, i will "ip4 MTU exceeded and DF set" error. always_inline void *