svn commit: r234526 - projects/armv6/sys/arm/ti/cpsw
Stanislav Sedov
stas at FreeBSD.org
Sat Apr 21 04:33:40 UTC 2012
Author: stas
Date: Sat Apr 21 04:33:39 2012
New Revision: 234526
URL: http://svn.freebsd.org/changeset/base/234526
Log:
- Do not reinitialize the interface if it is already running. This
fixes BOOTP on cpsw(4).
Modified:
projects/armv6/sys/arm/ti/cpsw/if_cpsw.c
Modified: projects/armv6/sys/arm/ti/cpsw/if_cpsw.c
==============================================================================
--- projects/armv6/sys/arm/ti/cpsw/if_cpsw.c Sat Apr 21 04:17:30 2012 (r234525)
+++ projects/armv6/sys/arm/ti/cpsw/if_cpsw.c Sat Apr 21 04:33:39 2012 (r234526)
@@ -975,11 +975,16 @@ int once = 1;
static void
cpsw_init_locked(void *arg)
{
+ struct ifnet *ifp;
struct cpsw_softc *sc = arg;
uint8_t broadcast_address[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
uint32_t next_bdp;
uint32_t i;
+ ifp = sc->ifp;
+ if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0)
+ return;
+
printf("%s: start\n",__func__);
/* Reset writer */
More information about the svn-src-projects
mailing list