net/sfc: add representors proxy infrastructure
[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 struct sfc_repr_proxy {
20         uint32_t                        service_core_id;
21         uint32_t                        service_id;
22 };
23
24 struct sfc_adapter;
25
26 int sfc_repr_proxy_attach(struct sfc_adapter *sa);
27 void sfc_repr_proxy_detach(struct sfc_adapter *sa);
28 int sfc_repr_proxy_start(struct sfc_adapter *sa);
29 void sfc_repr_proxy_stop(struct sfc_adapter *sa);
30
31 #ifdef __cplusplus
32 }
33 #endif
34 #endif  /* _SFC_REPR_PROXY_H */