ethernet: move dmac filtering to inline function 03/22303/2
authorMatthew Smith <[email protected]>
Fri, 12 Jul 2019 16:48:24 +0000 (11:48 -0500)
committerAndrew Yourtchenko <[email protected]>
Sun, 29 Sep 2019 13:08:40 +0000 (13:08 +0000)
commitfe005b404585ec34a15868e84e2cea4fe780eab5
treea5070db3d32ffdf90f9482201426165b58de4a47
parentbc5f2bcc2c186983aabc020d0cb1158dee36a549
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 <[email protected]>
(cherry picked from commit fa20d4c5375c02f61e565b5fc57c490145bc0919)
src/vnet/ethernet/node.c