a69fe49e24c56857553da404a25d91a096614ba5
[o-du/phy.git] / fhi_lib / lib / src / xran_app_frag.h
1 /******************************************************************************\r
2 *\r
3 *   Copyright (c) 2019 Intel.\r
4 *\r
5 *   Licensed under the Apache License, Version 2.0 (the "License");\r
6 *   you may not use this file except in compliance with the License.\r
7 *   You may obtain a copy of the License at\r
8 *\r
9 *       http://www.apache.org/licenses/LICENSE-2.0\r
10 *\r
11 *   Unless required by applicable law or agreed to in writing, software\r
12 *   distributed under the License is distributed on an "AS IS" BASIS,\r
13 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 *   See the License for the specific language governing permissions and\r
15 *   limitations under the License.\r
16 *\r
17 *******************************************************************************/\r
18 \r
19 \r
20 /**\r
21  * @brief Header file for functions to perform application level fragmentation\r
22  *\r
23  * @file xran_app_frag.h\r
24  * @ingroup group_source_xran\r
25  * @author Intel Corporation\r
26  **/\r
27 \r
28 #ifndef _XRAN_APP_FRAG_\r
29 #define _XRAN_APP_FRAG_\r
30 \r
31 #ifdef __cplusplus\r
32 extern "C" {\r
33 #endif\r
34 \r
35 #include <stdint.h>\r
36 #include <stdio.h>\r
37 \r
38 #include <rte_config.h>\r
39 #include <rte_malloc.h>\r
40 #include <rte_memory.h>\r
41 #include <rte_mempool.h>\r
42 #include <rte_byteorder.h>\r
43 \r
44 #include "xran_fh_o_du.h"\r
45 #include "xran_cp_api.h"\r
46 \r
47 int32_t xran_app_fragment_packet(struct rte_mbuf *pkt_in, /* eth hdr is prepended */\r
48                                     struct rte_mbuf **pkts_out,\r
49                                     uint16_t nb_pkts_out,\r
50                                     uint16_t mtu_size,\r
51                                     struct rte_mempool *pool_direct,\r
52                                     struct rte_mempool *pool_indirect,\r
53                                     struct xran_section_info *sectinfo,\r
54                                     uint8_t *seqid);\r
55 \r
56 #ifdef __cplusplus\r
57 }\r
58 #endif\r
59 \r
60 #endif /* _XRAN_APP_FRAG_ */\r
61 \r