gso: do not gro on small packets 69/31869/19
authorAloys Augustin <aloaugus@cisco.com>
Wed, 15 Sep 2021 14:06:04 +0000 (16:06 +0200)
committerBeno�t Ganne <bganne@cisco.com>
Mon, 27 Sep 2021 09:54:56 +0000 (09:54 +0000)
commit86490da4ce4cc5b872dd625a9eb3f19ed10f848e
treeba2d7732d4c7eeab49ac3cf841be2ec35b2c91cd
parentb21fd4b7e09455f199495e7160d5537195e36046
gso: do not gro on small packets

This has two benefits: fix an issue where small packets can be
padded to 64 bytes by the ethernet layer, and we included these bytes
in the tcp stream; and also if we receive a small packet, it signals
that this tcp stream is likely more latency-sensitive than throughput-
sensitive, and skipping gro buffering should be beneficial.

Type: fix
Change-Id: I165b97673d8cdce95ebf0a66c362ae9f9e6f3f34
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
src/vnet/gso/gro_func.h
test/test_gro.py