of ``rte_rawdev_get_dev_id("NAME:x")`` from the test application, where:
- NAME is the desired subsystem: use "BPHY" for regular, and "BPHY_CGX" for
- RFOE module,
-- x is the device's bus id specified in "bus:device.func" (BDF) format.
+ RFOE module.
+- x is the device's bus id specified in "bus:device.func" (BDF) format. BDF follows convention
+ used by lspci i.e bus, device and func are specified using respectively two, two and one hex
+ digit(s).
Use this identifier for further rawdev function calls.
static void
bphy_rawdev_get_name(char *name, struct rte_pci_device *pci_dev)
{
- snprintf(name, RTE_RAWDEV_NAME_MAX_LEN, "BPHY:%x:%02x.%x",
+ snprintf(name, RTE_RAWDEV_NAME_MAX_LEN, "BPHY:%02x:%02x.%x",
pci_dev->addr.bus, pci_dev->addr.devid,
pci_dev->addr.function);
}
cnxk_bphy_cgx_format_name(char *name, unsigned int len,
struct rte_pci_device *pci_dev)
{
- snprintf(name, len, "BPHY_CGX:%x:%02x.%x", pci_dev->addr.bus,
+ snprintf(name, len, "BPHY_CGX:%02x:%02x.%x", pci_dev->addr.bus,
pci_dev->addr.devid, pci_dev->addr.function);
}