diff options
author | Magnus Karlsson <magnus.karlsson@intel.com> | 2021-08-25 11:37:21 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-08-25 21:23:11 +0200 |
commit | 279bdf6b79d5f6a4decbf2699092b55c8c782eec (patch) | |
tree | 6f0cbc6cb1525a29fdf5d8acfde759a7d6ef707e /tools/testing/selftests/bpf/xdpxceiver.c | |
parent | selftests: xsk: Generate packets from specification (diff) | |
download | linux-279bdf6b79d5f6a4decbf2699092b55c8c782eec.tar.xz linux-279bdf6b79d5f6a4decbf2699092b55c8c782eec.zip |
selftests: xsk: Make enums lower case
Make enums lower case as that is the standard. Also drop the
unnecessary TEST_MODE_UNCONFIGURED mode.
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210825093722.10219-16-magnus.karlsson@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/xdpxceiver.c')
-rw-r--r-- | tools/testing/selftests/bpf/xdpxceiver.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/testing/selftests/bpf/xdpxceiver.c b/tools/testing/selftests/bpf/xdpxceiver.c index 5ca853cf27a1..0c7b40d5f4b6 100644 --- a/tools/testing/selftests/bpf/xdpxceiver.c +++ b/tools/testing/selftests/bpf/xdpxceiver.c @@ -105,14 +105,9 @@ static const u16 UDP_PORT2 = 2121; static void __exit_with_error(int error, const char *file, const char *func, int line) { - if (configured_mode == TEST_MODE_UNCONFIGURED) { - ksft_exit_fail_msg - ("[%s:%s:%i]: ERROR: %d/\"%s\"\n", file, func, line, error, strerror(error)); - } else { - ksft_test_result_fail - ("[%s:%s:%i]: ERROR: %d/\"%s\"\n", file, func, line, error, strerror(error)); - ksft_exit_xfail(); - } + ksft_test_result_fail("[%s:%s:%i]: ERROR: %d/\"%s\"\n", file, func, line, error, + strerror(error)); + ksft_exit_xfail(); } #define exit_with_error(error) __exit_with_error(error, __FILE__, __func__, __LINE__) |