Re: [PATCH] net/af_packet: provide packet drop stats

2025-01-17 Thread Stephen Hemminger
On Fri, 17 Jan 2025 07:20:05 + Stefan Lässer wrote: > > -Original Message- > > From: Stephen Hemminger > > Sent: Thursday, January 16, 2025 5:25 PM > > To: Stefan Lässer > > Cc: John W. Linville ; dev@dpdk.org > > Subject: Re: [PATCH] net/

RE: [PATCH] net/af_packet: provide packet drop stats

2025-01-16 Thread Stefan Lässer
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, January 16, 2025 5:25 PM > To: Stefan Lässer > Cc: John W. Linville ; dev@dpdk.org > Subject: Re: [PATCH] net/af_packet: provide packet drop stats > > On Thu, 16 Jan 2025 17:17:03 +0100 > Stefan

Re: [PATCH] net/af_packet: provide packet drop stats

2025-01-16 Thread Stephen Hemminger
On Thu, 16 Jan 2025 17:17:03 +0100 Stefan Laesser wrote: > The Linux kernel provides the ability to query the packet drop counter > of a socket. This information can be provided when the user requests > stats. > > It is important to note that each call to getsockopt with > PACKET_STATISTICS rese

[PATCH] net/af_packet: provide packet drop stats

2025-01-16 Thread Stefan Laesser
The Linux kernel provides the ability to query the packet drop counter of a socket. This information can be provided when the user requests stats. It is important to note that each call to getsockopt with PACKET_STATISTICS resets the internal counters. So the caller needs to keep track of the tota