From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9300D43816; Thu, 4 Jan 2024 13:34:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F3B6402CC; Thu, 4 Jan 2024 13:34:42 +0100 (CET) Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) by mails.dpdk.org (Postfix) with ESMTP id 33A10402C7 for ; Thu, 4 Jan 2024 13:34:41 +0100 (CET) Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-78104f6f692so30768785a.1 for ; Thu, 04 Jan 2024 04:34:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704371680; x=1704976480; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VkkUtwzXR+jmmIrZnSsqcTVnWQZ1AWJLF7MKLnsSizc=; b=k+GuXYeTOHA3lw4AnjE9G2aExu7WDVmkwjESVwPF1duhBEGyIRqtuOcoduJJqdXOVO skhwIS/c7yTzxoU/Xxixz5p3uMgVigpc/EB8huSc9ydv2cxUksHYAvZV7faU5Th3TBzZ S/LpxCX+7ppe4j104e4Ef9LtbRPdZ48DzuI4AfuzYNzyXWehaZ4eJuqKyW/kKRSAhniL 59hXvqWoAcLWeiRpM9T4PNXW3dEKe61GB3JKTUWG+sFEDCShCEg7hOq7r6zj+YjJKwtc HeQR7euZ1fz4oW2B461euNuiTYTJ1DJhrba7anjZbT/CpEBw/wyOaiJhSOg+qKR0CSci /7rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704371680; x=1704976480; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VkkUtwzXR+jmmIrZnSsqcTVnWQZ1AWJLF7MKLnsSizc=; b=HDWKuV9IcDhuzc6rL9xgZ3U194J4RRppmZBPC0z4jj3WOsSxlD8VrkXyOX+8YZOF1I pDyt3rWkZ+LRpg+aqISceATc3cayE1o0Eh7xsrGDlimVVmUlnSV2jFKbzjAWtDbVrglN 3cZAYzWLe4HML/y5j05CzV7hvWYC1ffsnqLEz4xgaO0oOIJ4wcyV8gMKg+dOk/2L+GVM tIl2f22AX2yznEwRiAWvtPtdUKyN57Vi3iVcYTb3aJ9w+tXxvxgbvkbIvx/SxKV7xEbE BbY0fKALeRzZLpAW4Zxj8R+0VQvPHrqKLwbwTHcogTr6phCAIOxPDYWjJD1UY/nn8e9X HNaA== X-Gm-Message-State: AOJu0YyKOQZ6jlh6swoxsyvhQrY0L2ewIRfk+JaOJPot1QZ7/mOzZ2Yv opHuBKo2eN+0OJrMQOORqie9JtRp+yS0liB8A0U= X-Google-Smtp-Source: AGHT+IEdsi4BjuB7HR0JmK0xXl0Cx8LWHDEXPwa+2F1iWemj7UhMJybNvILGQWKMgF6hnEpVbKRhlN2AbL/cUt89vUI= X-Received: by 2002:a05:620a:8424:b0:781:2d6:9ad3 with SMTP id pc36-20020a05620a842400b0078102d69ad3mr543946qkn.57.1704371680483; Thu, 04 Jan 2024 04:34:40 -0800 (PST) MIME-Version: 1.0 References: <20230811163419.165790-1-hkalra@marvell.com> <20231219174003.72901-1-hkalra@marvell.com> <20231219174003.72901-4-hkalra@marvell.com> In-Reply-To: <20231219174003.72901-4-hkalra@marvell.com> From: Jerin Jacob Date: Thu, 4 Jan 2024 18:04:14 +0530 Message-ID: Subject: Re: [PATCH v2 03/24] net/cnxk: eswitch HW resource configuration To: Harman Kalra Cc: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , dev@dpdk.org, jerinj@marvell.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, Dec 20, 2023 at 12:58=E2=80=AFAM Harman Kalra = wrote: > > Configuring the hardware resources used by the eswitch device. > > Signed-off-by: Harman Kalra > --- > 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_de= vice *pci_dev) > { > @@ -433,6 +630,12 @@ cnxk_eswitch_dev_probe(struct rte_pci_driver *pci_dr= v, 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 >