svn commit: r190206 - head/sys/dev/cxgb

George V. Neville-Neil gnn at FreeBSD.org
Sat Mar 21 10:09:01 PDT 2009


Author: gnn
Date: Sat Mar 21 17:09:00 2009
New Revision: 190206
URL: http://svn.freebsd.org/changeset/base/190206

Log:
  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

Modified:
  head/sys/dev/cxgb/cxgb_main.c

Modified: head/sys/dev/cxgb/cxgb_main.c
==============================================================================
--- head/sys/dev/cxgb/cxgb_main.c	Sat Mar 21 17:01:29 2009	(r190205)
+++ head/sys/dev/cxgb/cxgb_main.c	Sat Mar 21 17:09:00 2009	(r190206)
@@ -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;


More information about the svn-src-head mailing list