Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 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>

authored by

Dust Li and committed by
David S. Miller
cfba3fb6 220ade77

-3
-3
tools/testing/selftests/net/psock_snd.sh
··· 86 86 echo "raw gso min size" 87 87 ./in_netns.sh ./psock_snd -v -c -g -l "${mss_exceeds}" 88 88 89 - echo "raw gso min size - 1 (expected to fail)" 90 - (! ./in_netns.sh ./psock_snd -v -c -g -l "${mss}") 91 - 92 89 echo "raw gso max size" 93 90 ./in_netns.sh ./psock_snd -v -c -g -l "${max_mss}" 94 91