Initialise device */
| 295 | |
| 296 | /* Initialise device */ |
| 297 | static int |
| 298 | null_bbdev_probe(struct rte_vdev_device *vdev) |
| 299 | { |
| 300 | struct bbdev_null_params init_params = { |
| 301 | rte_socket_id(), |
| 302 | RTE_BBDEV_DEFAULT_MAX_NB_QUEUES |
| 303 | }; |
| 304 | const char *name; |
| 305 | const char *input_args; |
| 306 | |
| 307 | if (vdev == NULL) |
| 308 | return -EINVAL; |
| 309 | |
| 310 | name = rte_vdev_device_name(vdev); |
| 311 | if (name == NULL) |
| 312 | return -EINVAL; |
| 313 | |
| 314 | input_args = rte_vdev_device_args(vdev); |
| 315 | parse_bbdev_null_params(&init_params, input_args); |
| 316 | |
| 317 | rte_bbdev_log_debug("Init %s on NUMA node %d with max queues: %d", |
| 318 | name, init_params.socket_id, init_params.queues_num); |
| 319 | |
| 320 | return null_bbdev_create(vdev, &init_params); |
| 321 | } |
| 322 | |
| 323 | /* Uninitialise device */ |
| 324 | static int |
nothing calls this directly
no test coverage detected