DPDK
19.05.0
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
lib
librte_eventdev
rte_event_crypto_adapter.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2018 Intel Corporation.
3
* All rights reserved.
4
*/
5
6
#ifndef _RTE_EVENT_CRYPTO_ADAPTER_
7
#define _RTE_EVENT_CRYPTO_ADAPTER_
8
167
#ifdef __cplusplus
168
extern
"C"
{
169
#endif
170
171
#include <stdint.h>
172
173
#include "
rte_eventdev.h
"
174
178
enum
rte_event_crypto_adapter_mode
{
179
RTE_EVENT_CRYPTO_ADAPTER_OP_NEW
,
186
RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD
,
195
};
196
201
struct
rte_event_crypto_request
{
202
uint8_t
resv
[8];
207
uint16_t
cdev_id
;
209
uint16_t
queue_pair_id
;
211
uint32_t
resv1
;
213
};
214
225
union
rte_event_crypto_metadata
{
226
struct
rte_event_crypto_request
request_info
;
230
struct
rte_event
response_info
;
235
};
236
242
struct
rte_event_crypto_adapter_conf
{
243
uint8_t
event_port_id
;
248
uint32_t
max_nb
;
253
};
254
276
typedef
int (*
rte_event_crypto_adapter_conf_cb
) (uint8_t id, uint8_t dev_id,
277
struct
rte_event_crypto_adapter_conf
*conf,
278
void
*arg);
279
285
struct
rte_event_crypto_adapter_stats
{
286
uint64_t
event_poll_count
;
288
uint64_t
event_deq_count
;
290
uint64_t
crypto_enq_count
;
292
uint64_t
crypto_enq_fail
;
294
uint64_t
crypto_deq_count
;
296
uint64_t
event_enq_count
;
298
uint64_t
event_enq_retry_count
;
300
uint64_t
event_enq_fail_count
;
302
};
303
329
int
330
rte_event_crypto_adapter_create_ext
(uint8_t
id
, uint8_t dev_id,
331
rte_event_crypto_adapter_conf_cb
conf_cb,
332
enum
rte_event_crypto_adapter_mode
mode,
333
void
*conf_arg);
334
362
int
363
rte_event_crypto_adapter_create
(uint8_t
id
, uint8_t dev_id,
364
struct
rte_event_port_conf
*port_config,
365
enum
rte_event_crypto_adapter_mode
mode);
366
378
int
379
rte_event_crypto_adapter_free
(uint8_t
id
);
380
403
int
404
rte_event_crypto_adapter_queue_pair_add
(uint8_t
id
,
405
uint8_t cdev_id,
406
int32_t queue_pair_id,
407
const
struct
rte_event
*event);
408
425
int
426
rte_event_crypto_adapter_queue_pair_del
(uint8_t
id
, uint8_t cdev_id,
427
int32_t queue_pair_id);
428
444
int
445
rte_event_crypto_adapter_start
(uint8_t
id
);
446
457
int
458
rte_event_crypto_adapter_stop
(uint8_t
id
);
459
473
int
474
rte_event_crypto_adapter_stats_get
(uint8_t
id
,
475
struct
rte_event_crypto_adapter_stats
*stats);
476
487
int
488
rte_event_crypto_adapter_stats_reset
(uint8_t
id
);
489
505
int
506
rte_event_crypto_adapter_service_id_get
(uint8_t
id
, uint32_t *service_id);
507
522
int
523
rte_event_crypto_adapter_event_port_get
(uint8_t
id
, uint8_t *event_port_id);
524
525
#ifdef __cplusplus
526
}
527
#endif
528
#endif
/* _RTE_EVENT_CRYPTO_ADAPTER_ */
Generated by
1.8.1.2