net: marvell: mvpp2: add mvpp2_is_xlg() helper
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 11 Feb 2019 10:23:10 +0000 (10:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 17:32:51 +0000 (12:32 -0500)
commitb7d286f01b9d9021695188092e36f405f2ecd276
tree5836042c649a8fd29290706b8d02d556b424efce
parent86e58135bc4ac68b41be11d82f1b1f87cb6119ba
net: marvell: mvpp2: add mvpp2_is_xlg() helper

Add a mvpp2_is_xlg() helper to identify whether the interface mode
should be using the XLGMAC rather than the GMAC.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c