From patchwork Wed Aug 5 08:49:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Slava Ovsiienko X-Patchwork-Id: 75205 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 493D6A053A; Wed, 5 Aug 2020 10:50:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 437AE1BFF7; Wed, 5 Aug 2020 10:49:59 +0200 (CEST) Received: from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130]) by dpdk.org (Postfix) with ESMTP id 0A4E3E07 for ; Wed, 5 Aug 2020 10:49:57 +0200 (CEST) From: Viacheslav Ovsiienko To: dev@dpdk.org Cc: matan@mellanox.com, rasland@mellanox.com, thomas@monjalon.net, ferruh.yigit@intel.com, jerinjacobk@gmail.com, stephen@networkplumber.org, arybchenko@solarflare.com, ajit.khaparde@broadcom.com, maxime.coquelin@redhat.com, olivier.matz@6wind.com, david.marchand@redhat.com Date: Wed, 5 Aug 2020 08:49:55 +0000 Message-Id: <1596617395-29271-1-git-send-email-viacheslavo@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1596452291-25535-1-git-send-email-viacheslavo@mellanox.com> References: <1596452291-25535-1-git-send-email-viacheslavo@mellanox.com> Subject: [dpdk-dev] [PATCH v2] doc: announce changes to ethdev rxconf structure 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" The DPDK datapath in the transmit direction is very flexible. The applications can build multi-segment packets and manages almost all data aspects - the memory pools where segments are allocated from, the segment lengths, the memory attributes like external, registered, etc. In the receiving direction, the datapath is much less flexible, the applications can only specify the memory pool to configure the receiving queue and nothing more. The packet being received can only be pushed to the chain of the mbufs of the same data buffer size and allocated from the same pool. In order to extend the receiving datapath buffer description it is proposed to add the new fields into rte_eth_rxconf structure: struct rte_eth_rxconf { ... uint16_t rx_split_num; /* number of segments to split */ uint16_t *rx_split_len; /* array of segment lengths */ struct rte_mempool **mp; /* array of segment memory pools */ ... }; The non-zero value of rx_split_num field configures the receiving queue to split ingress packets into multiple segments to the mbufs allocated from various memory pools according to the specified lengths. The zero value of rx_split_num field provides the backward compatibility and queue should be configured in a regular way (with single/multiple mbufs of the same data buffer length allocated from the single memory pool). The new approach would allow splitting the ingress packets into multiple parts pushed to the memory with different attributes. For example, the packet headers can be pushed to the embedded data buffers within mbufs and the application data into the external buffers attached to mbufs allocated from the different memory pools. The memory attributes for the split parts may differ either - for example the application data may be pushed into the external memory located on the dedicated physical device, say GPU or NVMe. This would improve the DPDK receiving datapath flexibility preserving compatibility with existing API. The proposed extended description of receiving buffers might be considered by other vendors to be involved into similar features support, it is the subject for the further discussion. Signed-off-by: Viacheslav Ovsiienko Acked-by: Jerin Jacob Acked-by: Andrew Rybchenko Acked-by: Thomas Monjalon Acked-by: Ferruh Yigit --- v1->v2: commit message updated, proposed to consider the new fields for supporting similar features by multiple vendors --- doc/guides/rel_notes/deprecation.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index acf87d3..b6bdb83 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -99,6 +99,11 @@ Deprecation Notices In 19.11 PMDs will still update the field even when the offload is not enabled. +* ethdev: add new fields to ``rte_eth_rxconf`` to configure the receiving + queues to split ingress packets into multiple segments according to the + specified lengths into the buffers allocated from the specified + memory pools. The backward compatibility to existing API is preserved. + * ethdev: ``rx_descriptor_done`` dev_ops and ``rte_eth_rx_descriptor_done`` will be deprecated in 20.11 and will be removed in 21.11. Existing ``rte_eth_rx_descriptor_status`` and ``rte_eth_tx_descriptor_status``