ether79c970: dont disable promisc mode when multicast table is not empty

This commit is contained in:
cinap_lenrek 2018-01-13 11:41:37 +01:00
parent ad36593a99
commit 7b5cf8de2d

View file

@ -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