dd9ca07d15f06308b717eb79a197293dbdfa2bf2
[dpdk.git] / drivers / net / sfc / sfc_mae.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2019-2020 Xilinx, Inc.
4  * Copyright(c) 2019 Solarflare Communications Inc.
5  *
6  * This software was jointly developed between OKTET Labs (under contract
7  * for Solarflare) and Solarflare Communications, Inc.
8  */
9
10 #ifndef _SFC_MAE_H
11 #define _SFC_MAE_H
12
13 #include <stdbool.h>
14
15 #include "efx.h"
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /** Options for MAE support status */
22 enum sfc_mae_status {
23         SFC_MAE_STATUS_UNKNOWN = 0,
24         SFC_MAE_STATUS_UNSUPPORTED,
25         SFC_MAE_STATUS_SUPPORTED
26 };
27
28 struct sfc_mae {
29         /** NIC support for MAE status */
30         enum sfc_mae_status             status;
31         /** Priority level limit for MAE action rules */
32         unsigned int                    nb_action_rule_prios_max;
33 };
34
35 struct sfc_adapter;
36
37 int sfc_mae_attach(struct sfc_adapter *sa);
38 void sfc_mae_detach(struct sfc_adapter *sa);
39
40 #ifdef __cplusplus
41 }
42 #endif
43 #endif /* _SFC_MAE_H */