]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd26693a5152a2836601f850ccf53a8b0442ea6c
treed39156760912e11884707e15eb7389d6aaa11069
parent9fd29b395ba5e3bad2e5072cba33b9d837a5ad95
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