aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-11-14 18:36:37 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-11-14 18:36:37 +0000
commit99efe4f0f86203d31d497635566d2998e35abeb8 (patch)
treec94ee5845b912877c84cbff04313feb143f0d7b4
parent69aaef01227cdf9ede9472595ef47c48906ce2d4 (diff)
Notes
-rw-r--r--sys/dev/dc/if_dc.c1
-rw-r--r--sys/net/if_var.h10
-rw-r--r--sys/pci/if_dc.c1
3 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index d8874649fed36..4592c299499fa 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -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
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 2738c36f120cd..9797d9075cb3d 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -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);
}
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index d8874649fed36..4592c299499fa 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -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