if_ffec_mcf548x: Init when interface is set to UP.

Call the driver initialization function if the interface is set to UP.
This commit is contained in:
Christian Mauderer 2016-08-05 12:00:47 +02:00 committed by Sebastian Huber
parent 9907ae4070
commit 07176074bd

View File

@ -1379,6 +1379,14 @@ static int mcf548x_fec_ioctl (struct ifnet *ifp, ioctl_command_t command, caddr_
switch(command)
{
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) {
mcf548x_fec_init(sc);
}
}
break;
case SIO_RTEMS_SHOW_STATS:
enet_stats(sc);