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 0F1A7A00E6 for ; Tue, 6 Aug 2019 10:02:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B05661BDEE; Tue, 6 Aug 2019 10:02:16 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 5DA761BDF1 for ; Tue, 6 Aug 2019 10:02:15 +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 x7681NDL011111; Tue, 6 Aug 2019 01:02:14 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=qoiaRkR0lkIADjAT84zQdoh5WZN9iYYQs2RPTa5XLqE=; b=jJY9V2AYnxTDECu9YnERDLK9g1Urn29jqGXzYe1b2faACtBQWV5pXZBLpKS2qpyM+1So ytN90659EvIYoLMC2hv/LIAo4aAx4nawG+4RxkzVCa06t4sYxbQk3oWEHVibmjBBsLcE D15C4YWb/Yw2vr1MA81F52GAlFd+tZn6RKg0jJVQolJyXQ3lSSTE/jIrVj4CWCb3hijH boXPAX2ir858a2wmitSAw1egUmR4lU5rVmCamOTg33edM5XZauy5V7ObTPgKwNaCujJl Cer6C5R0Rufl5zPBhuWHCbGXpVZ//gLDD+ODdmIdLO6BI0UwQyP/i1C8s8pqQe7GRVvt 9g== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2u57mr29y1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 06 Aug 2019 01:02:14 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 6 Aug 2019 01:02:13 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 6 Aug 2019 01:02:13 -0700 Received: from BG-LT7430.marvell.com (unknown [10.28.17.50]) by maili.marvell.com (Postfix) with ESMTP id A5CCC3F7040; Tue, 6 Aug 2019 01:02:10 -0700 (PDT) From: To: , John McNamara , "Marko Kovacevic" , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko CC: , Pavan Nikhilesh Date: Tue, 6 Aug 2019 13:32:02 +0530 Message-ID: <20190806080206.1572-2-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190806080206.1572-1-pbhagavatula@marvell.com> References: <20190806080206.1572-1-pbhagavatula@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-06_04:2019-07-31,2019-08-06 signatures=0 Subject: [dpdk-dev] [RFC 1/3] ethdev: add ptype as an Rx offload 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: Pavan Nikhilesh Add ptype to DEV_RX_OFFLOAD_* flags which can be used to enable/disable packet type parsing. Signed-off-by: Pavan Nikhilesh --- doc/guides/nics/features.rst | 3 +++ lib/librte_ethdev/rte_ethdev.h | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst index 6f8cac2c8..6b222b270 100644 --- a/doc/guides/nics/features.rst +++ b/doc/guides/nics/features.rst @@ -662,6 +662,9 @@ Packet type parsing Supports packet type parsing and returns a list of supported types. +* **[uses] rte_eth_rxconf,rte_eth_rxmpde**: ``offloads:DEV_RX_OFFLOAD_PTYPE``. +* **[provides] mbuf**: ``mbuf.packet_type``. +* **[provides] rte_eth_dev_info**: ``rx_offload_capa,rx_queue_offload_capa:DEV_RX_OFFLOAD_PTYPE``. * **[implements] eth_dev_ops**: ``dev_supported_ptypes_get``. * **[related] API**: ``rte_eth_dev_get_supported_ptypes()``. diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index dc6596bc9..888b766d4 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -1013,6 +1013,7 @@ struct rte_eth_conf { #define DEV_RX_OFFLOAD_KEEP_CRC 0x00010000 #define DEV_RX_OFFLOAD_SCTP_CKSUM 0x00020000 #define DEV_RX_OFFLOAD_OUTER_UDP_CKSUM 0x00040000 +#define DEV_RX_OFFLOAD_PTYPE 0x00080000 #define DEV_RX_OFFLOAD_CHECKSUM (DEV_RX_OFFLOAD_IPV4_CKSUM | \ DEV_RX_OFFLOAD_UDP_CKSUM | \ -- 2.17.1