From patchwork Thu Sep 28 10:50:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavan Nikhilesh Bhagavatula X-Patchwork-Id: 132133 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 71C0842660; Thu, 28 Sep 2023 12:51:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F5A240A6F; Thu, 28 Sep 2023 12:51:08 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 216294029D for ; Thu, 28 Sep 2023 12:51:06 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38SA9jnf012304 for ; Thu, 28 Sep 2023 03:51:05 -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=NxVJI1Vbd7keQYU8T+0RfwZo5HvgY7YfxD1eVZyg7Po=; b=ND803aPWkm6v3f7IXosA/Lolxa6zvGfbSmYoPLStzKs86UF/GwJGYLYKWUd3MBBkA4c+ fdVbJxxCt+fJ6vBc62tNXDPL6RnzIkuQQcLsbtinPfRbdTH+DRheRomsa+eeTMDGsNAr VXJ/mIqVI3NNv2a5UmJjsjMqVGXvo8/ArFiM8AbdQYHVvcSFJGtIkr/SGW+HdXWa90a2 QguyZerW/dxlJNmjAyDY18RTtbE8dpABkM6pdAvTpXd00SO+4FjL5xapVdQ5Hs7Ak9XG c4XCFTnmq+lSgSkFhxL0bacZnaEEHeR2z4lGVvIDVySamfSJPm3xtNMT10YLan+VAQDl zw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3tcrrs35fw-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 28 Sep 2023 03:51:05 -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.48; Thu, 28 Sep 2023 03:51:03 -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.48 via Frontend Transport; Thu, 28 Sep 2023 03:51:03 -0700 Received: from MININT-80QBFE8.corp.innovium.com (MININT-80QBFE8.marvell.com [10.28.164.106]) by maili.marvell.com (Postfix) with ESMTP id BC6355C68F6; Thu, 28 Sep 2023 03:51:01 -0700 (PDT) From: To: , Nithin Dabilpuram , "Kiran Kumar K" , Sunil Kumar Kori , Satha Rao CC: , Pavan Nikhilesh Subject: [PATCH] net/cnxk: fix TAG read data offset Date: Thu, 28 Sep 2023 16:20:58 +0530 Message-ID: <20230928105058.5715-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: lmvjmahMWR14nu0_LUvl10lnPcX4tZC4 X-Proofpoint-GUID: lmvjmahMWR14nu0_LUvl10lnPcX4tZC4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-28_08,2023-09-28_01,2023-05-22_02 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 From: Pavan Nikhilesh The workslot structure elements were shuffled around to maintain uniformity between CN9K and CN10K which moved the TAG data offset from first dword to third dword. Fixes: 182767f70ef2 ("event/cnxk: add event port flow context APIs") Signed-off-by: Pavan Nikhilesh --- Please squash to 182767f70ef2 drivers/net/cnxk/cn10k_tx.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.41.0 diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h index 298d243aac..bb442fc6b5 100644 --- a/drivers/net/cnxk/cn10k_tx.h +++ b/drivers/net/cnxk/cn10k_tx.h @@ -1374,8 +1374,8 @@ cn10k_nix_xmit_pkts(void *tx_queue, uint64_t *ws, struct rte_mbuf **tx_pkts, lnum++; } - if ((flags & NIX_TX_VWQE_F) && !(ws[1] & BIT_ULL(35))) - ws[1] = roc_sso_hws_head_wait(ws[0]); + if ((flags & NIX_TX_VWQE_F) && !(ws[3] & BIT_ULL(35))) + ws[3] = roc_sso_hws_head_wait(ws[0]); left -= burst; tx_pkts += burst; @@ -1531,8 +1531,8 @@ cn10k_nix_xmit_pkts_mseg(void *tx_queue, uint64_t *ws, } } - if ((flags & NIX_TX_VWQE_F) && !(ws[1] & BIT_ULL(35))) - ws[1] = roc_sso_hws_head_wait(ws[0]); + if ((flags & NIX_TX_VWQE_F) && !(ws[3] & BIT_ULL(35))) + ws[3] = roc_sso_hws_head_wait(ws[0]); left -= burst; tx_pkts += burst; @@ -3122,8 +3122,8 @@ cn10k_nix_xmit_pkts_vector(void *tx_queue, uint64_t *ws, if (flags & (NIX_TX_MULTI_SEG_F | NIX_TX_OFFLOAD_SECURITY_F)) wd.data[0] >>= 16; - if ((flags & NIX_TX_VWQE_F) && !(ws[1] & BIT_ULL(35))) - ws[1] = roc_sso_hws_head_wait(ws[0]); + if ((flags & NIX_TX_VWQE_F) && !(ws[3] & BIT_ULL(35))) + ws[3] = roc_sso_hws_head_wait(ws[0]); left -= burst;