Since the if_de driver doesn't contain locking, mark it as

IFF_NEEDSGIANT so that ifp->if_start won't be called without Giant
when running debug.mpsafenet=1.
This commit is contained in:
Robert Watson 2004-08-13 22:48:05 +00:00
parent fd51ce66aa
commit 09e54b95d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133674
2 changed files with 2 additions and 2 deletions

View File

@ -4758,7 +4758,7 @@ tulip_attach(
/* XXX: driver name/unit should be set some other way */ /* XXX: driver name/unit should be set some other way */
ifp->if_dname = "de"; ifp->if_dname = "de";
ifp->if_dunit = sc->tulip_unit; ifp->if_dunit = sc->tulip_unit;
ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST; ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST|IFF_NEEDSGIANT;
ifp->if_ioctl = tulip_ifioctl; ifp->if_ioctl = tulip_ifioctl;
ifp->if_start = tulip_ifstart; ifp->if_start = tulip_ifstart;
ifp->if_watchdog = tulip_ifwatchdog; ifp->if_watchdog = tulip_ifwatchdog;

View File

@ -4758,7 +4758,7 @@ tulip_attach(
/* XXX: driver name/unit should be set some other way */ /* XXX: driver name/unit should be set some other way */
ifp->if_dname = "de"; ifp->if_dname = "de";
ifp->if_dunit = sc->tulip_unit; ifp->if_dunit = sc->tulip_unit;
ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST; ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST|IFF_NEEDSGIANT;
ifp->if_ioctl = tulip_ifioctl; ifp->if_ioctl = tulip_ifioctl;
ifp->if_start = tulip_ifstart; ifp->if_start = tulip_ifstart;
ifp->if_watchdog = tulip_ifwatchdog; ifp->if_watchdog = tulip_ifwatchdog;