nfp: make vNIC ctrl memory mapping function reusable
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 6 Jun 2017 00:01:51 +0000 (17:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2017 16:51:40 +0000 (12:51 -0400)
commitc24ca95ff648dd6477d488bb41b9282b67bd22e9
tree1f54f28ad1c6323fdea48f61eb76f195578080a5
parent77ece8d5f1960f82d66b68fbc0c92938cdfa2688
nfp: make vNIC ctrl memory mapping function reusable

We will soon need to map control vNIC PCI memory as well as data vNIC
memory.  Make the function for mapping areas pointed to by an RTsym
reusable.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_main.c