On Thu, 4 Mar 2021, Paul Blakey wrote:

> Add offload support for ct_state rpl and inv flags.
> 
> For example:
> ovs-ofctl del-flows br-ovs
> ovs-ofctl add-flow br-ovs arp,actions=normal
> ovs-ofctl add-flow br-ovs "table=0, ip,ct_state=-trk 
> actions=ct(table=1,zone=5)"
> ovs-ofctl add-flow br-ovs "table=1, ip,ct_state=+trk+new actions=ct(zone=5, 
> commit),normal"
> ovs-ofctl add-flow br-ovs "table=1, ip,ct_zone=5,ct_state=+trk+est+rpl 
> actions=normal"
> ovs-ofctl add-flow br-ovs "table=1, ip,ct_zone=5,ct_state=+trk+est-rpl 
> actions=normal"
> 
> Also probe for actual kernel ct_state per flag support.
> 
> Changelog:
>     v1->v2:
>         In probe patch, if no support for ct_state flags, dont support 
> mark/label/zone...
> 
> Paul Blakey (3):
>   compat: Add ct_state flags definitions
>   netdev-offload-tc: Probe for support for any of the ct_state flags
>   netdev-offload-tc: Add support for ct_state flags inv and rpl
> 
>  acinclude.m4            |   6 +-
>  include/linux/pkt_cls.h |   5 +-
>  lib/netdev-offload-tc.c | 235 
> ++++++++++++++++++++++++++++++++++++++----------
>  3 files changed, 194 insertions(+), 52 deletions(-)
> 
> -- 
> 1.8.3.1
> 
> 

Patch 2/3 of v2 had an issue with wrong flags (flower's instead of 
ovs') being using in filling in  ct_state_support flags.
for some reason I don't have the original message-id to reply in thread, 
so I reply here.

Sending v3 with fix.
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to