Move one "#ifdef NVLAN" chunk needed only if you're running bridge(4) on
authormpi <mpi@openbsd.org>
Mon, 13 Apr 2015 08:52:51 +0000 (08:52 +0000)
committermpi <mpi@openbsd.org>
Mon, 13 Apr 2015 08:52:51 +0000 (08:52 +0000)
commit3864fa697742bfe2dd64aa348465ddb79f251d0f
treeb5cd720e0f00533d876f9ed294db09c5566fbd30
parentc35f95b812dab7979e23294211d4af0f7e2ce6c6
Move one "#ifdef NVLAN" chunk needed only if you're running bridge(4) on
to of vlan(4) from ether_input() to bridge_input().

One of the goal of the if_input() plumbing is to stop doing all possible
pseudo-drivers checks on every packets.  There's no reason that even if
you're not running a bridge(4) you've to run this code.

This change also will also makes it easier to convert vlan(4) to if_input().

Reviewed by Rafael Zalamena and mikeb@, ok markus@
sys/net/if_bridge.c
sys/net/if_ethersubr.c
sys/net/if_vlan.c