netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: peppe.cavallaro@st.com, rayagond@vayavyalabs.com, netdev@vger.kernel.org
Subject: Re: [PATCH] stmmac: re-add IFF_UNICAST_FLT for dwmac1000
Date: Wed, 04 Apr 2012 09:33:42 +0200	[thread overview]
Message-ID: <4F7BF956.4030301@pengutronix.de> (raw)
In-Reply-To: <1333477224.18626.289.camel@edumazet-glaptop>

[-- Attachment #1: Type: text/plain, Size: 1872 bytes --]

On 04/03/2012 08:20 PM, Eric Dumazet wrote:
> On Tue, 2012-04-03 at 19:44 +0200, Marc Kleine-Budde wrote:
>> In commit (bfab27a stmmac: add the experimental PCI support) the
>> IFF_UNICAST_FLT flag has been removed from the stmmac_mac_device_setup()
>> function. This patch re-adds the flag.
>>
>> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
>> ---
>>
>> Just compile time tested, since I don't have the hardware.
>> Applies to net-next/master (and v3.3).
>>
>> regards, Marc
>>
>>  drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |    5 +++--
>>  1 files changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
>> index e85ffbd..07e0c78 100644
>> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
>> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
>> @@ -1737,9 +1737,10 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
>>  	struct mac_device_info *mac;
>>  
>>  	/* Identify the MAC HW device */
>> -	if (priv->plat->has_gmac)
>> +	if (priv->plat->has_gmac) {
>> +		priv->dev->priv_flags |= IFF_UNICAST_FLT;
>>  		mac = dwmac1000_setup(priv->ioaddr);
>> -	else
>> +	} else
>>  		mac = dwmac100_setup(priv->ioaddr);
>>  	if (!mac)
>>  		return -ENOMEM;
> 
> 
> 	if (priv->plat->has_gmac) {
> 		priv->dev->priv_flags |= IFF_UNICAST_FLT;
> 		mac = dwmac1000_setup(priv->ioaddr);
> 	} else {
> 		mac = dwmac100_setup(priv->ioaddr);
> 	}
> 
> (Documentation/CodingStyle line 175)

Thanks for the hint.

Marc



-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

  reply	other threads:[~2012-04-04  7:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03 17:44 [PATCH] stmmac: re-add IFF_UNICAST_FLT for dwmac1000 Marc Kleine-Budde
2012-04-03 18:20 ` Eric Dumazet
2012-04-04  7:33   ` Marc Kleine-Budde [this message]
2012-04-04  6:59 ` Giuseppe CAVALLARO
2012-04-04  7:33   ` Marc Kleine-Budde

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=4F7BF956.4030301@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    --cc=rayagond@vayavyalabs.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).