summaryrefslogtreecommitdiffstats
path: root/sys/dev/mxge/if_mxge_var.h
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2009-09-30 14:42:06 +0000
committergallatin <gallatin@FreeBSD.org>2009-09-30 14:42:06 +0000
commite020b62ba48e93b7c2bf987e6918a4e0fd0d0d9b (patch)
tree9726ca7b28ea0ce427bdd978501854f30170759e /sys/dev/mxge/if_mxge_var.h
parent247be636e0b24ffd0d6ce7d765cd93315585f602 (diff)
downloadFreeBSD-src-e020b62ba48e93b7c2bf987e6918a4e0fd0d0d9b.zip
FreeBSD-src-e020b62ba48e93b7c2bf987e6918a4e0fd0d0d9b.tar.gz
Two more mxge watchdog fixes:
1) Restore the PCI Express control register after a watchdog reset. This is required because the device will come out of watchdog reset with the pectl reg at its default state, and important BIOS configuration (like max payload size) could be lost. 2) Call mxge_start_locked() for every tx queue before dropping the lock in the watchdog handler. This is required, as the queue's buf ring may have filled during the reset.
Diffstat (limited to 'sys/dev/mxge/if_mxge_var.h')
-rw-r--r--sys/dev/mxge/if_mxge_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mxge/if_mxge_var.h b/sys/dev/mxge/if_mxge_var.h
index b25adb4..698265b 100644
--- a/sys/dev/mxge/if_mxge_var.h
+++ b/sys/dev/mxge/if_mxge_var.h
@@ -274,6 +274,7 @@ struct mxge_softc {
struct sysctl_ctx_list slice_sysctl_ctx;
char *mac_addr_string;
uint8_t mac_addr[6]; /* eeprom mac address */
+ uint16_t pectl; /* save PCIe CTL state */
char product_code_string[64];
char serial_number_string[64];
char cmd_mtx_name[16];
OpenPOWER on IntegriCloud