cxgb4: Fix incorrect sequence numbers shown in devlog
authorHariprasad Shenai <hariprasad@chelsio.com>
Fri, 3 Jul 2015 10:40:51 +0000 (16:10 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jul 2015 16:54:02 +0000 (09:54 -0700)
commitfda8b18c515a5e2caf821887ceafb42c35094eaf
treed39156760912e11884707e15eb7389d6aaa11069
parent4c938d22c88a9ddccc8c55a85e0430e9c62b1ac5
cxgb4: Fix incorrect sequence numbers shown in devlog

Part of commit 49aa284fe64c4c1 ("cxgb4: Add support for devlog")
change introduced a real bug where the Device Log Sequence Numbers are
no longer being converted from firmware Big-Endian to local CPU-Endian
format.

This patch moves all of the translation into the devlog_show() routine.
The only endianness code now in devlog_open() is the small loop to find the
earliest (lowest Sequence Number) Device Log entry in the circular buffer.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c