netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: joakim.tjernlund@transmode.se, Li Yang-r58472 <LeoLi@freescale.com>
Cc: Netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] Fix ethernet multicast for ucc_geth.
Date: Mon, 29 Oct 2007 06:05:35 -0400	[thread overview]
Message-ID: <4725B06F.7070304@garzik.org> (raw)
In-Reply-To: <1192611942.7848.19.camel@gentoo-jocke.transmode.se>

Joakim Tjernlund wrote:
>>From 5761a9e5924b34615c748fba2dcb977ed04c1243 Mon Sep 17 00:00:00 2001
> From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> Date: Wed, 17 Oct 2007 11:01:44 +0200
> Subject: [PATCH] Fix ethernet multicast for ucc_geth.
>  hw_add_addr_in_hash() already swaps byte
>  order, don't do it in ucc_geth_set_multi() too.
> 
> 
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> ---
>  drivers/net/ucc_geth.c |   15 ++-------------
>  1 files changed, 2 insertions(+), 13 deletions(-)
> 
> diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
> index 61f5cce..f649b1e 100644
> --- a/drivers/net/ucc_geth.c
> +++ b/drivers/net/ucc_geth.c
> @@ -2214,9 +2214,7 @@ static void ucc_geth_set_multi(struct net_device *dev)
>  	struct dev_mc_list *dmi;
>  	struct ucc_fast *uf_regs;
>  	struct ucc_geth_82xx_address_filtering_pram *p_82xx_addr_filt;
> -	u8 tempaddr[6];
> -	u8 *mcptr, *tdptr;
> -	int i, j;
> +	int i;
>  
>  	ugeth = netdev_priv(dev);
>  
> @@ -2255,19 +2253,10 @@ static void ucc_geth_set_multi(struct net_device *dev)
>  				if (!(dmi->dmi_addr[0] & 1))
>  					continue;
>  
> -				/* The address in dmi_addr is LSB first,
> -				 * and taddr is MSB first.  We have to
> -				 * copy bytes MSB first from dmi_addr.
> -				 */
> -				mcptr = (u8 *) dmi->dmi_addr + 5;
> -				tdptr = (u8 *) tempaddr;
> -				for (j = 0; j < 6; j++)
> -					*tdptr++ = *mcptr--;
> -
>  				/* Ask CPM to run CRC and set bit in
>  				 * filter mask.
>  				 */
> -				hw_add_addr_in_hash(ugeth, tempaddr);
> +				hw_add_addr_in_hash(ugeth, dmi->dmi_addr);

did the maintainer ever ACK this?



  parent reply	other threads:[~2007-10-29 10:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-17  9:05 [PATCH] Fix ethernet multicast for ucc_geth Joakim Tjernlund
2007-10-18 14:24 ` Li Yang-r58472
2007-10-21  9:45   ` Joakim Tjernlund
2007-10-29 10:05 ` Jeff Garzik [this message]
2007-10-29 10:07   ` Li Yang-r58472
2007-10-29 10:11 ` Jeff Garzik

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=4725B06F.7070304@garzik.org \
    --to=jeff@garzik.org \
    --cc=LeoLi@freescale.com \
    --cc=joakim.tjernlund@transmode.se \
    --cc=netdev@vger.kernel.org \
    /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).