60 s =
format (s,
"%u\t", cpu_index);
67 if ((
u16) last_cdev != dev_id)
69 struct rte_cryptodev_info cdev_info;
71 rte_cryptodev_info_get (dev_id, &cdev_info);
73 s =
format(s,
"%u(%s)\t", dev_id, cdev_info.feature_flags &
74 RTE_CRYPTODEV_FF_HW_ACCELERATED ?
"HW" :
"SW");
83 char cipher_str[15], auth_str[15];
84 struct rte_cryptodev_capabilities cap;
89 cap.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC;
90 cap.sym.xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER;
91 cap.sym.cipher.algo = p_key->cipher_algo;
92 check_algo_is_supported (&cap, cipher_str);
93 cap.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC;
94 cap.sym.xform_type = RTE_CRYPTO_SYM_XFORM_AUTH;
95 cap.sym.auth.algo = p_key->auth_algo;
96 check_algo_is_supported (&cap, auth_str);
97 vlib_cli_output (vm,
"%u\t%10s\t%15s\t%3s\t%u\t%u\n",
98 vlib_mains[i]->cpu_index, cipher_str, auth_str,
99 p_key->is_outbound ?
"out" :
"in",
100 cwm->qp_data[data].dev_id,
101 cwm->qp_data[data].qp_id);
121 if (
unformat (line_input,
"verbose"))
202 .path =
"show crypto device mapping",
204 "show cryptodev device mapping [verbose]",
sll srl srl sll sra u16x4 i
static void dpdk_ipsec_show_mapping(vlib_main_t *vm, u16 detail_display)
vlib_main_t ** vlib_mains
dpdk_crypto_main_t dpdk_crypto_main
dpdk_config_main_t dpdk_config_main
#define hash_foreach(key_var, value_var, h, body)
#define clib_error_return(e, args...)
#define VLIB_CLI_COMMAND(x,...)
crypto_worker_main_t * workers_main
crypto_qp_data_t * qp_data
static vlib_thread_main_t * vlib_get_thread_main()
static u32 vlib_num_workers()
#define vec_foreach(var, vec)
Vector iterator.
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
static clib_error_t * lcore_cryptodev_map_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)