mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Allocate one of the spare ifnet integer fields to hold if_drv_flags,
which in the future will hold IFF_OACTIVE and IFF_RUNNING, and have its access synchronized by the device driver rather than the protocol stack. This will avoid potential races in the management of flags in if_flags. Discussed with: various (scottl, jhb, ...) MFC after: 1 week
This commit is contained in:
parent
4bf21bfef9
commit
638ccea02a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148265
@ -161,7 +161,7 @@ struct ifnet {
|
||||
void *if_spare1; /* spare pointer 1 */
|
||||
void *if_spare2; /* spare pointer 2 */
|
||||
void *if_spare3; /* spare pointer 3 */
|
||||
u_int if_spare_flags1; /* spare flags 1 */
|
||||
int if_drv_flags; /* driver-managed status flags */
|
||||
u_int if_spare_flags2; /* spare flags 2 */
|
||||
struct ifaltq if_snd; /* output queue (includes altq) */
|
||||
const u_int8_t *if_broadcastaddr; /* linklevel broadcast bytestring */
|
||||
|
Loading…
Reference in New Issue
Block a user