[ovs-dev] [PATCH v2] ofproto-dpif-xlate: avoid successive ct_clear datapath actions

Timothy Redaelli tredaelli at redhat.com
Mon May 24 12:39:54 UTC 2021


On Tue, 18 May 2021 06:17:48 -0400
Eelco Chaudron <echaudro at redhat.com> wrote:

> Due to flow lookup optimizations, especially in the resubmit/clone cases,
> we might end up with multiple ct_clear actions, which are not necessary.
> 
> This patch only adds the ct_clear action to the datapath if any ct state
> is tracked.
> 
> Signed-off-by: Eelco Chaudron <echaudro at redhat.com>
> ---
> v2: Insert ct_clear only when ct information is tracked vs tracking successive
>     ct_clear actions.
> 
> ofproto/ofproto-dpif-xlate.c |    4 +++-
>  tests/ofproto-dpif.at        |   25 +++++++++++++++++++++++++
>  2 files changed, 28 insertions(+), 1 deletion(-)


Acked-By: Timothy Redaelli <tredaelli at redhat.com>



More information about the dev mailing list