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 806ABA04C5 for ; Thu, 3 Sep 2020 15:03:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E8EFB1BEAF; Thu, 3 Sep 2020 15:03:24 +0200 (CEST) Received: from delivery.mailspamprotection.com (delivery.mailspamprotection.com [146.66.121.80]) by dpdk.org (Postfix) with ESMTP id 58698255 for ; Thu, 3 Sep 2020 15:03:23 +0200 (CEST) Received: from 72.204.214.35.bc.googleusercontent.com ([35.214.204.72] helo=es18.siteground.eu) by se16.mailspamprotection.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1kDotS-000EOJ-CK for users@dpdk.org; Thu, 03 Sep 2020 08:03:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=filipjaniszewski.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=n7CbVjjOAscyyBA/WSRHM5tK9cQlNd65n6CtPQ86P7M=; b=SEkK+wIAGZYCgqRupD5hvlUjJn LbNUjRfc1zEYybMWGOEPwPt7RilzXBOZmfQFNHNQKQOF/fDT3qC0XAUKJcOBGKqV1GNfaoVZHBE00 SkTH0Jh+AkNcSkx0FAhtNykt9qOoQyN/CxoO0gXQfohYBDS2ks0sx7wPkcYiVlm88qrSdRYSC9Ph0 PWirIpowhlreTPGCn6jW8+TZobCesSWY56Qw3ZDdGiESGs9NSyiHFpYdDHaZBSCqkOup7MW4twNqH okBytynarWWM3SaWcPCfWJ3FmzhyDkiZhM2DE7Q977IMeSaDegUHFb5DXPPOZsJR4e3GlTrYRT74F aUudJk/A==; Received: from [89.64.148.179] (port=58880 helo=localhost.localdomain) by es18.siteground.eu with esmtpsa tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.90devstart-1178-b07e68e5-XX) (envelope-from ) id 1kDotS-0002yM-0w for users@dpdk.org; Thu, 03 Sep 2020 15:03:10 +0200 To: "users@dpdk.org" From: Filip Janiszewski Message-ID: <2fc4c1f3-a631-c908-d611-da4effbd4e3e@filipjaniszewski.com> Date: Thu, 3 Sep 2020 15:03:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: 35.214.204.72 X-SpamExperts-Domain: es18.siteground.eu X-SpamExperts-Username: 35.214.204.72 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=35.214.204.72@es18.siteground.eu X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.23) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0VKALJWqpbz84ezJUOplsTqpSDasLI4SayDByyq9LIhVrQSNPYBBMm8A bzqocswI+ETNWdUk1Ol2OGx3IfrIJKywOmJyM1qr8uRnWBrbSAGDD2INR93SD/E4J4SmlGqUQJj9 EvBvwu01uVCaGVBWGqsJA/cNl/yPzqKz3t6qyS6W2rBNMmEsKEibQwSU1xBeOJAOlFzwHtO3tdTI bTgMNQv76lrauuQC+i1JEwUYTHqC/KisXy3mzcJy0aWTpFFLNXH1Vkqfg/Bwz3JmU10ZbHbSu4V0 uFdos+XyMRrtb4AGSMvMdpIXZzuUtn5D8wUyziXAqEAQZXCFCwvZK9SRAKXzqQvjggSzFuGQtds9 iToy/5EjVskN5+f0tv7Hu6cPCJ0JqmC43RBCDitrzLQ3DiL+rMKsIGECb4imOf5DWk2muT5KoqPl i/MiyR9weBu6pHB7LxY2nsmQSlY+LOS2RBvyvYF41YKwtUHAIHcwkMwU8oNztlS2lk2MAJxthbEB J810xzT60uub84zZk03vFUr5sGqoT7aL6zfnTlK0ipRl2eMaYoDpLQqel3M9drX4xT3dKxLhoxcm aInYbR5vlqF1h44QsltTBia8XHjaZSjOKdvTyBjtn1YZtaf24ZD2cb6KNuraKjP0e8EWfxt1Dw4k sVlXZWxasRfFjM8m8h7IISdVKyA8/8yCpIYzH3apf78hv/eAPXF2/g6Nh7EU3uJPgSB04nD5Jsa5 xKG/1hIHeL2WR6jhr6bA6vgNRsO53yar+lcr6zEO1fdqTM/Fw6XUvthl/stcclfvcF8mdxjkT2Ii Tz45BnbgPZpGZjwudKdqlDVUF5kYGN3jAqcmu92LBDMrD7q/cJogwbqzsuoks8QUWQA8eYz3lKHC U/KLd0Q4A9ydqlBYa841NbfIhIp7Zl6vZsPiynkh5QrMDPbtABvW0l8MsKxqQwtQ7rhb6BenyEwg KQQmNF9QIQ5zGrFRXxKF5tPxTxfD0dMN+t5Z2AHrLTTKj1QHJrZU4y3bqvoPFZIShBSdpVJW5Hbj QTBnzX3UHXmDafbdUaYfy/G5tX9NOjwHhMNoIG1/0Zd/Sftnwp72JrOEG9ZfdgVvYbdhexjuk+m5 2LttQtfiBaljQG32+nFqSqyX1wx9LHSA/EE6mmgMBYx+gM+5tLWDlDuJEwV6v9eWluv1FRK6s5IW 9jihx+Za/cV70jOJzN2r4A== X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com Subject: [dpdk-users] Swapping membuf pools while running X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, Is there a way to swap the currently configured mempool for a given queue while the nic is up and running (so, without reconfiguration)? The scenario would be: a) capturing packets (rx_burst) in a loop b) mempool configured for the queue (while calling rte_eth_rx_queue_setup) gets filled up c) before the next rx_burst provide an additional mempool so that the new one is used. d) Continue rx bursting using the new mempool Hopefully the scenario is sufficiently clear. Ideally I would like to run this scenario using MLX5 NICs, but for what I was able to see this is not possible, since the DPDK driver code runs some cache-related operations on the mempool items. Specifically mlx5_mr_update_mp iterate over all the mbufs by calling mlx5_mr_update_mp_cb (that does some magic cache-related stuff), which smells to me like a roadblock for adding some handcrafted function to swap those buffers (I think there's no explicit API in DPDK for swapping rx queue mempools). My idea was just to manipulate mlx5_rxq_data in mlx5_rxq_ctrl (that contains the mempool pointer) using a new function in DPDK that access those structures, but all those "update mp" operations above looks like they're doing something with those mbufs so swapping pool pointer might mess up a lot.. but not sure, any idea? Thanks -- BR, Filip +48 666 369 823