Remove ifnet.if_mpsafe for now. If this is needed, it won't be needed

until much later when the network stack locking is farther along.

Approved by:	jlemon
This commit is contained in:
jhb 2001-11-14 18:36:37 +00:00
parent 08704afd44
commit 866e8e774b
3 changed files with 1 additions and 11 deletions

View File

@ -2060,7 +2060,6 @@ static int dc_attach(dev)
ifp->if_init = dc_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = DC_TX_LIST_CNT - 1;
ifp->if_mpsafe = IS_MPSAFE;
/*
* Do MII setup. If this is a 21143, check for a PHY on the

View File

@ -125,7 +125,6 @@ struct ifnet {
short if_flags; /* up/down, broadcast, etc. */
int if_capabilities; /* interface capabilities */
int if_capenable; /* enabled features */
int if_mpsafe; /* XXX TEMPORARY */
int if_ipending; /* interrupts pending */
void *if_linkmib; /* link-type-specific MIB data */
size_t if_linkmiblen; /* length of above data */
@ -292,15 +291,8 @@ if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp, int adjust)
}
_IF_ENQUEUE(ifq, m);
IF_UNLOCK(ifq);
if (ifp != NULL && !active) {
if (ifp->if_mpsafe) {
DROP_GIANT_NOSWITCH();
if (ifp != NULL && !active)
(*ifp->if_start)(ifp);
PICKUP_GIANT();
} else {
(*ifp->if_start)(ifp);
}
}
return (1);
}

View File

@ -2060,7 +2060,6 @@ static int dc_attach(dev)
ifp->if_init = dc_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = DC_TX_LIST_CNT - 1;
ifp->if_mpsafe = IS_MPSAFE;
/*
* Do MII setup. If this is a 21143, check for a PHY on the