HomeFreeBSD

netmap: get rid of save_if_input for emulated adapters

Description

netmap: get rid of save_if_input for emulated adapters

The save_if_input function pointer was meant to save the previous
value of ifp->if_input before replacing it with the emulated
adapter hook.
However, the same pointer value is already stored in the if_input
field of the netmap_adapter struct, to be used for host TX ring processing.

Reuse the netmap_adapter if_input field to simplify the code
and save some space.

MFC after: 14 days

Details

Provenance
vmaffioneAuthored on Mar 14 2023, 9:59 PM
Parents
rGadf62e836315: infiniband: Convert BPF handling for IfAPI
Branches
Unknown
Tags
Unknown