net: mvpp2: move the mac retrieval/copy logic into its own function
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Sat, 2 Sep 2017 09:06:47 +0000 (11:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 03:16:55 +0000 (20:16 -0700)
commit3ba8c81e15c11fc396d0b5d11adaf9db6ed39533
tree51d595d76d69fad6e2f18d01c528c0735842364e
parentb63f6044d8e43e4a1eef8b0a2310cec872fd1d38
net: mvpp2: move the mac retrieval/copy logic into its own function

The MAC retrieval has a quite complicated logic (which is broken). Moves
it to its own function to prepare for patches fixing its logic, so that
reviews are easier.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c