nfp: flower: add support for packet-per-second policing
Subsystems (3)
PATCH 1/1 nfp: flower: add support for packet-per-second policing
From: Peng Zhang <[email protected]>
Allow hardware offload of a policer action attached to a matchall filter which enforces a packets-per-second rate-limit.
e.g.
tc filter add dev tap1 parent ffff: u32 match \
u32 0 0 police pkts_rate 3000 pkts_burst 1000
--- .../net/ethernet/netronome/nfp/flower/main.h | 4 +- .../ethernet/netronome/nfp/flower/qos_conf.c | 161 +++++++++++++----- 2 files changed, 119 insertions(+), 46 deletions(-)
drivers/net/ethernet/netronome/nfp/flower/main.h +3 -1
@@ -47,6 +47,7 @@ struct nfp_app;#define NFP_FL_FEATS_PRE_TUN_RULES BIT(6)#define NFP_FL_FEATS_IPV6_TUN BIT(7)#define NFP_FL_FEATS_VLAN_QINQ BIT(8) +#define NFP_FL_FEATS_QOS_PPS BIT(9)#define NFP_FL_FEATS_HOST_ACK BIT(31)#define NFP_FL_ENABLE_FLOW_MERGE BIT(0)
@@ -61,7 +62,8 @@ struct nfp_app; NFP_FL_FEATS_FLOW_MOD | \ NFP_FL_FEATS_PRE_TUN_RULES | \ NFP_FL_FEATS_IPV6_TUN | \ - NFP_FL_FEATS_VLAN_QINQ) + NFP_FL_FEATS_VLAN_QINQ | \ + NFP_FL_FEATS_QOS_PPS) struct nfp_fl_mask_id { struct circ_buf mask_id_free_list;
drivers/net/ethernet/netronome/nfp/flower/qos_conf.c +116 -45
241 lines not on this page · raw message
Signature · 1 line
2.20.1
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 10 lines · On Tue, 6 Apr 2021 17:54:52 +0200 you wrote:
From: Peng Zhang <[email protected]>
Allow hardware offload of a policer action attached to a matchall filter which enforces a packets-per-second rate-limit.
e.g.
tc filter add dev tap1 parent ffff: u32 match \u32 0 0 police pkts_rate 3000 pkts_burst 1000[...]
Here is the summary with links:
- [net-next] nfp: flower: add support for packet-per-second policing
https://git.kernel.org/netdev/net-next/c/631a44ed2560
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html