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

Function mlx5_roce_disable

dpdk/drivers/common/mlx5/linux/mlx5_common_os.c:683–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681}
682
683static int
684mlx5_roce_disable(const struct rte_device *dev)
685{
686 char pci_addr[PCI_PRI_STR_SIZE] = { 0 };
687
688 if (mlx5_dev_to_pci_str(dev, pci_addr, sizeof(pci_addr)) < 0)
689 return -rte_errno;
690 /* Firstly try to disable ROCE by Netlink and fallback to sysfs. */
691 if (mlx5_nl_roce_disable(pci_addr) != 0 &&
692 mlx5_sys_roce_disable(pci_addr) != 0)
693 return -rte_errno;
694 return 0;
695}
696
697static struct ibv_device *
698mlx5_os_get_ibv_dev(const struct rte_device *dev)

Callers 1

mlx5_vdpa_get_ibv_devFunction · 0.85

Calls 3

mlx5_dev_to_pci_strFunction · 0.85
mlx5_nl_roce_disableFunction · 0.85
mlx5_sys_roce_disableFunction · 0.85

Tested by

no test coverage detected