mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 19:20:51 +08:00
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:
parent
9907ae4070
commit
07176074bd
@ -1379,6 +1379,14 @@ static int mcf548x_fec_ioctl (struct ifnet *ifp, ioctl_command_t command, caddr_
|
|||||||
|
|
||||||
switch(command)
|
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:
|
case SIO_RTEMS_SHOW_STATS:
|
||||||
|
|
||||||
enet_stats(sc);
|
enet_stats(sc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user