From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8AB11A0350; Mon, 11 May 2020 11:40:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E18BD1C1E5; Mon, 11 May 2020 11:40:47 +0200 (CEST) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by dpdk.org (Postfix) with ESMTP id 3F60E322C for ; Mon, 11 May 2020 11:40:46 +0200 (CEST) Received: by mail-io1-f66.google.com with SMTP id w11so8893343iov.8 for ; Mon, 11 May 2020 02:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ot99p0eimjMioTRL7MPOuGcKTja7OexaY629+NxQiYY=; b=NPEMm93ySeFZ/eunGiOfOat1PKpmByOPky4Gu3cJebTPVQv9tPk+DUXN2FSMPZQX0A tiGKgqr1SAQQNf3Zw9t7H6N0/G6a67O2Kcta/C7Owal4RCfsV+1FOzYHt3KUWe9xS/Ys 7rA8PosHfM7QK8kkTI/YUvBp+tu1hET2cn6j0yXyV4Qredt5h9lz9tOaEAYd0/LPMXBg cn57zmmef8T1sD0JFfCXFrZnTRSdPXR90XPEo6uyYqQrX0ePHwvQ9Iaw0+Ld1OFK76CD q32iguO0XvutshFVS4of0HJ1zTtl2QmEi/mhWmbJCckf1rY6czG+mssfuU0PnJs3tC+1 KdzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ot99p0eimjMioTRL7MPOuGcKTja7OexaY629+NxQiYY=; b=b7Qj9zYq9sxTYep/eUrGD39QkRCl2Re03R/mKtns0+nE+tChTjCf3HR1tkk/PtQ8qm lWcKYsMPxYLbr+lNp4J940NvJ0Uik0SnHaXeKHwzrFmK/K+2AIyzMjBwqr10qRYPgh+E aluaNGURvixRUIzv1VjBnM3nOkVzIjD0vwOloxjNQfYbtprDZJ+gzM0PkVcEr77IJZ+I 8kSS5ZZRi+vouIxGyS2nyvsoK9KrOQF1bp14e6lGQjoAKrIdzQoVmkIpJGspsQ+XU50M 1msNYG6nUnuYL+sQUu+thEwu01F3nj3nkjRf0n0WyAfzGxFlFYBIoHsDfu+IFyXUR1K+ GalA== X-Gm-Message-State: AGi0PuaDd9hvpLMTvkz07GiF5rMpK1q3vFsJbpnsfsmgKF05y97tULQY gQMMEj8/qDTwPYpebiDPnEIZMNfDgjVl7UiAYok= X-Google-Smtp-Source: APiQypL4Gh826UzYv5ch02+Uku0N30/pYpQsyhyJQrbuVVmkI/ABlzJekdBiFmn0JiLhLEfBEzvUDfOqMdbHc7DOd4U= X-Received: by 2002:a5d:8c89:: with SMTP id g9mr14395258ion.1.1589190045504; Mon, 11 May 2020 02:40:45 -0700 (PDT) MIME-Version: 1.0 References: <20200511062156.15534-1-skori@marvell.com> In-Reply-To: <20200511062156.15534-1-skori@marvell.com> From: Jerin Jacob Date: Mon, 11 May 2020 15:10:29 +0530 Message-ID: To: Sunil Kumar Kori , Ferruh Yigit Cc: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] net/octeontx2: fix minimum length to SMQ config X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, May 11, 2020 at 11:52 AM Sunil Kumar Kori wrote: > > NIX exposes NIX_AF_SMQ(0..511)_CFG to configure minimum length > of the packet which is being used for zero padding if packet is > less than configured value. > > Setting it to default minimum length i.e. 60 bytes. > > Fixes: ec8ddd4fb1be ("net/octeontx2: restructure TM helper functions") > > Signed-off-by: Sunil Kumar Kori Acked-by: Jerin Jacob Applied to dpdk-next-net-mrvl/master. Thanks > --- > drivers/net/octeontx2/otx2_tm.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/octeontx2/otx2_tm.c b/drivers/net/octeontx2/otx2_tm.c > index b57e10f74..8ed059549 100644 > --- a/drivers/net/octeontx2/otx2_tm.c > +++ b/drivers/net/octeontx2/otx2_tm.c > @@ -555,10 +555,13 @@ populate_tm_reg(struct otx2_eth_dev *dev, > switch (hw_lvl) { > case NIX_TXSCH_LVL_SMQ: > > - /* Set xoff which will be cleared later */ > + /* Set xoff which will be cleared later and minimum length > + * which will be used for zero padding if packet length is > + * smaller > + */ > reg[k] = NIX_AF_SMQX_CFG(schq); > - regval[k] = BIT_ULL(50); > - regval_mask[k] = ~BIT_ULL(50); > + regval[k] = BIT_ULL(50) | NIX_MIN_HW_FRS; > + regval_mask[k] = ~(BIT_ULL(50) | 0x7f); > k++; > > /* Parent and schedule conf */ > -- > 2.17.1 >