From: Laurent Pinchart <laurentp@cse-semaphore.com>
To: linuxppc-dev@ozlabs.org, netdev@vger.kernel.org,
pantelis.antoniou@gmail.com, vbordug@ru.mvista.com
Subject: [PATCH] fs_enet: restore promiscuous and multicast settings in restart()
Date: Wed, 18 Jun 2008 17:07:07 +0200 [thread overview]
Message-ID: <200806181707.17739.laurentp@cse-semaphore.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 989 bytes --]
The restart() function is called when the link state changes and resets
multicast and promiscous settings. This patch restores those settings at the
end of restart().
Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
---
drivers/net/fs_enet/mac-fcc.c | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/net/fs_enet/mac-fcc.c b/drivers/net/fs_enet/mac-fcc.c
index ce40cf9..1a95cf1 100644
--- a/drivers/net/fs_enet/mac-fcc.c
+++ b/drivers/net/fs_enet/mac-fcc.c
@@ -464,6 +464,9 @@ static void restart(struct net_device *dev)
C32(fccp, fcc_fpsmr, FCC_PSMR_FDE | FCC_PSMR_LPB);
S32(fccp, fcc_gfmr, FCC_GFMR_ENR | FCC_GFMR_ENT);
+
+ /* Restore multicast and promiscous settings */
+ set_multicast_list(dev);
}
static void stop(struct net_device *dev)
--
1.5.0
--
Laurent Pinchart
CSE Semaphore Belgium
Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2008-06-18 15:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-18 15:07 Laurent Pinchart [this message]
2008-06-18 18:45 ` [PATCH] fs_enet: restore promiscuous and multicast settings in restart() Matvejchikov Ilya
2008-06-19 18:20 ` Vitaly Bordug
2008-06-19 18:47 ` Jon Loeliger
2008-06-19 19:15 ` Olof Johansson
2008-06-19 19:41 ` Matvejchikov Ilya
2008-06-20 3:01 ` Bill Fink
2008-06-20 8:25 ` Laurent Pinchart
2008-06-20 8:55 ` Matvejchikov Ilya
2008-06-26 9:38 ` Laurent Pinchart
2008-06-20 17:50 ` Bill Fink
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200806181707.17739.laurentp@cse-semaphore.com \
--to=laurentp@cse-semaphore.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=netdev@vger.kernel.org \
--cc=pantelis.antoniou@gmail.com \
--cc=vbordug@ru.mvista.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).