[PATCH v2 03/24] net/cnxk: eswitch HW resource configuration
Jerin Jacob
jerinjacobk at gmail.com
Thu Jan 4 13:34:14 CET 2024
On Wed, Dec 20, 2023 at 12:58 AM Harman Kalra <hkalra at marvell.com> wrote:
>
> Configuring the hardware resources used by the eswitch device.
>
> Signed-off-by: Harman Kalra <hkalra at marvell.com>
> ---
> drivers/net/cnxk/cnxk_eswitch.c | 206 ++++++++++++++++++++++++++++++++
> 1 file changed, 206 insertions(+)
>
> +
> static int
> cnxk_eswitch_dev_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
> {
> @@ -433,6 +630,12 @@ cnxk_eswitch_dev_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pc
> return rc;
> +free_mem:
> + if (mz)
Not needed as rte_memzone_free has the check
> + rte_memzone_free(mz);
> fail:
> return rc;
> }
> --
> 2.18.0
>
More information about the dev
mailing list