We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd552de commit 3085e81Copy full SHA for 3085e81
src/bindings/main.cpp
@@ -70,7 +70,8 @@ PYBIND11_MODULE(pylibbpf, m) {
70
.def("get_value_size", &BpfMap::get_value_size)
71
.def("get_max_entries", &BpfMap::get_max_entries)
72
.def("__getitem__", &BpfMap::lookup, py::arg("key"))
73
- .def("__setitem__", &BpfMap::update, py::arg("key"), py::arg("value"));
+ .def("__setitem__", &BpfMap::update, py::arg("key"), py::arg("value"))
74
+ .def("__delitem__", &BpfMap::delete_elem, py::arg("key"));
75
76
// StructParser
77
py::class_<StructParser>(m, "StructParser")
0 commit comments