| 444 | } |
| 445 | |
| 446 | static struct mlx5_common_device * |
| 447 | to_mlx5_device(const struct rte_device *rte_dev) |
| 448 | { |
| 449 | struct mlx5_common_device *cdev; |
| 450 | |
| 451 | TAILQ_FOREACH(cdev, &devices_list, next) { |
| 452 | if (rte_dev == cdev->dev) |
| 453 | return cdev; |
| 454 | } |
| 455 | return NULL; |
| 456 | } |
| 457 | |
| 458 | int |
| 459 | mlx5_dev_to_pci_str(const struct rte_device *dev, char *addr, size_t size) |
no outgoing calls
no test coverage detected