table: Refactor __delitem__ in all table types
__delitem__ has some code duplication for the common case. The common
case is to call the low-level bpf_delete_elem function. Refactor the
code a bit for this case. It avoids duplication of code and will also
make the communication with BPFd simpler as well.
Test: Ran test_tools_smoke tests with all tests passing except for
test_shared_table.py which fails for me with or without this patch.
(Filing separate issue for that).
Signed-off-by: Joel Fernandes <joelaf@google.com>
Showing
Please register or sign in to comment