mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-18 03:44:27 +08:00
fc411eaac8
This patch is a trivial passthrough towards the ocelot library, which
support port policers since commit 2c1d029a01
("net: mscc: ocelot:
Implement port policers via tc command").
Some data structure conversion between the DSA core and the Ocelot
library is necessary, for policer parameters.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 lines
416 B
C
18 lines
416 B
C
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
|
|
/* Microsemi Ocelot Switch driver
|
|
*
|
|
* Copyright (c) 2019 Microsemi Corporation
|
|
*/
|
|
|
|
#ifndef _MSCC_OCELOT_POLICE_H_
|
|
#define _MSCC_OCELOT_POLICE_H_
|
|
|
|
#include "ocelot.h"
|
|
|
|
int ocelot_ace_policer_add(struct ocelot *ocelot, u32 pol_ix,
|
|
struct ocelot_policer *pol);
|
|
|
|
int ocelot_ace_policer_del(struct ocelot *ocelot, u32 pol_ix);
|
|
|
|
#endif /* _MSCC_OCELOT_POLICE_H_ */
|