Re: [dpdk-dev] [PATCH] net/af_packet: improve Tx statistics accuracy

2019-10-09 Thread Stephen Hemminger
On Wed, 9 Oct 2019 16:29:09 +0100 Flavia Musatescu wrote: > + if (sendto(pkt_q->sockfd, NULL, 0, MSG_DONTWAIT, NULL, 0) == -1 && > + errno != ENOBUFS) { > + /* Error sending. > + * When sendto call fails and ENOBUFS error is being set > +

[dpdk-dev] [PATCH] net/af_packet: improve Tx statistics accuracy

2019-10-09 Thread Flavia Musatescu
When sendto call fails and ENOBUFS error is being set some of the packets are actually successfully transmitted. There is no available count of those packets, so in order to make the statistics more accurate, all the previously enqueued packets will be considered successful, even though this is not