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 Print CPU number correctly.
details: https://anonhg.NetBSD.org/src/rev/76b16857a69f
branches: trunk
changeset: 351246:76b16857a69f
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Feb 08 09:00:37 2017 +0000
description:
Print CPU number correctly.
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 8 ++++----
sys/dev/pci/ixgbe/ixv.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (65 lines):
diff -r 531a3445db95 -r 76b16857a69f sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Feb 08 08:30:16 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Feb 08 09:00:37 2017 +0000
@@ -59,7 +59,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
/*$FreeBSD: head/sys/dev/ixgbe/if_ix.c 302384 2016-07-07 03:39:18Z sbruno $*/
-/*$NetBSD: ixgbe.c,v 1.70 2017/02/08 08:13:53 msaitoh Exp $*/
+/*$NetBSD: ixgbe.c,v 1.71 2017/02/08 09:00:37 msaitoh Exp $*/
#include "opt_inet.h"
#include "opt_inet6.h"
@@ -2736,11 +2736,11 @@
#ifdef RSS
aprintf_normal(
", bound RSS bucket %d to CPU %d",
- i, cpu_id);
+ i, cpu_id % ncpu);
#else
aprint_normal(
", bound queue %d to cpu %d",
- i, cpu_id);
+ i, cpu_id % ncpu);
#endif
#endif /* IXGBE_DEBUG */
}
@@ -2784,7 +2784,7 @@
aprint_normal_dev(dev,
"for link, interrupting at %s", intrstr);
if (error == 0)
- aprint_normal(", affinity to cpu %d\n", cpu_id);
+ aprint_normal(", affinity to cpu %d\n", cpu_id % ncpu);
else
aprint_normal("\n");
diff -r 531a3445db95 -r 76b16857a69f sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c Wed Feb 08 08:30:16 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c Wed Feb 08 09:00:37 2017 +0000
@@ -31,7 +31,7 @@
******************************************************************************/
/*$FreeBSD: head/sys/dev/ixgbe/if_ixv.c 302384 2016-07-07 03:39:18Z sbruno $*/
-/*$NetBSD: ixv.c,v 1.46 2017/02/08 08:30:16 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.47 2017/02/08 09:00:37 msaitoh Exp $*/
#include "opt_inet.h"
#include "opt_inet6.h"
@@ -1421,7 +1421,7 @@
intrstr);
if (error == 0)
aprint_normal(", bound queue %d to cpu %d\n",
- i, cpu_id);
+ i, cpu_id % ncpu);
else
aprint_normal("\n");
@@ -1464,7 +1464,7 @@
aprint_normal_dev(dev,
"for link, interrupting at %s", intrstr);
if (error == 0)
- aprint_normal(", affinity to cpu %d\n", cpu_id);
+ aprint_normal(", affinity to cpu %d\n", cpu_id % ncpu);
else
aprint_normal("\n");
Home |
Main Index |
Thread Index |
Old Index