Browse Source

gmac add IFF_BROADCAST flag to support broadcast.

Change-Id: Id3ace069c444aa220ef33428327e3fd05b446a33
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 5 years ago
parent
commit
adccb7609f
  1. 4
      sys/dev/gmac/synopGMAC_network_interface.c

4
sys/dev/gmac/synopGMAC_network_interface.c

@ -1151,7 +1151,7 @@ int synopGMAC_intr_handler(struct synopGMACNetworkAdapter * tp)
ifp = &(adapter->PInetdev->arpcom.ac_if);
if(gmacdev->LinkState)
ifp->if_flags = ifp->if_flags | IFF_RUNNING;
ifp->if_flags = ifp->if_flags | IFF_RUNNING | IFF_BROADCAST | IFF_SIMPLEX;
/*Read the Dma interrupt status to know whether the interrupt got generated by our device or not*/
@ -2820,7 +2820,7 @@ s32 synopGMAC_init_network_interface(char* xname, struct device *sc )
TR("\nNow Registering the netdevice\n");
if_attach(ifp);
ether_ifattach(ifp);
ifp->if_flags = ifp->if_flags | IFF_RUNNING;
ifp->if_flags = ifp->if_flags | IFF_RUNNING | IFF_BROADCAST | IFF_SIMPLEX;
#if SYNOP_TOP_DEBUG
dumpreg(regbase);

Loading…
Cancel
Save