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 A77E6A034E; Wed, 6 May 2020 22:10:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A6D311D922; Wed, 6 May 2020 22:10:41 +0200 (CEST) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by dpdk.org (Postfix) with ESMTP id 9864E1D921 for ; Wed, 6 May 2020 22:10:40 +0200 (CEST) Received: by mail-pj1-f44.google.com with SMTP id fu13so1467119pjb.5 for ; Wed, 06 May 2020 13:10:40 -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=HHZjouuBmgyBTGIJA2whJkxB6siNQsJe1oTWTqbm/8s=; b=SHWznwWZXTADEx/8lpiQ2pftblqhtI0UsbhObQZxHErnejy8Yry4aY+rRHnNECVpEo nYJ/4SL2ET+CIXCAa2Hr72kfGEh9PHujDEsN4JcIR/1sM5ZGQQnx29b7ovp/DtiyTWuc j5VMyZD+PXFaBadsmEkSLSwZpf5mrICOON8C031uNo1hW79DXjQDTDJ3qTLZiTGglC0k la0tR4n7mM+hlOrANVDKx/cH7ZaMCc+TM8Z0uLG911Inxxp8kwZFGgzKARMFCmBY7raP fSm8P3yxhAwCD/4fpm/2XdVtHANve69npxz0b3AZMSaZOBotc3ZooPTufgLMVUyJWvaM FXiw== 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=HHZjouuBmgyBTGIJA2whJkxB6siNQsJe1oTWTqbm/8s=; b=q1WZSFTYwzvcrOT4q1KLjhnxnVuqpyc38R4E5TdncES5LVYKMhATRWXJwzE+wTNPwn sWJoVx4DURr6fNq77xSgmpUKQ2JFgNiiWVobFxsDg5UhjaCnhMpvoRs2L8mB+dG3ULS0 30fNqjPoCdRVjhp5o3Vmc60nhDGZ+JcY/9Pieu7jdU88hirzC50xDRPIQ3vmo+/gJSpZ 0gqfuEaEMDgYHYM+ulfukNtBhsb6o9a9jGC7Wn0gH+OzFaSR7SE2GuLtkWcnkg5u9Afg vx21M+xkw5ppxF36FDYgbJKk49xrLmijxtBAEpuHOD/oclG2MgddQ3a5oLWlzqXhgoNd V1Fg== X-Gm-Message-State: AGi0PuaTAlKI0cUZsiHMJWpaJoPTy10ZF4jwhPSulGze43/H7ow8Ueps xrX+YZ8mU5pxydsaMKrR6CIbEw== X-Google-Smtp-Source: APiQypJ3e2aBIfvLGca/dK3pW7vaebdf0kc6cGCl6tVMm5PxYskV0h4tlADx7dAZBcIOksAurEI/LA== X-Received: by 2002:a17:902:7208:: with SMTP id ba8mr9568257plb.246.1588795839558; Wed, 06 May 2020 13:10:39 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q21sm2684505pfg.131.2020.05.06.13.10.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 13:10:39 -0700 (PDT) Date: Wed, 6 May 2020 13:10:31 -0700 From: Stephen Hemminger To: Liron Himi Cc: dpdk-dev Message-ID: <20200506131031.6379f80a@hermes.lan> In-Reply-To: References: <20200506124258.69b138e4@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 19:48:26 +0000 Liron Himi wrote: > Fine. Is there another location or option to save this information? > > Regards, > Liron > > -----Original Message----- > From: Stephen Hemminger > Sent: Wednesday, 6 May 2020 22:43 > To: Liron Himi > Cc: dpdk-dev > Subject: [EXT] Re: [dpdk-dev] input port in mbuf > > External Email > > ---------------------------------------------------------------------- > On Wed, 6 May 2020 19:21:30 +0000 > Liron Himi wrote: > > > Hi, > > > > We need to save the input port in the mbuf in order to return the buffer to the right hw pool. > > For now we use the 'port' in the mbuf as it is supposed to be for this exact purpose. > > But we noticed that some applications are override it with the destination port. > > > > What should be the right behavior? > > is there another location that that this information can be stored and read only by the ethdev drivers? > > > > Regards, > > Liron > > > > There is no requirement that input port is unmodified by the application. The memory pool is already in the mbuf, should go there.