summaryrefslogblamecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c
blob: 82422afa9f8ba02127bf31c85ec2b569b6a5ba0d (plain) (tree)




















                                                                                                                           
// 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;
}