diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-09 14:57:31 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-09 14:57:31 +0000 |
commit | efcb1dc0b946240e15a02f584a3f56fd891e4f05 (patch) | |
tree | 5cd9731a6a6d40c7c5b29f7698761de7dc1bdde7 /sys | |
parent | ab88db4112c74debbc7d54efa038a2430e937b9b (diff) |
Remove the hack to check if the received pointer has changed in an ifih
now that all drivers and pseudo-drivers are using if_input().
if_input() is reentrant and is now the only place where we set `rcvif'.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 9965ae8134d..21031279f00 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.338 2015/06/07 12:02:28 jsg Exp $ */ +/* $OpenBSD: if.c,v 1.339 2015/06/09 14:57:30 mpi Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -523,7 +523,7 @@ if_input_process(void *xmq) s = splnet(); while ((m = ml_dequeue(&ml)) != NULL) { sched_pause(); -again: + /* * Pass this mbuf to all input handlers of its * interface until it is consumed. @@ -532,10 +532,6 @@ again: SLIST_FOREACH(ifih, &ifp->if_inputs, ifih_next) { if ((*ifih->ifih_input)(m)) break; - - /* Pseudo-drivers might be stacked. */ - if (ifp != m->m_pkthdr.rcvif) - goto again; } } splx(s); |