|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
18 #include <dpdk/ipsec/ipsec.h>
25 u32 indent = va_arg (*args,
u32);
26 u32 res_idx = va_arg (*args,
u32);
31 s =
format (s,
"%U thr_id %3d qp %2u dec_inflight %u, enc_inflights %u\n",
49 rte_cryptodevs[dev->
id].data->dev_started ?
"up" :
"down");
61 rte_cryptodev_get_feature_name (feat));
68 s =
format (s,
" Cipher:");
88 struct rte_cryptodev_stats
stats;
89 rte_cryptodev_stats_get (dev->
id, &
stats);
93 " enqueue %-10lu dequeue %-10lu enqueue_err %-10lu dequeue_err %-10lu \n",
95 stats.enqueue_err_count,
stats.dequeue_err_count);
133 rte_cryptodev_stats_reset (dev->
id);
152 .path =
"clear dpdk crypto devices statistics",
153 .short_help =
"clear dpdk crypto devices statistics",
199 .path =
"show dpdk crypto devices",
200 .short_help =
"show dpdk crypto devices",
209 u8 verbose = (
u8) va_arg (*args,
u32);
227 s =
format (s,
"%s%-20s dev-id %2u queue-pair %2u\n",
234 s =
format (s,
"%sCipher:", ind);
244 s =
format (s,
"%sAuth:", ind);
322 .path =
"show dpdk crypto placement",
323 .short_help =
"show dpdk crypto placement",
356 .path =
"show dpdk crypto placement verbose",
357 .short_help =
"show dpdk crypto placement verbose",
373 u8 dev_idx, auto_en = 0;
382 else if (
unformat (line_input,
"auto"))
454 if (idx[0] == res_idx)
472 .path =
"set dpdk crypto placement",
473 .short_help =
"set dpdk crypto placement (<device> <thread> | auto)",
518 u8 dev_idx = (
u8) ~ 0;
528 else if (
unformat (line_input,
"%u", &dev_idx))
577 .path =
"clear dpdk crypto placement",
578 .short_help =
"clear dpdk crypto placement <device> [<thread>]",
586 struct rte_mempool *mp = va_arg (*args,
struct rte_mempool *);
588 u32 count = rte_mempool_avail_count (mp);
590 s =
format (s,
"%s\n%Uavailable %7d, allocated %7d total %7d\n",
593 s =
format (s,
"%Uphys_addr %p, flags %08x, nb_mem_chunks %u\n",
595 mp->mz->iova, mp->flags, mp->nb_mem_chunks);
596 s =
format (s,
"%Uelt_size %4u, header_size %3u, trailer_size %u\n",
598 mp->elt_size, mp->header_size, mp->trailer_size);
599 s =
format (s,
"%Uprivate_data_size %3u, total_elt_size %u\n",
601 mp->private_data_size,
602 mp->elt_size + mp->header_size + mp->trailer_size);
621 struct rte_mempool **mp;
659 .path =
"show dpdk crypto pools",
660 .short_help =
"show dpdk crypto pools",
static u32 vlib_num_workers()
#define vec_end(v)
End (last data address) of vector.
#define clib_error_return(e, args...)
crypto_alg_t * cipher_algs
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vl_api_ikev2_sa_stats_t stats
vlib_worker_thread_t * vlib_worker_threads
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
#define vec_foreach_index(var, v)
Iterate over vector indices.
sll srl srl sll sra u16x4 i
crypto_resource_t * resource
u16 cipher_resource_idx[IPSEC_CRYPTO_N_ALG]
#define VLIB_CLI_COMMAND(x,...)
#define vec_pop(V)
Returns last element of a vector and decrements its length.
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
crypto_worker_main_t * workers_main
description fragment has unexpected format
u8 auth_support[IPSEC_INTEG_N_ALG]
u16 auth_resource_idx[IPSEC_INTEG_N_ALG]
#define vec_foreach(var, vec)
Vector iterator.
for(i=1;i<=collision_buckets;i++)
u8 cipher_support[IPSEC_CRYPTO_N_ALG]