]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: dump single hwinfo field by key
authorCarl Heymann <carl.heymann@netronome.com>
Mon, 4 Dec 2017 22:34:18 +0000 (23:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 20:01:02 +0000 (15:01 -0500)
commit6f6217e2a42059fe78054c75453147ce2cc503fa
tree7d7c8387d5ca2975018fc4c0a6f0490c791515e2
parenteb2a3e85a1c6548081590a6aa78f281325c0bf3e
nfp: dump single hwinfo field by key

- Add spec TLV for hwinfo field, containing key string as data.
- Add dump TLV for hwinfo field, with data being key and value as packed
  zero-terminated strings.
- If specified hwinfo field is not found, dump the spec TLV as -ENOENT
  error.

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