]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: don't clutter init code passing fw_ver around
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 6 Jun 2017 00:01:53 +0000 (17:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2017 16:51:41 +0000 (12:51 -0400)
commit9320297ec2d3bca7056358627391edc8294870a4
tree8cef9720ef77b27cec70344afba003ebc08fbcc8
parent6d56f75eaa257eb7f3829a3e99964cfde1cbf84d
nfp: don't clutter init code passing fw_ver around

Reading fw version from the BAR is trivial.  Don't pass it around
through layers of init functions, simply read it again where needed.

This commit has the side effect of each vNIC having the exact NFD
version from its own control memory, rather than all data vNICs
assuming the version of the first one.  This should not result in
user-visible changes, though.  Capabilities of data vNICs of trival
apps are identical.

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