Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci fix endianness of "rsshash"(currently, used for ...
details: https://anonhg.NetBSD.org/src/rev/d1c803ce6624
branches: trunk
changeset: 351001:d1c803ce6624
user: knakahara <knakahara%NetBSD.org@localhost>
date: Mon Jan 30 09:33:38 2017 +0000
description:
fix endianness of "rsshash"(currently, used for debug message only) and tabify.
diffstat:
sys/dev/pci/if_wm.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (48 lines):
diff -r 7bc96bc011ec -r d1c803ce6624 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Mon Jan 30 06:11:56 2017 +0000
+++ b/sys/dev/pci/if_wm.c Mon Jan 30 09:33:38 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.470 2017/01/27 05:04:47 knakahara Exp $ */
+/* $NetBSD: if_wm.c,v 1.471 2017/01/30 09:33:38 knakahara Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -84,7 +84,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.470 2017/01/27 05:04:47 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.471 2017/01/30 09:33:38 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -7726,7 +7726,7 @@
len = le16toh(wm_rxdesc_get_pktlen(rxq, i));
vlantag = wm_rxdesc_get_vlantag(rxq, i);
#ifdef WM_DEBUG
- uint32_t rsshash = wm_rxdesc_get_rsshash(rxq, i);
+ uint32_t rsshash = le32toh(wm_rxdesc_get_rsshash(rxq, i));
uint8_t rsstype = wm_rxdesc_get_rsstype(rxq, i);
#endif
@@ -7838,13 +7838,13 @@
/* No errors. Receive the packet. */
m_set_rcvif(m, ifp);
m->m_pkthdr.len = len;
- /*
- * TODO
- * should be save rsshash and rsstype to this mbuf.
- */
- DPRINTF(WM_DEBUG_RX,
- ("%s: RX: RSS type=%" PRIu8 ", RSS hash=%" PRIu32 "\n",
- device_xname(sc->sc_dev), rsstype, rsshash));
+ /*
+ * TODO
+ * should be save rsshash and rsstype to this mbuf.
+ */
+ DPRINTF(WM_DEBUG_RX,
+ ("%s: RX: RSS type=%" PRIu8 ", RSS hash=%" PRIu32 "\n",
+ device_xname(sc->sc_dev), rsstype, rsshash));
/*
* If VLANs are enabled, VLAN packets have been unwrapped
Home |
Main Index |
Thread Index |
Old Index