net: Abstract the ethernet frame type handling.

This change creates handlers which can be installed to process ethernet frames
of different types. That relieves the generic networking code from having to
know what functions to call in what order for the various types.

Change-Id: Ic876f396e8f575b764ebd6dc8e4e266a589153f2
6 files changed