-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nfp: flower: add qos offload framework
Introduce matchall filter offload infrastructure that is needed to offload qos features like policing. Subsequent patches will make use of police-filters for ingress rate limiting. Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Pieter Jansen van Vuuren
authored and
David S. Miller
committed
May 6, 2019
1 parent
88c44a5
commit b66d035
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
/* Copyright (C) 2019 Netronome Systems, Inc. */ | ||
|
||
#include <net/pkt_cls.h> | ||
|
||
#include "cmsg.h" | ||
#include "main.h" | ||
|
||
int nfp_flower_setup_qos_offload(struct nfp_app *app, struct net_device *netdev, | ||
struct tc_cls_matchall_offload *flow) | ||
{ | ||
struct netlink_ext_ack *extack = flow->common.extack; | ||
struct nfp_flower_priv *fl_priv = app->priv; | ||
|
||
if (!(fl_priv->flower_ext_feats & NFP_FL_FEATS_VF_RLIM)) { | ||
NL_SET_ERR_MSG_MOD(extack, "unsupported offload: loaded firmware does not support qos rate limit offload"); | ||
return -EOPNOTSUPP; | ||
} | ||
|
||
return -EOPNOTSUPP; | ||
} |