-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdcp_process.h
37 lines (27 loc) · 918 Bytes
/
pdcp_process.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2023 Marvell.
*/
#ifndef PDCP_PROCESS_H
#define PDCP_PROCESS_H
#include <rte_mbuf_dyn.h>
#include <rte_pdcp.h>
#include <pdcp_entity.h>
#include <pdcp_cnt.h>
typedef uint32_t rte_pdcp_dynfield_t;
extern int rte_pdcp_dynfield_offset;
static inline rte_pdcp_dynfield_t *
pdcp_dynfield(struct rte_mbuf *mbuf)
{
return RTE_MBUF_DYNFIELD(mbuf, rte_pdcp_dynfield_offset, rte_pdcp_dynfield_t *);
}
int
pdcp_process_func_set(struct rte_pdcp_entity *entity, const struct rte_pdcp_entity_conf *conf);
static inline void
pdcp_rx_deliv_set(const struct rte_pdcp_entity *entity, uint32_t rx_deliv)
{
struct entity_priv_dl_part *dl = entity_dl_part_get(entity);
struct entity_priv *en_priv = entity_priv_get(entity);
pdcp_cnt_bitmap_range_clear(dl->bitmap, en_priv->state.rx_deliv, rx_deliv);
en_priv->state.rx_deliv = rx_deliv;
}
#endif /* PDCP_PROCESS_H */