Nikolay Nikolay <kolko.netfilter@xxxxxxxxx> wrote: > what CPU spend a lot of time in read_lock_bh (in ebt_do_table). > > Because ebtables rules change rarely, we accept memory leak and remove > all locks to table. > > > It seems not difficult to replace read and write locks in ebtables to > rcu, like in iptables. So, good chance to do first commit into Linux > :) But why nobody do it before, maybe task contains hidden hard > issues? No, it should be easy by following what xtables is doing. But you will need to keep the local_bh_disable/enable around for counter sycnhonization, so not sure if there is a big win.