diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-06-23 23:12:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-25 18:42:01 +0300 |
commit | a7ceb9905eed38454d28c293afc2f0acb7915d00 (patch) | |
tree | 8af74ad27c731adc17acaf5c86bd9d62da97e733 /drivers/net/ethernet/netronome/nfp/nfp_port.h | |
parent | 9daee04ae17fb886008ba222fe8150fcc1d0d8cb (diff) | |
download | linux-a7ceb9905eed38454d28c293afc2f0acb7915d00.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_port.h')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nfp_port.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_port.h b/drivers/net/ethernet/netronome/nfp/nfp_port.h index 4d1a9b3fed41..fb28c7071987 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_port.h +++ b/drivers/net/ethernet/netronome/nfp/nfp_port.h @@ -104,6 +104,9 @@ nfp_port_alloc(struct nfp_app *app, enum nfp_port_type type, struct net_device *netdev); void nfp_port_free(struct nfp_port *port); +int nfp_port_init_phy_port(struct nfp_pf *pf, struct nfp_app *app, + struct nfp_port *port, unsigned int id); + int nfp_net_refresh_eth_port(struct nfp_port *port); void nfp_net_refresh_port_table(struct nfp_port *port); int nfp_net_refresh_port_table_sync(struct nfp_pf *pf); |