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 78AE7A04BA; Thu, 1 Oct 2020 19:09:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80FC21D52B; Thu, 1 Oct 2020 19:09:31 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 843491D518 for ; Thu, 1 Oct 2020 19:09:28 +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 091H1R5w011468 for ; Thu, 1 Oct 2020 10:09:27 -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=7x5XOi4sX2YCDAHPAD0liN92EyjxicdrV7WWo2TdUcI=; b=N7YShQ6uB3IVTtlljjqWcd8hFP6jM5cF7PrOHvyfzauNQpEE7mwSZewP/JokntS+cwv3 LgpqdXhmeZ4l45ugLOxELNEzfHGFD2pA/PIeFFrlRqqOwHbneiQCjPMjtII73ulnkAey jsH0Y71Wg0IG9/Q1aELNblL3r+nN3CIwS2ELSojCpdK9CYQgbymzKPYJK5HndFAmLjYo YN1FPZMbWOiQACirPrJwRA3raff7bgDmtLNQcC/v0J4gFdYHCZoAb7yhtZNGYX1HzEBV hEAxcyTaxvfMBLBLN0jGAWeg8y8AGz1zKwvdpj4P+n02WeJrzJgxQLORjwm/7gDs+FEQ LQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 33t55pfcjk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 01 Oct 2020 10:09:27 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 1 Oct 2020 10:09:26 -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; Thu, 1 Oct 2020 10:09:26 -0700 Received: from rchin-dellt430.marvell.com (rchin-dellt430.marvell.com [10.85.176.141]) by maili.marvell.com (Postfix) with ESMTP id E44573F703F; Thu, 1 Oct 2020 10:09:25 -0700 (PDT) From: Radha Mohan Chintakuntla To: CC: , Radha Mohan Chintakuntla , "Satha Koteswara Rao Kottidi" , Satananda Burla Date: Thu, 1 Oct 2020 10:09:21 -0700 Message-ID: <20201001170922.84240-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-01_06:2020-10-01, 2020-10-01 signatures=0 Subject: [dpdk-dev] [PATCH 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