]> 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:04:00 +0000 (08:04 +0000)
commit75b13b151c9e3d8fd71eab3578d4a83b067dadf6
tree1436f6c7ecb35348996129f141353b806880af66
parent93d1c189bc368bf1e9a661673cbc44142780be75
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