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

Function drivers_remove

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

Source from the content-addressed store, hash-verified

890}
891
892static int
893drivers_remove(struct mlx5_common_device *cdev, uint32_t enabled_classes)
894{
895 struct mlx5_class_driver *driver;
896 int local_ret = -ENODEV;
897 unsigned int i = 0;
898 int ret = 0;
899
900 while (enabled_classes) {
901 driver = driver_get(RTE_BIT64(i));
902 if (driver != NULL) {
903 local_ret = driver->remove(cdev);
904 if (local_ret == 0)
905 cdev->classes_loaded &= ~RTE_BIT64(i);
906 else if (ret == 0)
907 ret = local_ret;
908 }
909 enabled_classes &= ~RTE_BIT64(i);
910 i++;
911 }
912 if (local_ret != 0 && ret == 0)
913 ret = local_ret;
914 return ret;
915}
916
917static int
918drivers_probe(struct mlx5_common_device *cdev, uint32_t user_classes,

Callers 3

drivers_probeFunction · 0.85
mlx5_common_dev_probeFunction · 0.85
mlx5_common_dev_removeFunction · 0.85

Calls 1

driver_getFunction · 0.85

Tested by

no test coverage detected