]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
selftests/net: remove min gso test in packet_snd
authorDust Li <dust.li@linux.alibaba.com>
Thu, 23 Sep 2021 22:43:36 +0000 (16:43 -0600)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 24 Sep 2021 13:49:14 +0000 (15:49 +0200)
commit079b95389f2427e12c9a44243cb25a6cf413f59b
tree40d2eb0f70c2a07c42287a7954a91e1ef28a488f
parentf3d2a0b456fab182562d4d224e6a25a16a51e9c2
selftests/net: remove min gso test in packet_snd

BugLink: https://bugs.launchpad.net/bugs/1892213
This patch removed the 'raw gso min size - 1' test which
always fails now:
./in_netns.sh ./psock_snd -v -c -g -l "${mss}"
  raw gso min size - 1 (expected to fail)
  tx: 1524
  rx: 1472
  OK

After commit 7c6d2ecbda83 ("net: be more gentle about silly
gso requests coming from user"), we relaxed the min gso_size
check in virtio_net_hdr_to_skb().
So when a packet which is smaller then the gso_size,
GSO for this packet will not be set, the packet will be
send/recv successfully.

Signed-off-by: Dust Li <dust.li@linux.alibaba.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit cfba3fb68960b4e1fb63b4e3d95970b4a4be8577)
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
tools/testing/selftests/net/psock_snd.sh