mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
Since if_sr doesn't contain locking or run with INTR_MPSAFE, mark
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
This commit is contained in:
parent
5ce832e127
commit
d87e67338d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133699
@ -420,7 +420,8 @@ sr_attach(device_t device)
|
||||
if_initname(ifp, device_get_name(device),
|
||||
device_get_unit(device));
|
||||
ifp->if_mtu = PP_MTU;
|
||||
ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST;
|
||||
ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST |
|
||||
IFF_NEEDSGIANT;
|
||||
ifp->if_ioctl = srioctl;
|
||||
ifp->if_start = srstart;
|
||||
ifp->if_watchdog = srwatchdog;
|
||||
|
Loading…
Reference in New Issue
Block a user