aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Iurman <[email protected]>2022-01-21 18:34:49 +0100
committerJakub Kicinski <[email protected]>2022-01-21 19:26:39 -0800
commitafa114d987c40e72ebbbc36bedf7d66b7cdc5883 (patch)
treeb60f6d4a8edb6689612acc17145354b7567436ab
parent63ec72bd58487935a2e40d2cdffe5c9498f1275e (diff)
selftests: net: ioam: expect support for Queue depth data
The IOAM queue-depth data field was added a few weeks ago, but the test unit was not updated accordingly. Reported-by: kernel test robot <[email protected]> Fixes: b63c5478e9cb ("ipv6: ioam: Support for Queue depth data field") Signed-off-by: Justin Iurman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--tools/testing/selftests/net/ioam6_parser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/testing/selftests/net/ioam6_parser.c b/tools/testing/selftests/net/ioam6_parser.c
index 8f6997d35816..d9d1d4190126 100644
--- a/tools/testing/selftests/net/ioam6_parser.c
+++ b/tools/testing/selftests/net/ioam6_parser.c
@@ -240,11 +240,8 @@ static int check_ioam6_data(__u8 **p, struct ioam6_trace_hdr *ioam6h,
*p += sizeof(__u32);
}
- if (ioam6h->type.bit6) {
- if (__be32_to_cpu(*((__u32 *)*p)) != 0xffffffff)
- return 1;
+ if (ioam6h->type.bit6)
*p += sizeof(__u32);
- }
if (ioam6h->type.bit7) {
if (__be32_to_cpu(*((__u32 *)*p)) != 0xffffffff)