aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2009-03-21 17:09:00 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2009-03-21 17:09:00 +0000
commit6b6e256ae1f5d69b5e217c61109e55a30c30f81f (patch)
treeb79f179bcedcc9f3929af5341266da6ac3776d6b
parentef1946bcf843728729c5ca39dda8724242cb3a26 (diff)
downloadsrc-6b6e256ae1f5d69b5e217c61109e55a30c30f81f.tar.gz
src-6b6e256ae1f5d69b5e217c61109e55a30c30f81f.zip
Fix a bug in the recent update to the Chelsio driver.
The tick routine was not being restarted in the init_locked routine which could resulted in loss of carrier when updating the MTU. Submitted by: Navdeep Parhar at Chelsio MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=190206
-rw-r--r--sys/dev/cxgb/cxgb_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c
index 593a8d6c33ed..90ac9d8e2c05 100644
--- a/sys/dev/cxgb/cxgb_main.c
+++ b/sys/dev/cxgb/cxgb_main.c
@@ -1912,6 +1912,7 @@ cxgb_init_locked(struct port_info *p)
device_printf(sc->dev, "enabling interrupts on port=%d\n", p->port_id);
t3_port_intr_enable(sc, p->port_id);
+ callout_reset(&sc->cxgb_tick_ch, CXGB_TICKS(sc), cxgb_tick, sc);
t3_sge_reset_adapter(sc);
ifp->if_drv_flags |= IFF_DRV_RUNNING;