Re: [PATCH net-next] inet: defrag: drop non-last frags smaller than min mtu

2018-08-02 Thread Eric Dumazet
On 08/02/2018 04:43 PM, Florian Westphal wrote: > don't bother with pathological cases, they only waste cycles. > IPv6 requires a minimum MTU of 1280 so we should never see fragments > smaller than this (except last frag). > > For IPv4, in practice, we could probably also adopt a higher limit,

[PATCH net-next] inet: defrag: drop non-last frags smaller than min mtu

2018-08-02 Thread Florian Westphal
don't bother with pathological cases, they only waste cycles. IPv6 requires a minimum MTU of 1280 so we should never see fragments smaller than this (except last frag). For IPv4, in practice, we could probably also adopt a higher limit, but for now use ipv4 min mtu (68). Cc: Peter Oskolkov Cc: E