From: Baowen Zheng Date: Wed, 23 Feb 2022 16:23:02 +0000 (+0100) Subject: nfp: add NFP_FL_FEATS_QOS_METER to host features to enable meter offload X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5e98743cfad0173f8748bdcee322621df37dcc4c;p=linux.git nfp: add NFP_FL_FEATS_QOS_METER to host features to enable meter offload 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 Signed-off-by: Louis Peens Signed-off-by: Simon Horman Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/netronome/nfp/flower/main.h b/drivers/net/ethernet/netronome/nfp/flower/main.h index 729f3244be04d..fa902ce2dd82c 100644 --- a/drivers/net/ethernet/netronome/nfp/flower/main.h +++ b/drivers/net/ethernet/netronome/nfp/flower/main.h @@ -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;