ether79c970: dont disable promisc mode when multicast table is not empty
This commit is contained in:
parent
ad36593a99
commit
7b5cf8de2d
1 changed files with 3 additions and 2 deletions
|
@ -299,7 +299,7 @@ promiscuous(void* arg, int on)
|
|||
|
||||
ctlr->iow(ctlr, Rap, 15);
|
||||
x = ctlr->ior(ctlr, Rdp) & ~Prom;
|
||||
if(on)
|
||||
if(on || ether->nmaddr > 0)
|
||||
x |= Prom;
|
||||
ctlr->iow(ctlr, Rdp, x);
|
||||
ctlr->iow(ctlr, Rap, 0);
|
||||
|
@ -315,7 +315,8 @@ promiscuous(void* arg, int on)
|
|||
static void
|
||||
multicast(void* arg, uchar*, int)
|
||||
{
|
||||
promiscuous(arg, 1);
|
||||
Ether *ether = arg;
|
||||
promiscuous(arg, ether->prom);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue