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 CCB6CA04B6 for ; Sun, 11 Oct 2020 11:37:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 97D421D53B; Sun, 11 Oct 2020 11:37:54 +0200 (CEST) Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by dpdk.org (Postfix) with ESMTP id 74DF51BEEA; Sun, 11 Oct 2020 11:37:50 +0200 (CEST) Received: by mail-io1-f67.google.com with SMTP id q9so14637983iow.6; Sun, 11 Oct 2020 02:37:50 -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=WNtLgi6uod3yymvxvTp+ZJm4u8xfzz50Dvihm7Di8PA=; b=PAKvTVmThu1PfNLJOle/abGDGCLMf3r2LUQ9HLgJPTUQVlmqhH+9R6FIuHOWQtiRwV lrFW0t7WM7nUpZF8qVO3NyNY2BksdLreikUJ/V+REyIrJC2VQoQ97eqcaXyu2dTGvrGS ACemCYhK0JKnV4SNxSJl0JbhDRC+tPRdkAbk93kJZZ4ofbp+UL18HnRXgV4rifJU4JqA Fdd7nTKxOsJSQpyiG5NfjYG8AiadN8Um0oRxe6wCr4wJ1Ayi0mpeIFyUfzRTv1MOYFzS POdoAu8MwmnTnzghG++GJAQg2kgy36JKNJJN0/fWDVashESuHxe7U1IZd3WffVf/r8/i vZhw== 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=WNtLgi6uod3yymvxvTp+ZJm4u8xfzz50Dvihm7Di8PA=; b=E7PeInakI1Wn/XIDWre1FqUkg1afnHhqFQ8o8XjC4+uKz9MqUDJmw9wS/sl9frJwDg VTOFNOsGxYYcYNMEIKSr9QqKkC4j1cSbDZtY47yCluO/2zaqOEDJvq4wlsiIy+2wLs7b gPysOPd7hYsVVez5ybuwxWEdzsTou6cMvMwHEcBqWJ4R7av4cTR1SNsDeki26WuYVc9N XbZvoEdcsyl4XuToX/kbW1kqgUvsaqXUhWvzh/Km59yeeuiMrNMSk5BdaksXJYaGSd7Q qOCz6BuCd8LiDs+BwDG9Ha4ZN8gVh0fybdVkt5JOWF5o2HFhoUsALOt9d/3E/+SFw51d EicQ== X-Gm-Message-State: AOAM533+dFvVJSzEKZt78O4XYDG/jkz9pq8JIcZy5ElHj4Tta92ZFhYf 3q0lKQb0+V2rLEtrS/2pKjLZZoIpXmueryZcImc= X-Google-Smtp-Source: ABdhPJxgFReOJ4vfz9anx6hQGVpUm5CZHZPokRE66YraezqbWp/1XAWGxtQcGsTcGrCn2Ko5A3F0YOPVhlRbqXr7iak= X-Received: by 2002:a6b:5019:: with SMTP id e25mr14699245iob.123.1602409068747; Sun, 11 Oct 2020 02:37:48 -0700 (PDT) MIME-Version: 1.0 References: <20201010063310.809945-1-kirankumark@marvell.com> In-Reply-To: <20201010063310.809945-1-kirankumark@marvell.com> From: Jerin Jacob Date: Sun, 11 Oct 2020 15:07:32 +0530 Message-ID: To: Kiran Kumar K , Ferruh Yigit Cc: Jerin Jacob , Nithin Dabilpuram , dpdk-dev , dpdk stable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/octeontx2: fix rss flow create X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Sat, Oct 10, 2020 at 12:03 PM wrote: > > From: Kiran Kumar K > > While creating flow with action type RSS, action type is not being > set to RSS, and action type is being set to unicast. Therefore it breaks > RSS functionality. This patch add changes to program the RSS action > properly. > > Fixes: 4092e4845d ("net/octeontx2: add flow operations") Cc: stable@dpdk.org Applied to dpdk-next-net-mrvl/for-main. Thanks. > > Signed-off-by: Kiran Kumar K > --- > drivers/net/octeontx2/otx2_flow.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/octeontx2/otx2_flow.c b/drivers/net/octeontx2/otx2_flow.c > index 13a76e441..90540ffbd 100644 > --- a/drivers/net/octeontx2/otx2_flow.c > +++ b/drivers/net/octeontx2/otx2_flow.c > @@ -270,6 +270,8 @@ flow_program_rss_action(struct rte_eth_dev *eth_dev, > if (rc) > return rc; > > + flow->npc_action &= (~(0xfULL)); > + flow->npc_action |= NIX_RX_ACTIONOP_RSS; > flow->npc_action |= > ((uint64_t)(alg_idx & NIX_RSS_ACT_ALG_MASK) << > NIX_RSS_ACT_ALG_OFFSET) | > -- > 2.25.1 >