On Fri, Jan 29, 2021 at 4:45 AM Nalla Pradeep <pna...@marvell.com> wrote:
>
> 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 <pna...@marvell.com>
> ---
> drivers/common/octeontx2/otx2_common.h | 3 ++-
> drivers/raw/octeontx2_ep/otx2_ep_rawdev.c | 6 +++---
> 2 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/common/octeontx2/otx2_common.h
> b/drivers/common/octeontx2/otx2_common.h
> index b6779f710..4938fb295 100644
> --- a/drivers/common/octeontx2/otx2_common.h
> +++ b/drivers/common/octeontx2/otx2_common.h
> @@ -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
> diff --git a/drivers/raw/octeontx2_ep/otx2_ep_rawdev.c
> b/drivers/raw/octeontx2_ep/otx2_ep_rawdev.c
> index 2b78a7941..b2ccdda83 100644
> --- a/drivers/raw/octeontx2_ep/otx2_ep_rawdev.c
> +++ b/drivers/raw/octeontx2_ep/otx2_ep_rawdev.c
> @@ -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;
> --
> 2.17.1
>
Acked-by: Radha Mohan Chintakuntla <rad...@marvell.com>