[PATCH v20 23/25] net/pcap: add EOF notification via link status change
Bruce Richardson
bruce.richardson at intel.com
Mon Mar 16 16:05:22 CET 2026
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 at networkplumber.org>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list