Re: [PATCH] net: openvswitch: introduce common code for flushing flows

2020-08-11 Thread Cong Wang
On Mon, Aug 10, 2020 at 6:14 PM wrote: > > From: Tonghao Zhang > > To avoid some issues, for example RCU usage warning, we should > flush the flows under ovs_lock. This patch refactors > table_instance_destroy and introduces table_instance_flow_flush > which can be invoked by __dp_destroy or ovs_

Re: [PATCH] net: openvswitch: introduce common code for flushing flows

2020-08-11 Thread David Miller
From: xiangxia.m@gmail.com Date: Tue, 11 Aug 2020 09:10:01 +0800 > diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c > index 42f8cc70bb2c..5fec47e62615 100644 > --- a/net/openvswitch/datapath.c > +++ b/net/openvswitch/datapath.c > @@ -1756,6 +1756,9 @@ static int ovs_dp_cmd_

[PATCH] net: openvswitch: introduce common code for flushing flows

2020-08-10 Thread xiangxia . m . yue
From: Tonghao Zhang To avoid some issues, for example RCU usage warning, we should flush the flows under ovs_lock. This patch refactors table_instance_destroy and introduces table_instance_flow_flush which can be invoked by __dp_destroy or ovs_flow_tbl_flush. Signed-off-by: Tonghao Zhang --- n