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