net: mscc: improve the frame header parsing readability
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 12 Aug 2019 14:45:35 +0000 (16:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2019 23:31:11 +0000 (16:31 -0700)
commitd8c964dccae30dc326e2bd7170d6919858bc5cff
tree1f3201dc4b4b1deed55f12a230533b0ee208d744
parent45bce1719cbd1ad3fb48f840accb1d120b6b0209
net: mscc: improve the frame header parsing readability

This cosmetic patch improves the frame header parsing readability by
introducing a new macro to access and mask its fields.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_board.c