nfp: add nfp_cppcore_pcie_unit() helper
authorSimon Horman <simon.horman@netronome.com>
Mon, 22 May 2017 17:59:22 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 18:59:02 +0000 (14:59 -0400)
commitcd6f8db9aebeb7f234b38756ba8ee77230058846
tree4dfa6ec5044a15a86ab58cdb706ccabd3ca9f312
parentbd080488a6cfd37135becedfdc87643b139c2345
nfp: add nfp_cppcore_pcie_unit() helper

Add nfp_cppcore_pcie_unit() helper to retrieve the PCIE unit of a CPP
handle and use the new helper as appropriate.

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_net_main.c
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h