]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf258ad6cf33f5574cb7e81cb086c50213b5985bb
tree57e4027086871f9cf66995a098a3ea6483df60ab
parent64e79021dc77c9f0a721d4b3ce3df31b1cec74ae
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: 4dd7612dea82 ("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