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

Function is_valid_class_combination

dpdk/drivers/common/mlx5/mlx5_common.c:422–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420};
421
422static int
423is_valid_class_combination(uint32_t user_classes)
424{
425 unsigned int i;
426
427 /* Verify if user specified unsupported combination. */
428 for (i = 0; i < RTE_DIM(mlx5_class_invalid_combinations); i++) {
429 if ((mlx5_class_invalid_combinations[i] & user_classes) ==
430 mlx5_class_invalid_combinations[i])
431 return -EINVAL;
432 }
433 /* Not found any invalid class combination. */
434 return 0;
435}
436
437static bool
438mlx5_bus_match(const struct mlx5_class_driver *drv,

Callers 1

mlx5_common_dev_probeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected