]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f391a7d01778dd881aa35ea61063f61b1694110
tree99cd036c47f59082b1d6c6d9ccdbc7a45f3c63cf
parentc6162b3dcab4b0a6152d4266b43f07971cc0cf98
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