]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[rtl8139] Operate in promiscuous mode
authorMichael Brown <mcb30@ipxe.org>
Thu, 7 Oct 2010 15:23:09 +0000 (16:23 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 7 Oct 2010 18:21:21 +0000 (19:21 +0100)
FCoE requires us to be able to receive unicast packets for multiple
addresses.  Support this by operating in promiscuous mode.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/rtl8139.c

index 4ed43c02ef3e7eefdbb6ae66404817680b0ee004..1ce1344ebb8b473ee5db1c02f18404fdddc5c4af 100644 (file)
@@ -342,7 +342,7 @@ static int rtl_open ( struct net_device *netdev ) {
        outb ( ( CmdRxEnb | CmdTxEnb ), rtl->ioaddr + ChipCmd );
        outl ( ( ( RX_FIFO_THRESH << 13 ) | ( RX_BUF_LEN_IDX << 11 ) |
                 ( RX_DMA_BURST << 8 ) | AcceptBroadcast | AcceptMulticast |
-                AcceptMyPhys ), rtl->ioaddr + RxConfig );
+                AcceptMyPhys | AcceptAllPhys ), rtl->ioaddr + RxConfig );
        outl ( 0xffffffffUL, rtl->ioaddr + MAR0 + 0 );
        outl ( 0xffffffffUL, rtl->ioaddr + MAR0 + 4 );
        outl ( ( ( TX_DMA_BURST << 8 ) | ( TX_IPG << 24 ) ),