]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netmap: iflib: add nm_config callback
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Mon, 29 Mar 2021 09:26:12 +0000 (11:26 +0200)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Mon, 5 Apr 2021 08:05:16 +0000 (08:05 +0000)
commit8d415b19409b7709193b2f045d75a6b3bdeaf290
tree615263ddacbd3b86bb247b5e6de1ec7754c6b612
parentfd1c5c6cfca58a47bc087b0722360f76024a2594
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)
sys/net/iflib.c