]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sfxge: assert either kernel or internal copy of interface flags
authorarybchik <arybchik@FreeBSD.org>
Mon, 23 Mar 2015 15:44:17 +0000 (15:44 +0000)
committerarybchik <arybchik@FreeBSD.org>
Mon, 23 Mar 2015 15:44:17 +0000 (15:44 +0000)
commit0a791783fdc0fb3b3bf5e1efba4a25d05fcac7d4
tree96bf100ad8f32ce536d7bc785b8485e414d9d0b8
parent834e273477787169933b2d054c4783748564bd59
sfxge: assert either kernel or internal copy of interface flags

ioctl to put interface down sets ifp->if_flags which holds the intended
administratively defined state and calls driver callback to apply it.
When everything is done, driver updates internal copy of
interface flags sc->if_flags which holds the operational state.
So, transmit from Rx path is possible when interface is intended to be
administratively down in accordance with ifp->if_flags, but not applied
yet and the operational state is up in accordance with sc->if_flags.

Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2075
sys/dev/sfxge/sfxge_tx.c