Commit:     2cc49a5ca14348f225beb888ad383064f2a96876
Parent:     d46146274b2dc01fac4063d31393385117d31f58
Author:     Tim Mann <[EMAIL PROTECTED]>
AuthorDate: Thu Jun 14 13:16:38 2007 -0700
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Wed Jun 20 19:15:04 2007 -0400

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
 drivers/net/forcedeth.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c
index 32788ca..42ba1c0 100644
--- a/drivers/net/forcedeth.c
+++ b/drivers/net/forcedeth.c
@@ -4825,8 +4825,10 @@ static int nv_close(struct net_device *dev)
-       if (np->wolenabled)
+       if (np->wolenabled) {
+               writel(NVREG_PFF_ALWAYS|NVREG_PFF_MYADDR, base + 
+       }
        /* FIXME: power down nic */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to