[PATCH 05/15] bpf: Export a map-clearing function

2015-03-02 Thread Tom Zanussi
Add a new map_clear() function to bpf_map_ops along with a tracing_map_clear() export for external users. Map implementations that it makes sense for should implement it, otherwise it's not required. The bpf hashtab implementation does implement a clear operation, but since it doesn't make sense

[PATCH 05/15] bpf: Export a map-clearing function

2015-03-02 Thread Tom Zanussi
Add a new map_clear() function to bpf_map_ops along with a tracing_map_clear() export for external users. Map implementations that it makes sense for should implement it, otherwise it's not required. The bpf hashtab implementation does implement a clear operation, but since it doesn't make sense