nfp: move physical port init into a helper
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 23 Jun 2017 20:12:00 +0000 (22:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 15:42:01 +0000 (11:42 -0400)
commita7ceb9905eed38454d28c293afc2f0acb7915d00
tree8af74ad27c731adc17acaf5c86bd9d62da97e733
parent9daee04ae17fb886008ba222fe8150fcc1d0d8cb
nfp: move physical port init into a helper

Move MAC/PHY port init into a helper to make it easier to reuse
it in the representor code.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_app_nic.c
drivers/net/ethernet/netronome/nfp/nfp_port.c
drivers/net/ethernet/netronome/nfp/nfp_port.h