52 s =
format (s,
"%u\t", cpu_index);
59 if ((
u16) last_cdev != dev_id)
61 struct rte_cryptodev_info cdev_info;
63 rte_cryptodev_info_get (dev_id, &cdev_info);
65 s =
format(s,
"%u(%s)\t", dev_id, cdev_info.feature_flags &
66 RTE_CRYPTODEV_FF_HW_ACCELERATED ?
"HW" :
"SW");
75 char cipher_str[15], auth_str[15];
76 struct rte_cryptodev_capabilities cap;
81 cap.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC;
82 cap.sym.xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER;
83 cap.sym.cipher.algo = p_key->cipher_algo;
84 check_algo_is_supported (&cap, cipher_str);
85 cap.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC;
86 cap.sym.xform_type = RTE_CRYPTO_SYM_XFORM_AUTH;
87 cap.sym.auth.algo = p_key->auth_algo;
88 check_algo_is_supported (&cap, auth_str);
89 vlib_cli_output (vm,
"%u\t%10s\t%15s\t%3s\t%u\t%u\n",
90 vlib_mains[i]->cpu_index, cipher_str, auth_str,
91 p_key->is_outbound ?
"out" :
"in",
92 cwm->qp_data[data].dev_id,
93 cwm->qp_data[data].qp_id);
112 if (
unformat (line_input,
"verbose"))
128 .path =
"show crypto device mapping",
130 "show cryptodev device mapping <verbose>",
sll srl srl sll sra u16x4 i
#define hash_foreach(key_var, value_var, h, body)
static clib_error_t * lcore_cryptodev_map_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
dpdk_crypto_main_t dpdk_crypto_main
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
static vlib_thread_main_t * vlib_get_thread_main()
#define VLIB_CLI_COMMAND(x,...)
crypto_worker_main_t * workers_main
crypto_qp_data_t * qp_data
vlib_main_t ** vlib_mains
static u32 vlib_num_workers()
#define vec_foreach(var, vec)
Vector iterator.
#define clib_error_return(e, args...)
static void dpdk_ipsec_show_mapping(vlib_main_t *vm, u16 detail_display)