mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue