octeon: add support for SDP device
This patch adds support for SDP (System DPI Packet Interface Unit) device. Type: feature Change-Id: Idf1f53b151edf2992613746d5818409187b4b051 Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
This commit is contained in:

committed by
Damjan Marion

parent
36d099a5cd
commit
043560ef2d
@ -52,6 +52,7 @@ static struct
|
|||||||
|
|
||||||
_ (0xa063, RVU_PF, "Marvell Octeon Resource Virtualization Unit PF"),
|
_ (0xa063, RVU_PF, "Marvell Octeon Resource Virtualization Unit PF"),
|
||||||
_ (0xa0f8, RVU_VF, "Marvell Octeon Resource Virtualization Unit VF"),
|
_ (0xa0f8, RVU_VF, "Marvell Octeon Resource Virtualization Unit VF"),
|
||||||
|
_ (0xa0f7, SDP_VF, "Marvell Octeon System DPI Packet Interface Unit VF"),
|
||||||
_ (0xa0f3, CPT_VF, "Marvell Octeon Cryptographic Accelerator Unit VF"),
|
_ (0xa0f3, CPT_VF, "Marvell Octeon Cryptographic Accelerator Unit VF"),
|
||||||
#undef _
|
#undef _
|
||||||
};
|
};
|
||||||
@ -239,12 +240,19 @@ oct_init (vlib_main_t *vm, vnet_dev_t *dev)
|
|||||||
strncpy ((char *) cd->plt_pci_dev.name, dev->device_id,
|
strncpy ((char *) cd->plt_pci_dev.name, dev->device_id,
|
||||||
sizeof (cd->plt_pci_dev.name) - 1);
|
sizeof (cd->plt_pci_dev.name) - 1);
|
||||||
|
|
||||||
if (cd->type == OCT_DEVICE_TYPE_RVU_PF || cd->type == OCT_DEVICE_TYPE_RVU_VF)
|
switch (cd->type)
|
||||||
return oct_init_nix (vm, dev);
|
{
|
||||||
else if (cd->type == OCT_DEVICE_TYPE_CPT_VF)
|
case OCT_DEVICE_TYPE_RVU_PF:
|
||||||
return oct_init_cpt (vm, dev);
|
case OCT_DEVICE_TYPE_RVU_VF:
|
||||||
else
|
case OCT_DEVICE_TYPE_SDP_VF:
|
||||||
return VNET_DEV_ERR_UNSUPPORTED_DEVICE;
|
return oct_init_nix (vm, dev);
|
||||||
|
|
||||||
|
case OCT_DEVICE_TYPE_CPT_VF:
|
||||||
|
return oct_init_cpt (vm, dev);
|
||||||
|
|
||||||
|
default:
|
||||||
|
return VNET_DEV_ERR_UNSUPPORTED_DEVICE;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ typedef enum
|
|||||||
OCT_DEVICE_TYPE_UNKNOWN = 0,
|
OCT_DEVICE_TYPE_UNKNOWN = 0,
|
||||||
OCT_DEVICE_TYPE_RVU_PF,
|
OCT_DEVICE_TYPE_RVU_PF,
|
||||||
OCT_DEVICE_TYPE_RVU_VF,
|
OCT_DEVICE_TYPE_RVU_VF,
|
||||||
|
OCT_DEVICE_TYPE_SDP_VF,
|
||||||
OCT_DEVICE_TYPE_CPT_VF,
|
OCT_DEVICE_TYPE_CPT_VF,
|
||||||
} __clib_packed oct_device_type_t;
|
} __clib_packed oct_device_type_t;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user