Commit 4a46b24e authored by Committed by Pravin B Shelar
openvswitch: Use exact lookup for flow_get and flow_del.
Due to the race condition in userspace, there is chance that two overlapping megaflows could be installed in datapath. And this causes userspace unable to delete the less inclusive megaflow flow even after it timeout, since the flow_del logic will stop at the first match of masked flow. This commit fixes the bug by making the kernel flow_del and flow_get logic check all masks in that case. Introduced by 03f0d916 (openvswitch: Mega flow implementation). Signed-off-by: Alex Wang <email@example.com> Acked-by: Andy Zhou <firstname.lastname@example.org> Signed-off-by: Pravin B Shelar <email@example.com>
Showing with 29 additions and 13 deletions