raw csum_off with bad offset (fails)
./psock_snd: write: Invalid argument
raw min size
tx: 42
rx: 0
OK
raw mtu size
tx: 1514
rx: 1472
OK
raw mtu size + 1 (fails)
./psock_snd: write: Message too long
raw vlan mtu size + 1 (fails)
./psock_snd: write: Message too long
dgram mtu size
tx: 1500
rx: 1472
OK
dgram mtu size + 1 (fails)
./psock_snd: write: Message too long
raw truncate hlen (fails: does not arrive)
tx: 14
./psock_snd: recv: Resource temporarily unavailable
raw truncate hlen - 1 (fails: EINVAL)
./psock_snd: write: Invalid argument
raw gso min size
tx: 1525
rx: 1473
OK
Can be found on OEM-OSP1 5.0.0-1067.72
selftests: net: psock_snd.sh ======= ======= ======= ======= ======
======
dgram
tx: 128
rx: 142
rx: 100
OK
dgram bind
tx: 128
rx: 142
rx: 100
OK
raw
tx: 142
rx: 142
rx: 100
OK
raw bind
tx: 142
rx: 142
rx: 100
OK
raw qdisc bypass
tx: 142
rx: 142
rx: 100
OK
raw vlan
tx: 146
rx: 100
OK
raw vnet hdr
tx: 152
rx: 142
rx: 100
OK
raw csum_off
tx: 152
rx: 142
rx: 100
OK
raw csum_off with bad offset (fails)
./psock_snd: write: Invalid argument
raw min size
tx: 42
rx: 0
OK
raw mtu size
tx: 1514
rx: 1472
OK
raw mtu size + 1 (fails)
./psock_snd: write: Message too long
raw vlan mtu size + 1 (fails)
./psock_snd: write: Message too long
dgram mtu size
tx: 1500
rx: 1472
OK
dgram mtu size + 1 (fails)
./psock_snd: write: Message too long
raw truncate hlen (fails: does not arrive)
tx: 14
./psock_snd: recv: Resource temporarily unavailable
raw truncate hlen - 1 (fails: EINVAL)
./psock_snd: write: Invalid argument
raw gso min size
tx: 1525
rx: 1473
OK
raw gso min size - 1 (fails)
tx: 1524
rx: 1472
OK
not ok 1..21 selftests: net: psock_snd.sh [FAIL]