Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151141789
D2610.id11069.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
980 B
Referenced Files
None
Subscribers
None
D2610.id11069.diff
View Options
Index: head/sys/dev/sfxge/sfxge.c
===================================================================
--- head/sys/dev/sfxge/sfxge.c
+++ head/sys/dev/sfxge/sfxge.c
@@ -95,6 +95,13 @@
&sfxge_tx_ring_entries, 0,
"Maximum number of descriptors in a transmit ring");
+#define SFXGE_PARAM_RESTART_ATTEMPTS SFXGE_PARAM(restart_attempts)
+static int sfxge_restart_attempts = 3;
+TUNABLE_INT(SFXGE_PARAM_RESTART_ATTEMPTS, &sfxge_restart_attempts);
+SYSCTL_INT(_hw_sfxge, OID_AUTO, restart_attempts, CTLFLAG_RDTUN,
+ &sfxge_restart_attempts, 0,
+ "Maximum number of attempts to bring interface up after reset");
+
#if EFSYS_OPT_MCDI_LOGGING
#define SFXGE_PARAM_MCDI_LOGGING SFXGE_PARAM(mcdi_logging)
static int sfxge_mcdi_logging = 0;
@@ -994,7 +1001,7 @@
sfxge_stop(sc);
efx_nic_reset(sc->enp);
- for (attempt = 0; attempt < 3; ++attempt) {
+ for (attempt = 0; attempt < sfxge_restart_attempts; ++attempt) {
if ((rc = sfxge_start(sc)) == 0)
goto done;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 9:15 AM (1 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31022882
Default Alt Text
D2610.id11069.diff (980 B)
Attached To
Mode
D2610: sfxge: add tunable for maximum start attetmps after reset
Attached
Detach File
Event Timeline
Log In to Comment