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 Correctly enter the recovery mode. Not tes...
details: https://anonhg.NetBSD.org/src/rev/3dd87f21d3e7
branches: trunk
changeset: 366601:3dd87f21d3e7
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Jun 01 05:06:45 2022 +0000
description:
Correctly enter the recovery mode. Not tested.
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4bfc89cecd9e -r 3dd87f21d3e7 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Jun 01 04:15:41 2022 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Jun 01 05:06:45 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.317 2022/06/01 04:15:41 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.318 2022/06/01 05:06:45 msaitoh Exp $ */
/******************************************************************************
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.317 2022/06/01 04:15:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.318 2022/06/01 05:06:45 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -4742,7 +4742,7 @@
IXGBE_CORE_LOCK(adapter);
if (ixgbe_fw_recovery_mode(hw)) {
- if (atomic_cas_uint(&adapter->recovery_mode, 0, 1)) {
+ if (atomic_cas_uint(&adapter->recovery_mode, 0, 1) == 0) {
/* Firmware error detected, entering recovery mode */
device_printf(adapter->dev, "Firmware recovery mode detected. Limiting functionality. Refer to the Intel(R) Ethernet Adapters and Devices User Guide for details on firmware
recovery mode.\n");
Home |
Main Index |
Thread Index |
Old Index