MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cryptodev_null_probe

Function cryptodev_null_probe

dpdk/drivers/crypto/null/null_crypto_pmd.c:183–210  ·  view source on GitHub ↗

Initialise null crypto device */

Source from the content-addressed store, hash-verified

181
182/** Initialise null crypto device */
183static int
184cryptodev_null_probe(struct rte_vdev_device *dev)
185{
186 struct rte_cryptodev_pmd_init_params init_params = {
187 "",
188 sizeof(struct null_crypto_private),
189 rte_socket_id(),
190 RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS
191 };
192 const char *name, *args;
193 int retval;
194
195 name = rte_vdev_device_name(dev);
196 if (name == NULL)
197 return -EINVAL;
198
199 args = rte_vdev_device_args(dev);
200
201 retval = rte_cryptodev_pmd_parse_input_args(&init_params, args);
202 if (retval) {
203 NULL_LOG(ERR,
204 "Failed to parse initialisation arguments[%s]",
205 args);
206 return -EINVAL;
207 }
208
209 return cryptodev_null_create(name, dev, &init_params);
210}
211
212static int
213cryptodev_null_remove_dev(struct rte_vdev_device *vdev)

Callers

nothing calls this directly

Calls 5

rte_socket_idFunction · 0.85
rte_vdev_device_nameFunction · 0.85
rte_vdev_device_argsFunction · 0.85
cryptodev_null_createFunction · 0.85

Tested by

no test coverage detected