FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
crypto_sw_scheduler.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Intel and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include <vnet/crypto/crypto.h>
17 
18 #ifndef __crypto_sw_scheduler_h__
19 #define __crypto_sw_scheduler_h__
20 
21 #define CRYPTO_SW_SCHEDULER_QUEUE_SIZE 64
22 #define CRYPTO_SW_SCHEDULER_QUEUE_MASK (CRYPTO_SW_SCHEDULER_QUEUE_SIZE - 1)
23 
24 typedef struct
25 {
26  CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
31 
32 typedef struct
33 {
34  CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
43 
44 typedef struct
45 {
50 
52 
53 extern int crypto_sw_scheduler_set_worker_crypto (u32 worker_idx, u8 enabled);
54 
56 
57 #endif // __crypto_native_h__
58 
59 /*
60  * fd.io coding-style-patch-verification: ON
61  *
62  * Local Variables:
63  * eval: (c-set-style "gnu")
64  * End:
65  */
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
Definition: cache.h:60
clib_error_t * crypto_sw_scheduler_api_init(vlib_main_t *vm)
Definition: api.c:63
vlib_main_t * vm
Definition: in2out_ed.c:1582
int crypto_sw_scheduler_set_worker_crypto(u32 worker_idx, u8 enabled)
Definition: main.c:23
unsigned char u8
Definition: types.h:56
crypto_sw_scheduler_main_t crypto_sw_scheduler_main
Definition: main.c:626
unsigned int u32
Definition: types.h:88
crypto_sw_scheduler_per_thread_data_t * per_thread_data