nfp: provide nfp_port to of nfp_net_get_mac_addr()
authorSimon Horman <simon.horman@netronome.com>
Fri, 23 Jun 2017 20:12:05 +0000 (22:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 15:42:01 +0000 (11:42 -0400)
commit93da7d9660ee6117672a4a9233d80600220de675
tree1abdfa4991f076fcb8fc88dfa1505778990ed7af
parent758238f2e7a645630c3fead7577c3fa5a36c6ad7
nfp: provide nfp_port to of nfp_net_get_mac_addr()

Provide port rather than vNIC as parameter of nfp_net_get_mac_addr.
This is to allow this function to be used by representor netdevs where
a vNIC may have more than one physical port none of which are associated
with the vNIC.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@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_main.h
drivers/net/ethernet/netronome/nfp/nfp_net_main.c