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 33859423BE; Fri, 13 Jan 2023 06:24:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1D133410EF; Fri, 13 Jan 2023 06:24:26 +0100 (CET) Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) by mails.dpdk.org (Postfix) with ESMTP id 55C39410D4; Fri, 13 Jan 2023 06:24:25 +0100 (CET) Received: by mail-ua1-f54.google.com with SMTP id g25so547913uaw.8; Thu, 12 Jan 2023 21:24:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nlRtSFSp9ZPvQXHYkIZomJBQHbcazeolHotRKhtV7yU=; b=UN6PRPCqzEhmxlpPqOnzvdoTSqwhvtABeHIRRRQrPODgz+4xsg6sto4oHRmSmy0puA fVWiu9R1q7Sa3B+xaPrI3suBocWDWf5pqaPqFMxVCZr7P6ZKa+UaqRJB7ERz/WVDHyXR CmhP7iywzMX/dNtk7hbbBwF9sJ4GCz9dYeMEW3L8L5nNXY+NIYTI5SWPZmDMmTu3bssM tszNQB+8+tlmkYqUQ51wQB9OvVaDkqOrt1slV1cKrqQ+xEBMO+x8kcw9LrqZgV2aS5Rn cr/PRZ+fW9Ni1AqjUXk5qQjDrI/m7i0xFwzcfpl9i7m9yP2O+xC+C5MP9zP6juRoFhoq uU9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=nlRtSFSp9ZPvQXHYkIZomJBQHbcazeolHotRKhtV7yU=; b=S4fU7ZeJHg4WFWQ0f/q1WK6eglcfRrAEC38RNrvTKGgFzt0DnEYbUYjgbPB5EFePH7 VMQ3FNhX3GD/YJfKV+ik3E1t+lxnSpbVzlmhZXozphuYRLMfDsB/d8EbGrtP9VaiwlX2 OknjDe8QNXuUamzD56v+BYhVQuwE4vVAM2OscD+13USk24+H8DumqpqFFWQIRJk8dVYb s5LIKKki4dYZ/qKRq0/O+ma86xPccuBt6X0icmxintvzafKFgi4gOcuwSX+WbsPPoXQJ IqOpDhnq3GYZEAcC2bOi1T4LrOUCqx2tKwJf5lxrGkXZUUYnnSX8MDz7ukMoRAJJIzn8 Bvgw== X-Gm-Message-State: AFqh2kpjiq+qaXztN/UwoT2wF+cIt0OsAIU2aXv/7y05PVJ/5+PD2ARb +t4Qng0mD2zq4xmLqN73NUb6xoWw+vM20hA92vikDOZVm0M= X-Google-Smtp-Source: AMrXdXsRjaubSQhT4Q8TGWME7RzeggzPUTtycSi34R8iNyL0l1iagezkyRBi7oMrQ6UWfpOnbgKcIV2vsbif6C0tkNs= X-Received: by 2002:ab0:5bc2:0:b0:43f:f04c:8981 with SMTP id z2-20020ab05bc2000000b0043ff04c8981mr9042842uae.61.1673587464568; Thu, 12 Jan 2023 21:24:24 -0800 (PST) MIME-Version: 1.0 References: <20230104060712.283128-1-skori@marvell.com> In-Reply-To: <20230104060712.283128-1-skori@marvell.com> From: Jerin Jacob Date: Fri, 13 Jan 2023 10:53:58 +0530 Message-ID: Subject: Re: [PATCH] common/cnxk: reduce channel count per LMAC To: skori@marvell.com Cc: Nithin Dabilpuram , Kiran Kumar K , Satha Rao , dev@dpdk.org, stable@dpdk.org Content-Type: text/plain; charset="UTF-8" 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, Jan 4, 2023 at 11:37 AM wrote: > > From: Sunil Kumar Kori > > Due to limitation, imposed by latest kernel, maximum number of > channel supported per LMAC is reduced to 8. Because of this change > application gets failed to initialize for more channels. > > Also this limitation impacts PFC functional behaviour. > > So patch just aligns the supported number of channel with kernel. > > Fixes: 20d02329cdc2 ("common/cnxk: support priority flow control") > Cc: stable@dpdk.org > > Signed-off-by: Sunil Kumar Kori Updated the git commit as follows and applied to dpdk-next-net-mrvl/for-next-net. Thanks common/cnxk: reduce channel count per LMAC Due to limitation, imposed by latest AF kernel driver, maximum number of channel supported per LMAC is reduced to 8. Because of this change application gets failed to initialize for more channels. Also this limitation impacts PFC functional behaviour. So patch just aligns the supported number of channel with AF kernel driver. Fixes: 20d02329cdc2 ("common/cnxk: support priority flow control") Cc: stable@dpdk.org Signed-off-by: Sunil Kumar Kori > --- > drivers/common/cnxk/roc_mbox.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/common/cnxk/roc_mbox.h b/drivers/common/cnxk/roc_mbox.h > index 8b0384c737..fd9d3e73cd 100644 > --- a/drivers/common/cnxk/roc_mbox.h > +++ b/drivers/common/cnxk/roc_mbox.h > @@ -1169,7 +1169,7 @@ struct nix_bp_cfg_req { > * so maximum 256 channels are possible. > */ > #define NIX_MAX_CHAN 256 > -#define NIX_CGX_MAX_CHAN 16 > +#define NIX_CGX_MAX_CHAN 8 > #define NIX_LBK_MAX_CHAN 1 > struct nix_bp_cfg_rsp { > struct mbox_msghdr hdr; > -- > 2.25.1 >