summaryrefslogtreecommitdiff
path: root/tools/virtio
diff options
context:
space:
mode:
authorMatthieu Baerts <matthieu.baerts@tessares.net>2023-07-30 11:05:17 +0300
committerJakub Kicinski <kuba@kernel.org>2023-08-01 06:11:53 +0300
commit1dc88d241f9260fac6477ad040a5f1edbc3c2968 (patch)
tree73eb2ba7ffb364318bb85bf826983e4194d9e31c /tools/virtio
parent9466df1a27d55842bec496d3a84e98ee938c31aa (diff)
downloadlinux-1dc88d241f9260fac6477ad040a5f1edbc3c2968.tar.xz
selftests: mptcp: pm_nl_ctl: always look for errors
If a Netlink command for the MPTCP path-managers is not valid, it is important to check if there are errors. If yes, they need to be reported instead of being ignored and exiting without errors. Now if no replies are expected, an ACK from the kernelspace is asked by the userspace in order to always expect a reply. We can use the same buffer that is currently always >1024 bytes. Then we can check if there is an error (err->error), print it if any and report the error. After this modification, it is required to mute expected errors in mptcp_join.sh and pm_netlink.sh selftests: - when trying to add a bad endpoint, e.g. duplicated - when trying to set the two limits above the hard limit Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Link: https://lore.kernel.org/r/20230730-upstream-net-next-20230728-mptcp-selftests-misc-v1-3-7e9cc530a9cd@tessares.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/virtio')
0 files changed, 0 insertions, 0 deletions