raw/octeontx2_ep: change PCI device ID
authorNalla Pradeep <pnalla@marvell.com>
Fri, 29 Jan 2021 12:44:59 +0000 (04:44 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:12 +0000 (18:16 +0100)
Device id to be probed by octeontx_ep raw device pmd is changed from
B203 to B204. B203 is for octeontx_ep net device pmd to probe.

Signed-off-by: Nalla Pradeep <pnalla@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/common/octeontx2/otx2_common.h
drivers/raw/octeontx2_ep/otx2_ep_rawdev.c

index b6779f7..4938fb2 100644 (file)
@@ -136,7 +136,8 @@ extern int otx2_logtype_ree;
 #define PCI_DEVID_OCTEONTX2_RVU_CPT_VF         0xA0FE
 #define PCI_DEVID_OCTEONTX2_RVU_AF_VF          0xA0f8
 #define PCI_DEVID_OCTEONTX2_DPI_VF             0xA081
-#define PCI_DEVID_OCTEONTX2_EP_VF              0xB203 /* OCTEON TX2 EP mode */
+#define PCI_DEVID_OCTEONTX2_EP_NET_VF          0xB203 /* OCTEON TX2 EP mode */
+#define PCI_DEVID_OCTEONTX2_EP_RAW_VF          0xB204 /* OCTEON TX2 EP mode */
 #define PCI_DEVID_OCTEONTX2_RVU_SDP_PF         0xA0f6
 #define PCI_DEVID_OCTEONTX2_RVU_SDP_VF         0xA0f7
 #define PCI_DEVID_OCTEONTX2_RVU_REE_PF         0xA0f4
index 2b78a79..b2ccdda 100644 (file)
@@ -22,7 +22,7 @@
 static const struct rte_pci_id pci_sdp_vf_map[] = {
        {
                RTE_PCI_DEVICE(PCI_VENDOR_ID_CAVIUM,
-                              PCI_DEVID_OCTEONTX2_EP_VF)
+                              PCI_DEVID_OCTEONTX2_EP_RAW_VF)
        },
        {
                .vendor_id = 0,
@@ -109,8 +109,8 @@ sdp_chip_specific_setup(struct sdp_device *sdpvf)
        int ret;
 
        switch (dev_id) {
-       case PCI_DEVID_OCTEONTX2_EP_VF:
-               sdpvf->chip_id = PCI_DEVID_OCTEONTX2_EP_VF;
+       case PCI_DEVID_OCTEONTX2_EP_RAW_VF:
+               sdpvf->chip_id = PCI_DEVID_OCTEONTX2_EP_RAW_VF;
                ret = sdp_vf_setup_device(sdpvf);
 
                break;