mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-25 09:39:34 +07:00
4561705b17
Prepare an array of policer IDs to register with devlink and their associated parameters. The array is composed from both policers that are currently bound to exposed trap groups and policers that are not bound to any trap group. v2: * Provide max/min rate/burst size when registering policers Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
17 lines
445 B
C
17 lines
445 B
C
/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
|
|
/* Copyright (c) 2020 Mellanox Technologies. All rights reserved */
|
|
|
|
#ifndef _MLXSW_SPECTRUM_TRAP_H
|
|
#define _MLXSW_SPECTRUM_TRAP_H
|
|
|
|
#include <net/devlink.h>
|
|
|
|
struct mlxsw_sp_trap {
|
|
struct devlink_trap_policer *policers_arr; /* Registered policers */
|
|
u64 policers_count; /* Number of registered policers */
|
|
u64 max_policers;
|
|
unsigned long policers_usage[]; /* Usage bitmap */
|
|
};
|
|
|
|
#endif
|