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 16760A034E; Wed, 6 May 2020 22:23:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B270D1DA61; Wed, 6 May 2020 22:23:48 +0200 (CEST) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by dpdk.org (Postfix) with ESMTP id 055F51DA60 for ; Wed, 6 May 2020 22:23:46 +0200 (CEST) Received: by mail-pg1-f174.google.com with SMTP id l12so1342586pgr.10 for ; Wed, 06 May 2020 13:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zH3HLMDBkMj4QlAgClH5qKBI6q9vGxuGpevkiYlKh/k=; b=DCgKlPEV1CHfYaHR1BHIdkFKE2vRaOVB3WhJerS5zDIsWepJ3POTT/yJlq0oayvzb1 CS+xXREoxaS0JZGGc47h5f4JW0xsSi2cGKMnp6yId1TgQRqChPn7VUGv9gOXOnUDZKna kDIFgK+DC/5CRkTmo0sHUM5ozk9VZiOYSlMf8i0wMemdkZ/yW95DZWfUMBCIefGyxLHm u23btMh1wnGG69xDre4ddmBFt3PXe+JtHOVVZEWdgLflspcCCia65C3ks2MJP3r2k3eE FjoeW5CXPZ9na7Tvhm3AjDX/lzk+nrqBZhmd6cR1lUOOLfCkunfegBuW5DrItagIxDtF Qa5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zH3HLMDBkMj4QlAgClH5qKBI6q9vGxuGpevkiYlKh/k=; b=C4OppTw2jMR1mpYlc3GeYLTs9VWzUXewE/gqOrEi/UFJsdhPDJRmEDA8Lbi/5aJH9d Ndjmm+78RSaernlT5Gnxgi9Pppuh3V7U3Gg2uwa+na+TJrFhH9qVJS8LhHprPQsdeJ0x L5x3QaBwzNG7p8+Q0pJHxaw9ZUM38XKZkEji+UizDHizJr+jRHIaeBH/QvP7JPRgiKju UqIUtPv6F2kOxApjt4xPfw9eTJJqAao9Az11nZvDZ9hrzHd1gnmh91EZ0IBwVD2TXRDO ITZmBGRSK5QWB9eUKexSsWI8R+er+15lAXUy3GD2/GvrnrS95aKJ9O+TAwLF8NzMvcN+ ANDA== X-Gm-Message-State: AGi0PuaBqDGKwruYzDS78BF73lJrfatAzbvw3jolwMgaqrQlzWGKU8xv NeVbsS02/+9vya0aITVNRj/xiA== X-Google-Smtp-Source: APiQypJeilmQ2+igYx9N3766S+eTIn6THBAWaKkKLYmdTswe/vaFtb8EPZrcZJiRpfKc8N6S7uzwww== X-Received: by 2002:a63:9d41:: with SMTP id i62mr8900843pgd.307.1588796626065; Wed, 06 May 2020 13:23:46 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id b3sm2260326pga.48.2020.05.06.13.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 13:23:45 -0700 (PDT) Date: Wed, 6 May 2020 13:23:42 -0700 From: Stephen Hemminger To: Liron Himi Cc: dpdk-dev Message-ID: <20200506132342.231ca2ba@hermes.lan> In-Reply-To: References: <20200506124258.69b138e4@hermes.lan> <20200506131031.6379f80a@hermes.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [EXT] Re: input port in mbuf 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" On Wed, 6 May 2020 20:17:20 +0000 Liron Himi wrote: > For performance optimizations, we need to know the input DPDK port as after the buffer was transmitted via our ethdev driver instead of release it back to the memory-pool we can release it to the originated HW pool of the input port. But you can't be sure where the mbuf came from. It could be a receive on any vendors driver, or it could be from a private pool that is used for transmit, or anywhere. Please reconsider the real nature here; the world is not testpmd, l2fwd, l3fwd etc. These are the kind of optimizations that break real applications and cause more trouble than the benefit for one silly benchmark.