]> asedeno.scripts.mit.edu Git - linux.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)
commit10144de3830a47f65d87a67f3bb5844cec97aa69
tree7d7c8387d5ca2975018fc4c0a6f0490c791515e2
parent24ff8455aff061c83ebad3471991937a62eece81
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