Re: [ovs-dev] [PATCH net v4] net: openvswitch: fix to make sure flow_lookup() is not preempted

2020-10-18 Thread Jakub Kicinski
On Sat, 17 Oct 2020 20:24:51 +0200 Eelco Chaudron wrote: > The flow_lookup() function uses per CPU variables, which must be called > with BH disabled. However, this is fine in the general NAPI use case > where the local BH is disabled. But, it's also called from the netlink > context. The below

[ovs-dev] [PATCH net v4] net: openvswitch: fix to make sure flow_lookup() is not preempted

2020-10-17 Thread Eelco Chaudron
The flow_lookup() function uses per CPU variables, which must be called with BH disabled. However, this is fine in the general NAPI use case where the local BH is disabled. But, it's also called from the netlink context. The below patch makes sure that even in the netlink path, the BH is disabled.