Test log:
'make run_tests -C net TEST_PROGS=veth.sh TEST_GEN_PROGS='' TEST_CUSTOM_PROGS='''
make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net'
make --no-builtin-rules ARCH=x86 -C ../../../.. headers_install
make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
INSTALL ./usr/include
make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
TAP version 13
1..1
# selftests: net: veth.sh
# default - gro flag ok
# - peer gro flag ok
# - tso flag ok
# - peer tso flag ok
# - aggregation ok
# - aggregation with TSO off ok
# with gro on - gro flag ok
# - peer gro flag ok
# - tso flag ok
# - peer tso flag ok
# - aggregation with TSO off ok
# default channels ok
# with gro enabled on link down - gro flag ok
# - peer gro flag ok
# - tso flag ok
# - peer tso flag ok
# - aggregation with TSO off ok
# setting tx channels ok
# setting both rx and tx channels ok
# bad setting: combined channels ok
# setting invalid channels nr ok
# bad setting: XDP with RX nr less than TX ok
# bad setting: reducing RX nr below peer TX with XDP set fail - set operation successful ?!?
# bad setting: increasing peer TX nr above RX with XDP set fail - set operation successful ?!?
# setting invalid channels nr fail rx:2:1 tx:2:2 combined:n/a:n/a
# with xdp attached - gro flag fail - expected on found off
# - peer gro flag ok
# - tso flag fail - expected off found on
# - peer tso flag ok
# - aggregation ok
# - after dev off, flag fail - expected on found off
# - peer flag ok
# - after gro on xdp off, gro flag ok
# - peer gro flag ok
# - tso flag ok
# - peer tso flag ok
# decreasing tx channels with device down fail rx:2:1 tx:1:1 combined:n/a:n/a
# - aggregation ok
# increasing tx channels with device down fail rx:2:1 tx:2:2 combined:n/a:n/a
# aggregation again with default and TSO off ok
not ok 1 selftests: net: veth.sh # exit=1
Issue found on Jammy OEM 5.17.0-1004.4
Test log: PROGS=' '' ubuntu/ autotest/ client/ tmp/ubuntu_ kernel_ selftests/ src/linux/ tools/testing/ selftests/ net' ubuntu/ autotest/ client/ tmp/ubuntu_ kernel_ selftests/ src/linux' ubuntu/ autotest/ client/ tmp/ubuntu_ kernel_ selftests/ src/linux'
'make run_tests -C net TEST_PROGS=veth.sh TEST_GEN_PROGS='' TEST_CUSTOM_
make: Entering directory '/home/
make --no-builtin-rules ARCH=x86 -C ../../../.. headers_install
make[1]: Entering directory '/home/
INSTALL ./usr/include
make[1]: Leaving directory '/home/
TAP version 13
1..1
# selftests: net: veth.sh
# default - gro flag ok
# - peer gro flag ok
# - tso flag ok
# - peer tso flag ok
# - aggregation ok
# - aggregation with TSO off ok
# with gro on - gro flag ok
# - peer gro flag ok
# - tso flag ok
# - peer tso flag ok
# - aggregation with TSO off ok
# default channels ok
# with gro enabled on link down - gro flag ok
# - peer gro flag ok
# - tso flag ok
# - peer tso flag ok
# - aggregation with TSO off ok
# setting tx channels ok
# setting both rx and tx channels ok
# bad setting: combined channels ok
# setting invalid channels nr ok
# bad setting: XDP with RX nr less than TX ok
# bad setting: reducing RX nr below peer TX with XDP set fail - set operation successful ?!?
# bad setting: increasing peer TX nr above RX with XDP set fail - set operation successful ?!?
# setting invalid channels nr fail rx:2:1 tx:2:2 combined:n/a:n/a
# with xdp attached - gro flag fail - expected on found off
# - peer gro flag ok
# - tso flag fail - expected off found on
# - peer tso flag ok
# - aggregation ok
# - after dev off, flag fail - expected on found off
# - peer flag ok
# - after gro on xdp off, gro flag ok
# - peer gro flag ok
# - tso flag ok
# - peer tso flag ok
# decreasing tx channels with device down fail rx:2:1 tx:1:1 combined:n/a:n/a
# - aggregation ok
# increasing tx channels with device down fail rx:2:1 tx:2:2 combined:n/a:n/a
# aggregation again with default and TSO off ok
not ok 1 selftests: net: veth.sh # exit=1