Skip to content

Commit

Permalink
fix cc queue/stack test kernel version
Browse files Browse the repository at this point in the history
This commit fixes the Kernel version check in test_queuestack_table.cc .
The correct one, as discussed in #3013, is 4.20 (not 5.0).

Signed-off-by: Simone Magnani <simonemagnani.96@gmail.com>
  • Loading branch information
s41m0n authored and yonghong-song committed Jul 13, 2020
1 parent 1abab9b commit d3a102d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cc/test_queuestack_table.cc
Expand Up @@ -19,8 +19,8 @@
#include <iostream>
#include <linux/version.h>

//Queue/Stack types are available only from 5.0.0
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
//Queue/Stack types are available only from 4.20
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)
TEST_CASE("queue table", "[queue_table]") {
const std::string BPF_PROGRAM = R"(
BPF_QUEUE(myqueue, int, 30);
Expand Down

0 comments on commit d3a102d

Please sign in to comment.