From patchwork Fri Aug 16 04:19:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 57707 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 437B11BDAC; Fri, 16 Aug 2019 06:20:04 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 150C62B9C for ; Fri, 16 Aug 2019 06:20:02 +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 x7G4K2Rv021711 for ; Thu, 15 Aug 2019 21:20:02 -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-type; s=pfpt0818; bh=hzbDILUirXlSHi87ZRNkOiX4gxJQc5F4p5LaJlF8Mts=; b=GwbFiJyBjA1Stc3NMPxrQWDZBJOvD/BO9IEpC+2oXS4ki7ixbFSuD+x/psy4CBRbZQQS sbotIJS9ubvpRduudPPzWb3XkCjff47tFUbi2CG8vh/HKiactikr0M/KqYuboGrLSgd7 MFYpj0uZdsKjpxEGJ7FKTSVVTlMZwUDN/qPPORPnSA1aKHUQ2CA6oTlNSye5RwCSNlF+ SkGkez7ghk2E0YQ6IxFwfbvj4ljyalIwgJNVRH8gbZSE4WsQYsmNuwkz+OW4tbnP/I2i RcmzkG2O3QQLE942NvA07DOJacgKTQnYE4R3B3Cb7OA2vWlsJHwj2eVwmwmC8r/BLTKN Dg== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2ubfad7n2v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 15 Aug 2019 21:20:02 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 15 Aug 2019 21:20:01 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 15 Aug 2019 21:20:01 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 4AA593F7040; Thu, 15 Aug 2019 21:19:59 -0700 (PDT) From: Nithin Dabilpuram To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: Date: Fri, 16 Aug 2019 09:49:55 +0530 Message-ID: <20190816041955.69877-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-16_03:2019-08-14,2019-08-16 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: fix port Tx VLAN insertion 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" This patch fixes configuration for port Tx vlan insertion feature. As per latest Tx KEX profile, pf_func should be at KW[0](47:32) and not KW[1](63:48). Fixes: 168c59cfe42b ("net/octeontx2: add flow MCAM utility functions") Cc: kirankumark@marvell.com Signed-off-by: Nithin Dabilpuram Acked-by: Jerin Jacob --- drivers/net/octeontx2/otx2_vlan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/octeontx2/otx2_vlan.c b/drivers/net/octeontx2/otx2_vlan.c index c01089b..2be7671 100644 --- a/drivers/net/octeontx2/otx2_vlan.c +++ b/drivers/net/octeontx2/otx2_vlan.c @@ -468,9 +468,9 @@ nix_vlan_handle_default_tx_entry(struct rte_eth_dev *eth_dev, pf_func = (dev->pf_func & 0xff) << 8; pf_func |= (dev->pf_func >> 8) & 0xff; - /* PF Func extracted to KW1[63:48] */ - entry.kw[1] = (uint64_t)pf_func << 48; - entry.kw_mask[1] = (BIT_ULL(16) - 1) << 48; + /* PF Func extracted to KW1[47:32] */ + entry.kw[0] = (uint64_t)pf_func << 32; + entry.kw_mask[0] = (BIT_ULL(16) - 1) << 32; nix_set_tx_vlan_action(&entry, type, vtag_index); vlan->def_tx_mcam_ent = entry;