From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 19AD71B4CF for ; Fri, 15 Feb 2019 20:39:07 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 42D2721FE1; Fri, 15 Feb 2019 14:39:06 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 15 Feb 2019 14:39:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=zBnkylqCRgVLsmCe7no3fGh2BQcBQYqsj8kwFpYabbw=; b=h/iJJmH5qlMH 9WIQrIWE1tMg4pySSqRbrBQmgnIPIzmETibEhuUKBk8stL6hQvZBb1qIRwjbzWkJ +7ZrKGcO7RuEF4Y3X3x95PeyQUib21lfFY9RlSrRkvIRcLaY8ajTBCd/nKKP++py HR7vjGrrVT2xa+xOiw2f33UrIAzf/ac= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=zBnkylqCRgVLsmCe7no3fGh2BQcBQYqsj8kwFpYab bw=; b=Ji91KWAdXwbwk/OHiL7IyXTBm1/BV92zOaMIx6FGwaT1OY2WSr2PG/+4I vbXPiGVPchw1rVWQ3lm8oPQPllfTZuGFNd6yDG7Y2JqbtxnRypbBCvsb5K1uYKo0 MYb2s9BepBX7SlyI5cEyPdXtu7yPVicrdYXR9RExxZQSrB9X7dVawHV6m9HGexBD 99titWB8mgdMQ/BFfHcniXcqsQiA+lmasVnZCF7Yc5+2UL5GumCI9d4aRhe4Qz+2 W1POJNAQHZWYsYUOUkxFTlX1p/yg9i1GRSZwr3ec0BqDuRMxV2Fs0IR6U0GIKLPW kyY//tCZqBTVnrdG91FC7fAHXp3rg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddtjedguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkf gjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhn uceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvd dtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr lhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id DDB8BE409D; Fri, 15 Feb 2019 14:39:03 -0500 (EST) From: Thomas Monjalon To: "Ananyev, Konstantin" Cc: David Marchand , "Richardson, Bruce" , "dev@dpdk.org" , "Lu, Wenzhuo" , "Wu, Jingjing" , "Iremonger, Bernard" , Maxime Coquelin , "Yigit, Ferruh" , Andrew Rybchenko , "Wiles, Keith" Date: Fri, 15 Feb 2019 20:38:59 +0100 Message-ID: <6177115.1iB7W0vHcD@xps> In-Reply-To: <2601191342CEEE43887BDE71AB977258012413A4D8@irsmsx105.ger.corp.intel.com> References: <1550158972-21895-1-git-send-email-david.marchand@redhat.com> <2601191342CEEE43887BDE71AB977258012413A4D8@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH 3/5] app/testpmd: add missing transmit errors stats 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: , X-List-Received-Date: Fri, 15 Feb 2019 19:39:07 -0000 15/02/2019 19:42, Ananyev, Konstantin: > >>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of David Marchand > >>> I am also for option 2 especially because of this. > >>> A driver that refuses a packet for reason X (which is a limitation, or an > >>> incorrect config or whatever that is not a transient condition) but gives > >>> it back to the application is a bad driver. > > >>Why? What.s wrong to leave it to the upper layer to decide what to > >>do with the packets that can't be sent (by one reason or another)? > > >How does the upper layer know if this is a transient state or something that can't be resolved? > > Via rte_errno, for example. rte_errno is not a result per packet. I think it is better to "eat" the packet as it is done for those transmitted to the HW.