1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /********************************************************************20**
21 Name: System Services -- Message manipulation functions
25 Desc: Macro definitions for message related functions.
29 *********************************************************************21*/
39 /* default SS region ID */
40 #define SS_DFLT_REGION 0
41 #define SS_DFLT_POOL 0
43 #ifdef SS_MULTICORE_SUPPORT
50 #endif /* SS_MULTICORE_SUPPORT */
54 #define SS_POOL_DYNAMIC 1
55 #define SS_POOL_STATIC 2
57 /* Bucket threshold default values */
58 #define SS_BLK_RELEASE_THRESHOLD 110
59 #define SS_BLK_ACQUIRE_THRESHOLD 20
60 #define SS_DFLT_MEM_BLK_SET_SIZE 128
61 #define SS_MEM_TYPE_SSI_ZBC 0x11
62 #ifdef XEON_SPECIFIC_CHANGES
63 #define SS_MEM_TYPE_DPDK_ZBC 0x12
67 #define FIND_OFFSET(current, idx) \
72 bufSiz = (current->b_wptr - current->b_rptr); \
76 current = current->b_cont; \
80 #define FIND_OFFSET_AND_PREV(previous, current, idx) \
85 bufSiz = (current->b_wptr - current->b_rptr); \
90 current = current->b_cont; \
98 #endif /* __SSMSGH__ */
102 /********************************************************************30**
105 **********************************************************************/