net/sfc: reserve queues for port representors
[dpdk.git] / drivers / net / sfc / sfc_repr_proxy.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2019-2021 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_REPR_PROXY_H
11 #define _SFC_REPR_PROXY_H
12
13 #include <stdint.h>
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /* Number of supported RxQs with different mbuf memory pools */
20 #define SFC_REPR_PROXY_NB_RXQ_MIN       (1)
21 #define SFC_REPR_PROXY_NB_RXQ_MAX       (1)
22
23 /* One TxQ is required and sufficient for port representors support */
24 #define SFC_REPR_PROXY_NB_TXQ_MIN       (1)
25 #define SFC_REPR_PROXY_NB_TXQ_MAX       (1)
26
27 struct sfc_repr_proxy {
28         uint32_t                        service_core_id;
29         uint32_t                        service_id;
30 };
31
32 struct sfc_adapter;
33
34 int sfc_repr_proxy_attach(struct sfc_adapter *sa);
35 void sfc_repr_proxy_detach(struct sfc_adapter *sa);
36 int sfc_repr_proxy_start(struct sfc_adapter *sa);
37 void sfc_repr_proxy_stop(struct sfc_adapter *sa);
38
39 #ifdef __cplusplus
40 }
41 #endif
42 #endif  /* _SFC_REPR_PROXY_H */