From patchwork Sat Oct 10 06:33:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiran Kumar Kokkilagadda X-Patchwork-Id: 80269 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E5529A04B1; Sat, 10 Oct 2020 08:33:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 03CD01D6EC; Sat, 10 Oct 2020 08:33:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id F30D51D6E5 for ; Sat, 10 Oct 2020 08:33:21 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09A6UTY3023135 for ; Fri, 9 Oct 2020 23:33:19 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=3Z2V/HpYPYNDijahuc79e80QD5a13Duee9tvskcuJZE=; b=iTpyDC0H3B8jtaymtYhyN6azdBXMqTy1ujR6ZFw2KXyrZYT4grTnRz05MJmstGrqrQ0a +wvxvVCF/6ChenhYdwjRB0STyolve1MbzrbqBvvp3aXZxr6X9XNQffzUwsK16NXyBe39 4KYGGkJiwd7mltUH8RG80kIaswnU9kVTYZ8rmx19ge3SnARw35YCwaoXvKPsUlLkwksK oPL+AQ9P4aUOk4qUpdgLESmKdg43NIF3vyrXDZbZm0HeE/UUboIjHPZd4SjJOgqx2FSV f+WbfdopcHf01DL0B/7K558hquCOs4oibwflsslwdMY8s8M34sSsvAKKgHXVG3baqe6W xA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 34352ggbr0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 09 Oct 2020 23:33:19 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 9 Oct 2020 23:33:18 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 9 Oct 2020 23:33:17 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 9 Oct 2020 23:33:17 -0700 Received: from localhost.localdomain (unknown [10.28.34.15]) by maili.marvell.com (Postfix) with ESMTP id C47133F704D; Fri, 9 Oct 2020 23:33:15 -0700 (PDT) From: To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: Date: Sat, 10 Oct 2020 12:03:10 +0530 Message-ID: <20201010063310.809945-1-kirankumark@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-10_03:2020-10-09, 2020-10-10 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: fix rss flow create 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" 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") 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) |