Skip to content

Commit 99f54e3

Browse files
update to new bcc
The 0.7.0 version we're using is not compatible with kernels 5.0, update this to a 0.10.0 that is compatible. Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
1 parent bfaf880 commit 99f54e3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
find_package(LibYANG REQUIRED)
22

3+
include_directories(${CMAKE_SOURCE_DIR}/src/libs/bcc/src/cc/libbpf/include/uapi)
4+
35
option(INSTALL_CLI "installs the polycube CLI" ON)
46
option(HAVE_POLYCUBE_TOOLS "uses the polycube-tools package" OFF)
57
option(ENABLE_PCN_IPTABLES "enables the pcn-iptables" OFF)

src/libs/bcc

Submodule bcc updated 332 files

src/polycubed/src/base_cube.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void BaseCube::do_reload(const std::string &code, int index, ProgramType type) {
174174
// create new ebpf program, telling to steal the maps of this program
175175
std::unique_lock<std::mutex> bcc_guard(bcc_mutex);
176176
std::unique_ptr<ebpf::BPF> new_bpf_program = std::unique_ptr<ebpf::BPF>(
177-
new ebpf::BPF(0, nullptr, false, name_, &*programs->at(index)));
177+
new ebpf::BPF(0, nullptr, false, name_, false, &*programs->at(index)));
178178

179179
bcc_guard.unlock();
180180
compile(*new_bpf_program, code, index, type);

0 commit comments

Comments
 (0)