]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix build with nodevice netmap
authorStephen Hurd <shurd@FreeBSD.org>
Tue, 31 Oct 2017 02:49:28 +0000 (02:49 +0000)
committerStephen Hurd <shurd@FreeBSD.org>
Tue, 31 Oct 2017 02:49:28 +0000 (02:49 +0000)
commit10e0d93811238496e53f50df9676188aea8c40dc
tree908c1ae9a8509fa2a0de1a0e5e82185b5deebbf4
parentb171cc2c56a45cfb02a57c01bc2ee693c692db1c
Fix build with nodevice netmap

iru_init() was declared and used outside the DEV_NETMAP
conditional blocks, but was implemented inside one. Move the
implementation out of the DEV_NETMAP block to allow building with
netmap disabled.

Reported by: Andrew Turner <andrew@fubar.geek.nz>
Reviewed by: sbruno
Approved by: sbruno (mentor)
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D12842
sys/net/iflib.c