[ovs-dev] [PATCH v3 0/3] Add offload support for ct_state rpl and inv flags

Paul Blakey paulb at nvidia.com
Sun Mar 7 14:22:00 UTC 2021

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.

        In probe patch, if no support for ct_state flags, dont support mark/label/zone...
        patch 2/3 - Used wrong (flower) ct_state flags for filling in (ovs) ct_state_support
        Added review by marcelo to 1/3 and 3/3 patches, thanks, please review patch 2
        changes if you can.

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(-)


More information about the dev mailing list