APPLIED[K/J]: [J/K][L][SRU][PATCH 0/1] selftests: net: devlink_port_split.py: skip test if no suitable device available
Stefan Bader
stefan.bader at canonical.com
Tue Mar 28 12:39:03 UTC 2023
On 20.03.23 04:59, Po-Hsu Lin wrote:
> [Impact]
> On s390x LPAR instances, this test will fail with:
> # File "linux/tools/testing/selftests/net/devlink_port_split.py", line 64, in get_if_names
> # if ports[port]['flavour'] == 'physical':
> # KeyError: 'flavour'
> not ok 1 selftests: net: devlink_port_split.py # exit=1
>
> This is because the mlx4 driver in use on this instance does not set
> attributes, therefore `devlink -j port show` command output does not
> contain this "flavour" key.
>
> [Fix]
> * 3de66d08d3 selftests: net: devlink_port_split.py: skip test if no
> suitable device available
>
> This patch can be cherry-picked into our J/K/L kernels.
>
> [Test]
> Run the patched devlink_port_split.py on s390x LPAR, and it won't
> fail with # KeyError: 'flavour' but marked as SKIP instead.
>
> [Where problems could occur]
> If this change is incorrect, it may affect the test result, however it's
> limited to testing tools, no actual impact to kernel functions.
>
> Po-Hsu Lin (1):
> selftests: net: devlink_port_split.py: skip test if no suitable device
> available
>
> tools/testing/selftests/net/devlink_port_split.py | 36 +++++++++++++++++++----
> 1 file changed, 31 insertions(+), 5 deletions(-)
>
Applied to kinetic,jammy:linux/master-next. Thanks.
-Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE8675DEECBEECEA3.asc
Type: application/pgp-keys
Size: 44613 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230328/2b7fcbcb/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230328/2b7fcbcb/attachment-0001.sig>
More information about the kernel-team
mailing list