Skip to content

Commit

Permalink
selftests: net: ioam: expect support for Queue depth data
Browse files Browse the repository at this point in the history
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: b63c547 ("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>
  • Loading branch information
IurmanJ authored and kuba-moo committed Jan 22, 2022
1 parent 63ec72b commit afa114d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/testing/selftests/net/ioam6_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit afa114d

Please sign in to comment.