forcedeth: use unicast receive mode for WoL

I happened to notice that a system with an NVidia NIC using the
forcedeth driver won't wake-on-LAN if the interface was in promiscuous
mode when you power off. By experiment, it looks like
the hardware needs to have NvRegPacketFilterFlags set to
NVREG_PFF_ALWAYS|NVREG_PFF_MYADDR (i.e., receive unicast packets to my
address) in order for WoL to work.

Jeff Garzik writes: "NVIDIA says the patch looks OK." I didn't venture
to insert a signed-off-by line with his name on it, though.

Signed-off-by: Tim Mann <mann@vmware.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by Tim Mann and committed by Jeff Garzik 2cc49a5c d4614627

+3 -1
+3 -1
drivers/net/forcedeth.c
··· 4825 4825 4826 4826 drain_ring(dev); 4827 4827 4828 - if (np->wolenabled) 4828 + if (np->wolenabled) { 4829 + writel(NVREG_PFF_ALWAYS|NVREG_PFF_MYADDR, base + NvRegPacketFilterFlags); 4829 4830 nv_start_rx(dev); 4831 + } 4830 4832 4831 4833 /* FIXME: power down nic */ 4832 4834