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

Paul Blakey paulb at nvidia.com
Wed Mar 3 12:15:33 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.

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 | 126 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 133 insertions(+), 4 deletions(-)

-- 
1.8.3.1



More information about the dev mailing list