nfp: fix absolute rtsym handling in debug dump
authorCarl Heymann <carl.heymann@netronome.com>
Thu, 14 Dec 2017 09:50:25 +0000 (10:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 17:48:45 +0000 (12:48 -0500)
commitda762863edd9e3f9b391620b845f2a6ffdc6dd7d
tree57e4027086871f9cf66995a098a3ea6483df60ab
parent9463b2f72eadf93132815e7ee8e54b4f46e39be9
nfp: fix absolute rtsym handling in debug dump

In TLV-based ethtool debug dumps, don't do a CPP read for absolute
rtsyms, use the addr field in the symbol table directly as the value.

Without this fix rtsym gro_release_ring_0 is 4 bytes of zeros.
With this fix the correct value, 0x0000004a 0x00000000 is reported.

The values may be read using ethtool debug level 2.
 # ethtool -W <netdev> 2
 # ethtool -w <netdev> data dump.dat

Fixes: e1e798e3fd93 ("nfp: dump rtsyms")
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