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 61F65A04BB; Tue, 6 Oct 2020 07:30:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A0CA225B3; Tue, 6 Oct 2020 07:30:27 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id CB33F1C01 for ; Tue, 6 Oct 2020 07:30:26 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0965LZtd019518 for ; Mon, 5 Oct 2020 22:30:25 -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=mgwOaSahNX29RRG0YqVrL/wz1dZggHHn2Qx6m2d7CH8=; b=XjDq758tFgun62hkhGm2XLjwQ76R4uMnyJIzGD30KJtITBxa8zv+6SfC7luy9CIlqghM YYOKtSgKLCA/HNlaTsWC+qdJug76KsGWHuZW4m6kXrI1dyrNaFZUW+Nvq3rJG5UwDWeX 2SeaK+pB38cqFVpUqAUakt5FuL4wH/hA31yyzpm603nU4k0dpdUOUUG2gsKy2n6EuD6o eQTlshDRsJJ3ihFO8rHH2VOA4H0NYa2q+536my79/AApIJPoCjM8EKw0ALgRxZ8PWkib c9P+3+8KHz6KgQW1fv75Jw//hcOdqIxEWOU6OO3yaUIQeZ3rbe27tGJDwG/05jDa5jeC sA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 33xrtnf9pv-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 05 Oct 2020 22:30:25 -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; Mon, 5 Oct 2020 22:30:23 -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; Mon, 5 Oct 2020 22:30:24 -0700 Received: from rchin-dellt430.marvell.com (rchin-dellt430.marvell.com [10.85.176.141]) by maili.marvell.com (Postfix) with ESMTP id ACBE43F7045; Mon, 5 Oct 2020 22:30:23 -0700 (PDT) From: Radha Mohan Chintakuntla To: , CC: , Radha Mohan Chintakuntla , Satananda Burla Date: Mon, 5 Oct 2020 22:30:20 -0700 Message-ID: <20201006053021.134706-1-radhac@marvell.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-06_02:2020-10-05, 2020-10-06 signatures=0 Subject: [dpdk-dev] [PATCH RESEND 1/2] raw/octeontx2_dma: Assign pem_id as lport for non-internal DMA 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" DPI needs to know the PEM number for all external transfers. Signed-off-by: Radha Mohan Chintakuntla Reviewed-by: Satha Koteswara Rao Kottidi Reviewed-by: Satananda Burla --- drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 2 ++ drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c index 5b496446c..a1b94ce1d 100644 --- a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c +++ b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c @@ -201,6 +201,8 @@ otx2_dpi_rawdev_enqueue_bufs(struct rte_rawdev *dev, index += 4; hdr->s.fport = 0; hdr->s.lport = 0; + if (ctx->xtype != DPI_XTYPE_INTERNAL_ONLY) + hdr->s.lport = ctx->pem_id; /* For inbound case, src pointers are last pointers. * For all other cases, src pointers are first pointers. diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h index 9ebb25988..81740e84b 100644 --- a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h +++ b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h @@ -140,6 +140,7 @@ struct dpi_dma_queue_ctx_s { uint16_t req_type:2; uint16_t use_lock:1; uint16_t deallocv; + uint16_t pem_id; struct dpi_cring_data_s *c_ring; }; -- 2.24.1