Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Fix IXGBE_LE32_TO_CPUS() macro for big end...



details:   https://anonhg.NetBSD.org/src/rev/d78b49acd502
branches:  trunk
changeset: 934393:d78b49acd502
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jun 11 05:16:22 2020 +0000

description:
Fix IXGBE_LE32_TO_CPUS() macro for big endian machine. This problem was
only on X550*. Not tested on big endian machine.

diffstat:

 sys/dev/pci/ixgbe/ixgbe_osdep.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c9fcb152ceec -r d78b49acd502 sys/dev/pci/ixgbe/ixgbe_osdep.h
--- a/sys/dev/pci/ixgbe/ixgbe_osdep.h   Thu Jun 11 03:47:05 2020 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_osdep.h   Thu Jun 11 05:16:22 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe_osdep.h,v 1.25 2019/12/17 05:49:01 msaitoh Exp $ */
+/* $NetBSD: ixgbe_osdep.h,v 1.26 2020/06/11 05:16:22 msaitoh Exp $ */
 
 /******************************************************************************
   SPDX-License-Identifier: BSD-3-Clause
@@ -139,7 +139,7 @@
 #define IXGBE_CPU_TO_LE16 htole16
 #define IXGBE_CPU_TO_LE32 htole32
 #define IXGBE_LE32_TO_CPU le32toh
-#define IXGBE_LE32_TO_CPUS(x)
+#define IXGBE_LE32_TO_CPUS(x) (*(x) = le32toh(*(x)))
 #define IXGBE_CPU_TO_BE16 htobe16
 #define IXGBE_CPU_TO_BE32 htobe32
 #define IXGBE_BE32_TO_CPU be32toh



Home | Main Index | Thread Index | Old Index