nfp: add NFP_FL_FEATS_QOS_METER to host features to enable meter offload
authorBaowen Zheng <baowen.zheng@corigine.com>
Wed, 23 Feb 2022 16:23:02 +0000 (17:23 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Feb 2022 05:51:08 +0000 (21:51 -0800)
Add NFP_FL_FEATS_QOS_METER to host features to enable meter
offload in driver.

Before adding this feature, we will not offload any police action
since we will check the host features before offloading any police
action.

Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/flower/main.h

index 729f3244be04da48826f026016c9c4e14a6487ae..fa902ce2dd82c744239ca26b19f2581f677e8475 100644 (file)
@@ -66,7 +66,8 @@ struct nfp_app;
        NFP_FL_FEATS_PRE_TUN_RULES | \
        NFP_FL_FEATS_IPV6_TUN | \
        NFP_FL_FEATS_VLAN_QINQ | \
-       NFP_FL_FEATS_QOS_PPS)
+       NFP_FL_FEATS_QOS_PPS | \
+       NFP_FL_FEATS_QOS_METER)
 
 struct nfp_fl_mask_id {
        struct circ_buf mask_id_free_list;