Skip to contentSkip to conversation

raw/octeontx2_dma: fix unavailable PCI device in dpivf

PATCH In review Radha Mohan Chintakuntla 3 participants 3 messages Mar 22, 2021 – Apr 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 raw/octeontx2_dma: fix unavailable PCI device in dpivf

Add PCI device to dpivf structure.

Fixes 4495bd887d38 ("raw/octeontx2_dma: support multiple DPI blocks")
---
 drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c +1 -0
index efdba2779b..8c01f25ec7 100644
@@ -389,6 +389,7 @@ otx2_dpi_rawdev_probe(struct rte_pci_driver *pci_drv __rte_unused,
 	vf_id = ((pci_dev->addr.devid & 0x1F) << 3) |
 		 (pci_dev->addr.function & 0x7);
 	vf_id -= 1;
+	dpivf->dev = pci_dev;
 	dpivf->state = DPI_QUEUE_START;
 	dpivf->vf_id = vf_id;
 	dpivf->vf_bar0 = (uintptr_t)pci_dev->mem_resource[0].addr;
Signature · 1 line
2.24.1
#1 lore raw
Quoted 4 lines · Radha Mohan Chintakuntla

Add PCI device to dpivf structure.

Fixes 4495bd887d38 ("raw/octeontx2_dma: support multiple DPI blocks")

Since it is a fix, Please describe what is fixed in git commit log.

Quoted 20 lines
---
 drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c +1 -1
index efdba2779b..8c01f25ec7 100644
@@ -389,6 +389,7 @@ otx2_dpi_rawdev_probe(struct rte_pci_driver *pci_drv __rte_unused,
        vf_id = ((pci_dev->addr.devid & 0x1F) << 3) |
                 (pci_dev->addr.function & 0x7);
        vf_id -= 1;
+       dpivf->dev = pci_dev;
        dpivf->state = DPI_QUEUE_START;
        dpivf->vf_id = vf_id;
        dpivf->vf_bar0 = (uintptr_t)pci_dev->mem_resource[0].addr;
--

2.24.1

#2 lore raw
Quoted 9 lines · Jerin Jacob
Quoted 4 lines · Radha Mohan Chintakuntla

Add PCI device to dpivf structure.

Fixes 4495bd887d38 ("raw/octeontx2_dma: support multiple DPI blocks")

Since it is a fix, Please describe what is fixed in git commit log.

ok submitted v2.

Quoted 22 lines
Quoted 22 lines
---
 drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c +1 -1
index efdba2779b..8c01f25ec7 100644
@@ -389,6 +389,7 @@ otx2_dpi_rawdev_probe(struct rte_pci_driver *pci_drv __rte_unused,
        vf_id = ((pci_dev->addr.devid & 0x1F) << 3) |
                 (pci_dev->addr.function & 0x7);
        vf_id -= 1;
+       dpivf->dev = pci_dev;
        dpivf->state = DPI_QUEUE_START;
        dpivf->vf_id = vf_id;
        dpivf->vf_bar0 = (uintptr_t)pci_dev->mem_resource[0].addr;
--

2.24.1