]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netmap: get rid of save_if_input for emulated adapters
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Tue, 14 Mar 2023 21:59:23 +0000 (21:59 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Tue, 14 Mar 2023 22:04:23 +0000 (22:04 +0000)
commit6c9fe357435db6408ec6b01221b9ff9e7e9b0ff1
tree601db79d7d4e6bbfee4e56413b3efdcd2a1b7dbd
parentadf62e83631571e74caf3d78ddb091870b9d6ecf
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
sys/dev/netmap/netmap_freebsd.c
sys/dev/netmap/netmap_kern.h