nfp: debug dump - decrease endian conversions
authorCarl Heymann <carl.heymann@netronome.com>
Sat, 9 Dec 2017 03:37:04 +0000 (19:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 17:08:13 +0000 (12:08 -0500)
commit92a54f4a47a348de03ed946b38b8c2b33ec8548a
treeda6b4b19304bb5d2a7bc8f0267152b4e813700ef
parent197171e5badbed907b535aeb82dbf9cdeb014afd
nfp: debug dump - decrease endian conversions

Convert the requested dump level parameter to big-endian at the start of
nfp_net_dump_calculate_size() and nfp_net_dump_populate_buffer(), then
compare and assign it directly where needed in the traversal and prolog
code. This decreases the total number of conversions used.

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