netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] nfp: flow-independent tc action hardware offload
@ 2022-02-17 10:56 Simon Horman
  2022-02-17 10:56 ` [PATCH net-next 1/6] nfp: refactor policer config to support ingress/egress meter Simon Horman
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Simon Horman @ 2022-02-17 10:56 UTC (permalink / raw)
  To: David Miller, Jakub Kicinski
  Cc: Baowen Zheng, Louis Peens, netdev, oss-drivers, Simon Horman

Baowen Zheng says:

Allow nfp NIC to offload tc actions independent of flows.

The motivation for this work is to offload tc actions independent of flows
for nfp NIC. We allow nfp driver to provide hardware offload of OVS
metering feature - which calls for policers that may be used by multiple
flows and whose lifecycle is independent of any flows that use them.

When nfp driver tries to offload a flow table using the independent action,
the driver will search if the action is already offloaded to the hardware.
If not, the flow table offload will fail.

When the nfp NIC successes to offload an action, the user can check
in_hw_count when dumping the tc action.

Tc cli command to offload and dump an action:

 # tc actions add action police rate 100mbit burst 10000k index 200 skip_sw

 # tc -s -d actions list action police

 total acts 1

      action order 0:  police 0xc8 rate 100Mbit burst 10000Kb mtu 2Kb action reclassify
      overhead 0b linklayer ethernet
      ref 1 bind 0  installed 142 sec used 0 sec
      Action statistics:
      Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
      backlog 0b 0p requeues 0
      skip_sw in_hw in_hw_count 1
      used_hw_stats delayed

Baowen Zheng (6):
  nfp: refactor policer config to support ingress/egress meter
  nfp: add support to offload tc action to hardware
  nfp: add hash table to store meter table
  nfp: add process to get action stats from hardware
  nfp: add support to offload police action from flower table
  nfp: add NFP_FL_FEATS_QOS_METER to host features to enable meter
    offload

 .../ethernet/netronome/nfp/flower/action.c    |  58 +++
 .../net/ethernet/netronome/nfp/flower/cmsg.h  |   7 +
 .../net/ethernet/netronome/nfp/flower/main.h  |  50 +-
 .../ethernet/netronome/nfp/flower/offload.c   |  16 +-
 .../ethernet/netronome/nfp/flower/qos_conf.c  | 440 +++++++++++++++++-
 5 files changed, 545 insertions(+), 26 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-02-18  8:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-17 10:56 [PATCH net-next 0/6] nfp: flow-independent tc action hardware offload Simon Horman
2022-02-17 10:56 ` [PATCH net-next 1/6] nfp: refactor policer config to support ingress/egress meter Simon Horman
2022-02-17 10:56 ` [PATCH net-next 2/6] nfp: add support to offload tc action to hardware Simon Horman
2022-02-18  4:39   ` Jakub Kicinski
2022-02-18  8:03     ` Baowen Zheng
2022-02-17 10:56 ` [PATCH net-next 3/6] nfp: add hash table to store meter table Simon Horman
2022-02-18  4:47   ` Jakub Kicinski
2022-02-18  8:26     ` Baowen Zheng
2022-02-17 10:56 ` [PATCH net-next 4/6] nfp: add process to get action stats from hardware Simon Horman
2022-02-17 10:56 ` [PATCH net-next 5/6] nfp: add support to offload police action from flower table Simon Horman
2022-02-17 10:56 ` [PATCH net-next 6/6] nfp: add NFP_FL_FEATS_QOS_METER to host features to enable meter offload Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).