HomeFreeBSD

netmap: iflib: add nm_config callback

Description

netmap: iflib: add nm_config callback

This per-driver callback is invoked by netmap when it wants
to align the number of TX/RX netmap rings and/or the number of
TX/RX netmap slots to the actual state configured in the hardware.
The alignment happens when netmap mode is switched on (with no
active netmap file descriptors for that netmap port), or when
collecting netmap port information.

MFC after: 1 week

(cherry picked from commit 21d0c01226eb979556d6d792ec58eb54012fbc24)

Details

Provenance
vmaffioneAuthored on Mar 29 2021, 9:26 AM
Parents
rG93d1c189bc36: zfs: merge OpenZFS master-891568c99
Branches
Unknown
Tags
Unknown