Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Define RETA_ENTRY_MASK_Q(used in RSS redirection...
details: https://anonhg.NetBSD.org/src/rev/35c43a6dbdb9
branches: trunk
changeset: 1000343:35c43a6dbdb9
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Jul 23 09:37:08 2019 +0000
description:
Define RETA_ENTRY_MASK_Q(used in RSS redirection table) correctly.
Found by UBSan.
diffstat:
sys/dev/pci/if_wmreg.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ea1e98ecfb6b -r 35c43a6dbdb9 sys/dev/pci/if_wmreg.h
--- a/sys/dev/pci/if_wmreg.h Tue Jul 23 09:06:12 2019 +0000
+++ b/sys/dev/pci/if_wmreg.h Tue Jul 23 09:37:08 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wmreg.h,v 1.114 2019/06/07 04:39:15 msaitoh Exp $ */
+/* $NetBSD: if_wmreg.h,v 1.115 2019/07/23 09:37:08 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -1270,7 +1270,7 @@
#define WMREG_RETA_Q(x) (0x5c00 + ((x) >> 2) * 4) /* Redirection Table */
#define RETA_NUM_ENTRIES 128
-#define RETA_ENTRY_MASK_Q(x) (0x000000ff << (((x) % 4) * 8)) /* Redirection Table */
+#define RETA_ENTRY_MASK_Q(x) (0x000000ffUL << (((x) % 4) * 8)) /* Redirection Table */
#define RETA_ENT_QINDEX_MASK __BITS(3,0) /*queue index for 82580 and newer */
#define RETA_ENT_QINDEX0_MASK_82575 __BITS(3,2) /*queue index for pool0 */
#define RETA_ENT_QINDEX1_MASK_82575 __BITS(7,6) /*queue index for pool1 and regular RSS */
Home |
Main Index |
Thread Index |
Old Index