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 a bug that reading hw.ixgM.qN.interrup...
details: https://anonhg.NetBSD.org/src/rev/d0bd87e27b5b
branches: trunk
changeset: 353305:d0bd87e27b5b
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Apr 28 10:24:45 2017 +0000
description:
Fix a bug that reading hw.ixgM.qN.interrupt_rate cause the interrupt
throtting rate register to 0. Check sysctl read/write correctly...
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 3378a462ac6c -r d0bd87e27b5b sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Fri Apr 28 10:12:35 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Fri Apr 28 10:24:45 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.80 2017/03/03 04:37:05 msaitoh Exp $*/
+/*$NetBSD: ixgbe.c,v 1.81 2017/04/28 10:24:45 msaitoh Exp $*/
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -4490,7 +4490,7 @@
rate = 0;
node.sysctl_data = &rate;
error = sysctl_lookup(SYSCTLFN_CALL(&node));
- if (error)
+ if (error || newp == NULL)
return error;
reg &= ~0xfff; /* default, no limitation */
ixgbe_max_interrupt_rate = 0;
Home |
Main Index |
Thread Index |
Old Index