[dpdk-dev] [PATCH] common/octeontx2: add CNF95xx SoC support
Jerin Jacob Kollanukkaran
jerinj at marvell.com
Thu Jul 11 13:56:26 CEST 2019
> -----Original Message-----
> From: Nithin Dabilpuram <ndabilpuram at marvell.com>
> Sent: Wednesday, July 10, 2019 10:32 PM
> To: Jerin Jacob Kollanukkaran <jerinj at marvell.com>; Nithin Kumar
> Dabilpuram <ndabilpuram at marvell.com>; Vamsi Krishna Attunuru
> <vattunuru at marvell.com>; John McNamara <john.mcnamara at intel.com>;
> Marko Kovacevic <marko.kovacevic at intel.com>; Pavan Nikhilesh
> Bhagavatula <pbhagavatula at marvell.com>; Kiran Kumar Kokkilagadda
> <kirankumark at marvell.com>
> Cc: dev at dpdk.org
> Subject: [PATCH] common/octeontx2: add CNF95xx SoC support
>
> Update platform support of CNF95xx in documentation and also, update the
> HW cap based on PCI subsystem id and revision id.
> This patch also changes HW capability handling to be based on PCI Revision
> ID. PCI Revision ID contains a unique identifier to identify chip, major and
> minor revisions.
>
> Signed-off-by: Nithin Dabilpuram <ndabilpuram at marvell.com>
> pci_dev = container_of(event_dev->dev, struct rte_pci_device,
> device);
> + rc = rte_pci_read_config(pci_dev, &rev_id, 1,
> RVU_PCI_REVISION_ID);
> + if (rc != 1) {
> + otx2_err("Failed to read pci revision id, rc=%d", rc);
> + goto error;
> + }
Please remove this code duplication in all the drivers.
Other that it looks good to me.
More information about the dev
mailing list