nfp: support variable NSP response lengths
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 29 May 2017 00:52:59 +0000 (17:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 15:27:05 +0000 (11:27 -0400)
commita87853f383afd6cb1cbda982d895e9cadf435098
tree99cd036c47f59082b1d6c6d9ccdbc7a45f3c63cf
parent2ed4b36d03f9f6e71fe0c5a15941b2ff0bac99ad
nfp: support variable NSP response lengths

We want to support extendable commands, where newer versions
of the management FW may provide more information.  Zero out
the communication buffer before passing control to NSP.  This
way if management FW is old and only fills in first N bytes,
the remaining ones will be zeros which extended ABI fields
should reserve as not supported/not available.

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