From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: net/pcap: set rte_errno on TX error Date: Mon, 25 Jul 2016 15:43:45 +0200 Message-ID: <48982545.S9g3uDomrp@xps13> References: <1469452240-1204-1-git-send-email-zoltan.kiss@schaman.hu> <5796153A.1070007@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Nicolas Pernas Maradei To: Ferruh Yigit , Zoltan Kiss Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id F089332A5 for ; Mon, 25 Jul 2016 15:43:47 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id o80so157793292wme.1 for ; Mon, 25 Jul 2016 06:43:47 -0700 (PDT) In-Reply-To: <5796153A.1070007@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-07-25 14:33, Ferruh Yigit: > On 7/25/2016 2:10 PM, Zoltan Kiss wrote: > > This returns the error code provided by pcap_sendpacket() > > Although this is good idea, this adds undocumented side effect to > rte_eth_tx_burst(). > > I am not able to find any information in rte_eth_tx_burst() that it can > alter rte_errno. > > Since rte_errno is shared resource, it shouldn't be updated without > documented. That's something I was looking into. Maybe we should generalize the use of rte_errno in 16.11?