aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cx
diff options
context:
space:
mode:
authorRoman Kurakin <rik@FreeBSD.org>2005-07-09 14:31:48 +0000
committerRoman Kurakin <rik@FreeBSD.org>2005-07-09 14:31:48 +0000
commitea78cad4bfb2e1afdae55df7dc71fc623a82c616 (patch)
tree309c1414b5674a54575813f5ecbce1b65ef3cdf9 /sys/dev/cx
parent6cfa1c438bdde457aa9f66267bd99c5cfaac2e25 (diff)
downloadsrc-ea78cad4bfb2e1afdae55df7dc71fc623a82c616.tar.gz
src-ea78cad4bfb2e1afdae55df7dc71fc623a82c616.zip
Lost cx_mpsafenet check.
Pointy hat: me Approved by: re (scottl)
Notes
Notes: svn path=/head/; revision=147861
Diffstat (limited to 'sys/dev/cx')
-rw-r--r--sys/dev/cx/if_cx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c
index 0627e1325a78..4f757f6c3ee1 100644
--- a/sys/dev/cx/if_cx.c
+++ b/sys/dev/cx/if_cx.c
@@ -853,8 +853,9 @@ static int cx_attach (device_t dev)
d->ifp->if_softc = d;
if_initname (d->ifp, "cx", b->num * NCHAN + c->num);
d->ifp->if_mtu = PP_MTU;
- d->ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST |
- IFF_NEEDSGIANT;
+ d->ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST;
+ if (!cx_mpsafenet)
+ d->ifp->if_flags |= IFF_NEEDSGIANT;
d->ifp->if_ioctl = cx_sioctl;
d->ifp->if_start = cx_ifstart;
d->ifp->if_watchdog = cx_ifwatchdog;