projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63ec72b
)
selftests: net: ioam: expect support for Queue depth data
author
Justin Iurman
<justin.iurman@uliege.be>
Fri, 21 Jan 2022 17:34:49 +0000
(18:34 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 22 Jan 2022 03:26:39 +0000
(19:26 -0800)
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 <oliver.sang@intel.com>
Fixes:
b63c5478e9cb
("ipv6: ioam: Support for Queue depth data field")
Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Link:
https://lore.kernel.org/r/20220121173449.26918-1-justin.iurman@uliege.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/ioam6_parser.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/net/ioam6_parser.c
b/tools/testing/selftests/net/ioam6_parser.c
index
8f6997d
..
d9d1d41
100644
(file)
--- 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)