]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/net: remove min gso test in packet_snd
authorDust Li <dust.li@linux.alibaba.com>
Fri, 30 Jul 2021 03:41:55 +0000 (11:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Aug 2021 09:34:04 +0000 (10:34 +0100)
commit1c77b51b23f6f8198cb3c6e6283923142fd16758
tree01dcccd8728db1249e694903991643b92da99412
parent9e73fb90bf56bfb091c8f534ef4ffd382f43c31d
selftests/net: remove min gso test in packet_snd

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 8578617793b0 ("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>
tools/testing/selftests/net/psock_snd.sh