Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2019 13:37:24 +0000
From:      Anand Khoje <akhoje@marvell.com>
To:        "net@FreeBSD.org" <net@FreeBSD.org>
Subject:   Qlogic FastLinq 45xxx driver Patch for upstream
Message-ID:  <MN2PR18MB292562BE6514ED60A12F4CBFDAE40@MN2PR18MB2925.namprd18.prod.outlook.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

We have a patch with fix for an issue raised by Microsoft :
"FreeBSD 11.2 - Kernel panic when flapping network interfaces on and off" .
The issue was observed when the customer was trying to flap interface on and off in a loop more than 20 times. After investigation, it was found that panic occurred due to a thread sleeping while holding a mutex after a calling function pause().

I have attached the patch that has to be submitted upstream. Please let me know if I need to add someone for reviewing it. Also, please let me know if you have any questions.

Thank you,
Anand A. Khoje

[-- Attachment #2 --]
diff -uar qlnx_v2.0.112/qlnxe/qlnx_os.h qlnx_v2.1.112/qlnxe/qlnx_os.h
--- qlnx_v2.0.112/qlnxe/qlnx_os.h	2018-07-13 20:25:45.000000000 +0530
+++ qlnx_v2.1.112/qlnxe/qlnx_os.h	2019-04-04 09:40:37.543011000 +0530
@@ -131,14 +131,8 @@
 
 MALLOC_DECLARE(M_QLNXBUF);
 
-#define qlnx_mdelay(fn, msecs)	\
-	{\
-		if (cold) \
-			DELAY((msecs * 1000)); \
-		else  \
-			pause(fn, qlnx_ms_to_hz(msecs)); \
-	}
-	
+#define qlnx_mdelay(fn, msecs)	DELAY((msecs * 1000));	
+
 /*
  * Locks
  */
diff -uar qlnx_v2.0.112/qlnxe/qlnx_ver.h qlnx_v2.1.112/qlnxe/qlnx_ver.h
--- qlnx_v2.0.112/qlnxe/qlnx_ver.h	2018-07-13 20:25:45.000000000 +0530
+++ qlnx_v2.1.112/qlnxe/qlnx_ver.h	2019-04-03 21:53:02.971446000 +0530
@@ -38,6 +38,6 @@
  */
 
 #define QLNX_VERSION_MAJOR      2
-#define QLNX_VERSION_MINOR      0
+#define QLNX_VERSION_MINOR      1
 #define QLNX_VERSION_BUILD      112
 

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MN2PR18MB292562BE6514ED60A12F4CBFDAE40>