Skip to content

HAS_PCAP_IMMEDIATE_MODE for TPACKET_V3 #2206

Description

@MerinoSheep

Question

I believe I discoverd a potential Linux performance regression linked to the code cleanup in #1772. Forcing pcap_set_immediate_mode causes libpcap to fall back from TPACKET_V3 to TPACKET_V2 in this part of the code

#ifdef HAS_PCAP_IMMEDIATE_MODE

In my initial testing, disabling immediate mode significantly reduced CPU usage and increased throughput under load. I wanted to confirm what the intended behavior is currently. Thanks.

Relevant libpcap code

Operating systems

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions