[ovs-dev] [PATCH/RFC 0/7] Allow offload of OpenFlow Meters via TC

Simon Horman simon.horman at corigine.com
Wed Nov 10 16:28:51 UTC 2021


Hi,

we have been working on enhancing the upstream Linux kernel to allow
hardware offload of TC police action instances whose lifecycle is
independent of classifiers. The motivation for this work is to provide a
mechanism for hardware offload of OpenFlow meters by OVS via TC.

This patchset enhances OVS to take advantage of this feature, which is in
the process of being upstreamed to the Linux kernel.

We have had this series for quite some time and had intended to post it, in
accordance with our understanding of common practice, once the Kernel
upstreaming was complete. However, to facilitate review and at as a
counterpoint to a patchset with similar aims posted by Roi Dyan[1], we are
providing this patchset now.

We look forward to working with the community to enable this feature in OVS.

[1] [PATCH 0/6] Add support for ovs metering with tc offload
    https://www.mail-archive.com/ovs-dev@openvswitch.org/msg59982.html

Baowen Zheng (3):
  dpif-netlink: add support for offload of meters
  dpif-netlink: delete TC police action instance when deleting meter
    instance
  ofproto-dpif: add offloaded meter revalidatation

Tianyu Yuan (4):
  netdev-offload-tc: support offload of meter action
  netdev-offload-tc: get police action for meter configuration
  dpif: replace n_handlers with n_handlers_
  dpif-netlink: add offloaded meter stats dump in
    dpif_netlink_meter_get_stats

 lib/dpif-netdev.c             |   3 +-
 lib/dpif-netlink.c            | 502 ++++++++++++++++++++++++++++++++--
 lib/dpif-provider.h           |   6 +-
 lib/dpif.c                    |  18 +-
 lib/dpif.h                    |   6 +-
 lib/id-pool.c                 |   6 +
 lib/id-pool.h                 |   1 +
 lib/netdev-linux.c            |   8 +-
 lib/netdev-offload-tc.c       |   9 +
 lib/tc.c                      |  77 +++++-
 lib/tc.h                      |  24 ++
 ofproto/ofproto-dpif-upcall.c |   1 +
 ofproto/ofproto-dpif.c        |   4 +-
 ofproto/ofproto-dpif.h        |   2 +
 ofproto/ofproto-provider.h    |   2 +-
 ofproto/ofproto.c             |   3 +-
 16 files changed, 619 insertions(+), 53 deletions(-)

-- 
2.20.1



More information about the dev mailing list