forcedeth: use unicast receive mode for WoL
Subsystems (2)
PATCH 1/1 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.
---
(Jeff, thanks for pointing me to the doc for the proper patch format.)
drivers/net/forcedeth.c +3 -1
@@ -4825,8 +4825,10 @@drain_ring (dev); -if (np->wolenabled) +if (np->wolenabled) { +writel (NVREG_PFF_ALWAYS |NVREG_PFF_MYADDR , base + NvRegPacketFilterFlags);nv_start_rx (dev); + }/* FIXME: power down nic */
Signature · 2 lines
Tim Mann work: [email protected] home: [email protected] http://www.vmware.com http://tim-mann.org
Jeff Garzik
AppliedQuoted 11 lines · Tim Mann
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 <[email protected]>
applied to #upstream-fixes (2.6.22)