nfp: dump all hwinfo
authorCarl Heymann <carl.heymann@netronome.com>
Mon, 4 Dec 2017 22:34:17 +0000 (23:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 20:01:02 +0000 (15:01 -0500)
commit24ff8455aff061c83ebad3471991937a62eece81
tree7368e47c3793ad3bf5b96fd2b0da129fec06f023
parente1e798e3fd93dfbabedea9a5d6bc547ec2892b36
nfp: dump all hwinfo

- Dump hwinfo as separate TLV chunk, in a packed format containing
  zero-separated key and value strings.
- This provides additional debug context, if requested by the dumpspec.

Signed-off-by: Carl Heymann <carl.heymann@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c
drivers/net/ethernet/netronome/nfp/nfpcore/nfp.h
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c