Introduce bridge_ifinput() to handle some repeated logic before
authorreyk <reyk@openbsd.org>
Mon, 12 Oct 2015 10:03:25 +0000 (10:03 +0000)
committerreyk <reyk@openbsd.org>
Mon, 12 Oct 2015 10:03:25 +0000 (10:03 +0000)
commitcbc62d32c6d2009e44f7ef1df24cc966cfa529fe
treeb61e9803f290ed487728a5fd987f60f664f24c9e
parent8fc97bfcb7e7393c9d76f15539a6e6ec51c73924
Introduce bridge_ifinput() to handle some repeated logic before
if_input() and to have a counterpart for bridge_ifenqueue() that helps
to understand the traffic/code flow in bridge better.  The bridge
currently only puts a single packet on the input mbuf list, and
changing will need to undo part of this commit, but it still makes
sense to have a well-defined call for the ports receive path.
No functional change.

OK mpi@
sys/net/if_bridge.c