ethernet: move dmac filtering to inline function 62/21462/8
authorMatthew Smith <mgsmith@netgate.com>
Fri, 12 Jul 2019 16:48:24 +0000 (11:48 -0500)
committerDamjan Marion <dmarion@me.com>
Wed, 4 Sep 2019 15:46:57 +0000 (15:46 +0000)
commitfa20d4c5375c02f61e565b5fc57c490145bc0919
tree23f018d227602bc9e482423f41ed0c75eaf3b76b
parent87f0dc7377311a75e906233b398af89d41b72f15
ethernet: move dmac filtering to inline function

In eth_input_process_frame(), destination MAC addresses are
compared to the interface hardware address in a loop. Move
this to a separate inline function to facilitate making changes
to the filtering logic more cleanly.

Type: refactor

Change-Id: I0978f01667e78af5214dbbc9ba223f5b84ce6b7e
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vnet/ethernet/node.c