DPDK 25.03.0-rc0
rte_stack_lf_stubs.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019 Arm Limited
3 */
4
5#ifndef _RTE_STACK_LF_STUBS_H_
6#define _RTE_STACK_LF_STUBS_H_
7
8#include <rte_common.h>
9
10static __rte_always_inline unsigned int
11__rte_stack_lf_count(struct rte_stack *s)
12{
13 RTE_SET_USED(s);
14
15 return 0;
16}
17
18static __rte_always_inline void
19__rte_stack_lf_push_elems(struct rte_stack_lf_list *list,
20 struct rte_stack_lf_elem *first,
21 struct rte_stack_lf_elem *last,
22 unsigned int num)
23{
24 RTE_SET_USED(first);
25 RTE_SET_USED(last);
26 RTE_SET_USED(list);
27 RTE_SET_USED(num);
28}
29
30static __rte_always_inline struct rte_stack_lf_elem *
31__rte_stack_lf_pop_elems(struct rte_stack_lf_list *list,
32 unsigned int num,
33 void **obj_table,
34 struct rte_stack_lf_elem **last)
35{
36 RTE_SET_USED(obj_table);
37 RTE_SET_USED(last);
38 RTE_SET_USED(list);
39 RTE_SET_USED(num);
40
41 return NULL;
42}
43
44#endif /* _RTE_STACK_LF_STUBS_H_ */
#define RTE_SET_USED(x)
Definition: rte_common.h:187
#define __rte_always_inline
Definition: rte_common.h:413