Re: [PATCH v20 23/25] net/pcap: add EOF notification via link status change

Bruce Richardson
2026-03-16T15:05:43Z

On Tue, Mar 10, 2026 at 09:10:01AM -0700, Stephen Hemminger wrote:
> Add an "eof" devarg for rx_pcap mode that signals end-of-file by
> setting link down and generating an LSC event. This allows
> applications to detect when a pcap file has been fully consumed
> using the standard ethdev callback mechanism.
>
> The eof and infinite_rx options are mutually exclusive. On device
> restart, the EOF state is reset so the file can be replayed.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>