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 043DD43816; Thu, 4 Jan 2024 13:31:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C9F17402CC; Thu, 4 Jan 2024 13:30:59 +0100 (CET) Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by mails.dpdk.org (Postfix) with ESMTP id DA5B8402C7 for ; Thu, 4 Jan 2024 13:30:57 +0100 (CET) Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-6dc8b280155so234389a34.0 for ; Thu, 04 Jan 2024 04:30:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704371457; x=1704976257; 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=jPVVlUbwC3xl3XMGSJnDvHJltFxNwchuXdGTRSzF/mg=; b=DF6d7iIt8FkzVXtHPOVrUWhGIUqJXIRMXmZCjXC0/nbesgBD81iSNdpt2JIzepIAGr Am5RVP+4cC/3Nr7iq33VqG4nLunoMjtGcglOhEJ+daTPuoSWhnGNnvAZKV+wZRXlJV8b C88yzyPuJk1PSEbXmiDhiYdOwDvB10M2Gu9PPygA8blnKV4XAQ3ocDHZkm6BctepLDFc +qqKzyQyobNxL61Tn81VthrA91LwG8ttPxVxqU2fcOCVbnK90RaRv7Tre1OYe1jaOcz5 rYMfvpdcFCbswAHIf57sEOGjnq34obwbS08R6KbqSgI34eHki68gTFfq+WxZIzpV63pA DQ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704371457; x=1704976257; 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=jPVVlUbwC3xl3XMGSJnDvHJltFxNwchuXdGTRSzF/mg=; b=tEsVWMpGnIv6v3nhYeYCteoVdZPNCqPbk5YHQwA3rhe0HuhnV9QB1c7JpYEOGViQ1D 6ApoljtZlSSvmNjTsBD6vYp6gyJjfOkG9BckZbYHHwocyp++fOrAtED/NM6vFtoQigK0 iK2ew7J7A1amH+T8Kb/AfyVHwKiPbTUS7JfE4V7X8wutnxw1Aprb943g6Bq9k9b5FVmX F9stxtuFkF7nb2laAJBupEHYU5wFkZGvw24fEqwGa3fR6qjX+35sV2UWkRQ2h8NGJdR/ 91ndhfq7/yrFLPjhZy+9SN1Q206jiD6q93lYHsKMrUWxO+/ryBhxBj9eavQeTClxVQsQ DnlA== X-Gm-Message-State: AOJu0Yym2XP1XiAywu+y6fWrKliu7nWBfVbW7SxbXj1TtvxsFBnz5Fry NeWDdbv/jqyKxbLYdiSh+ey+C4IkCnultdZGktM= X-Google-Smtp-Source: AGHT+IFMczMCbgwwk7yhsMgjo8x5Lt7LQTImUSUy+JQX3GkTi1Cf/h6EYi6o1eRctzP6kMPgoe++UU+p45J4Sh2azXE= X-Received: by 2002:a05:6830:264b:b0:6da:61eb:63ac with SMTP id f11-20020a056830264b00b006da61eb63acmr490205otu.74.1704371457032; Thu, 04 Jan 2024 04:30:57 -0800 (PST) MIME-Version: 1.0 References: <20230811163419.165790-1-hkalra@marvell.com> <20231219174003.72901-1-hkalra@marvell.com> <20231219174003.72901-3-hkalra@marvell.com> In-Reply-To: <20231219174003.72901-3-hkalra@marvell.com> From: Jerin Jacob Date: Thu, 4 Jan 2024 18:00:30 +0530 Message-ID: Subject: Re: [PATCH v2 02/24] net/cnxk: implementing eswitch device To: Harman Kalra Cc: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Anatoly Burakov , 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:53=E2=80=AFAM Harman Kalra = wrote: > > Eswitch device is a parent or base device behind all the representors, > acting as transport layer between representors and representees > > Signed-off-by: Harman Kalra > --- > drivers/net/cnxk/cnxk_eswitch.c | 465 ++++++++++++++++++++++++++++++++ > drivers/net/cnxk/cnxk_eswitch.h | 103 +++++++ > drivers/net/cnxk/meson.build | 1 + > 3 files changed, 569 insertions(+) > create mode 100644 drivers/net/cnxk/cnxk_eswitch.c > create mode 100644 drivers/net/cnxk/cnxk_eswitch.h > > diff --git a/drivers/net/cnxk/cnxk_eswitch.c b/drivers/net/cnxk/cnxk_eswi= tch.c > new file mode 100644 > index 0000000000..51110a762d > --- /dev/null > +++ b/drivers/net/cnxk/cnxk_eswitch.c > @@ -0,0 +1,465 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(C) 2023 Marvell. Change to 2024 for new files in this series. > +static int > +eswitch_dev_nix_flow_ctrl_set(struct cnxk_eswitch_dev *eswitch_dev) > +{ > + > + rc =3D roc_nix_fc_mode_set(nix, mode_map[ROC_NIX_FC_FULL]); > + if (rc) > + return rc; > + > + return rc; same as return roc_nix_fc_mode_set(nix, mode_map[ROC_NIX_FC_FULL]);