Skip to content

Commit

Permalink
[BPFTable] clear_table_non_atomic: Remove duplicate macro
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Singh <[email protected]>
  • Loading branch information
gaurav1086 authored and yonghong-song committed Jun 19, 2020
1 parent c3ed131 commit e3daec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cc/api/BPFTable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ StatusTuple BPFTable::remove_value(const std::string& key_str) {
}

StatusTuple BPFTable::clear_table_non_atomic() {
if (desc.type == BPF_MAP_TYPE_HASH || desc.type == BPF_MAP_TYPE_PERCPU_HASH ||
if (desc.type == BPF_MAP_TYPE_HASH ||
desc.type == BPF_MAP_TYPE_LRU_HASH ||
desc.type == BPF_MAP_TYPE_PERCPU_HASH ||
desc.type == BPF_MAP_TYPE_HASH_OF_MAPS) {
Expand Down

0 comments on commit e3daec8

Please sign in to comment.