Skip to content

Commit f0a08a9

Browse files
authored
Merge pull request #150 from polycube-network/pr/use_bcc_v0.10.0
update to new bcc
2 parents 2cc2f64 + 99f54e3 commit f0a08a9

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)