summaryrefslogtreecommitdiff
path: root/sys/pci/if_ste.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-11-14 19:00:32 +0000
committerSam Leffler <sam@FreeBSD.org>2003-11-14 19:00:32 +0000
commit5120abbfb44aea8edaca3311a60e73429dc71942 (patch)
tree0e5901939d8633065a9035209aa5138fe4ea6820 /sys/pci/if_ste.c
parent274461c9441dd719a672a8fef48458e127b3885e (diff)
Notes
Diffstat (limited to 'sys/pci/if_ste.c')
-rw-r--r--sys/pci/if_ste.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c
index cf1e920b43e8..5c08f8566e5d 100644
--- a/sys/pci/if_ste.c
+++ b/sys/pci/if_ste.c
@@ -693,6 +693,8 @@ ste_rxeof(sc)
int total_len = 0, count=0;
u_int32_t rxstat;
+ STE_LOCK_ASSERT(sc);
+
ifp = &sc->arpcom.ac_if;
while((rxstat = sc->ste_cdata.ste_rx_head->ste_ptr->ste_status)
@@ -750,7 +752,9 @@ ste_rxeof(sc)
m->m_pkthdr.len = m->m_len = total_len;
ifp->if_ipackets++;
+ STE_UNLOCK(sc);
(*ifp->if_input)(ifp, m);
+ STE_LOCK(sc);
cur_rx->ste_ptr->ste_status = 0;
count++;