Netdev List
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: amit@netxen.com
Cc: netdev@vger.kernel.org, dhananjay.phadke@qlogic.com,
	narender.kumar@qlogic.com, amit.salecha@qlogic.com
Subject: Re: [net-2.6 PATCH 3/3] netxen : fix BOND_MODE_TLB/ALB mode.
Date: Fri, 20 Nov 2009 21:48:20 -0800 (PST)	[thread overview]
Message-ID: <20091120.214820.259339697.davem@davemloft.net> (raw)
In-Reply-To: <1258765774-27068-4-git-send-email-amit@netxen.com>

From: Amit Kumar Salecha <amit@netxen.com>
Date: Fri, 20 Nov 2009 17:09:34 -0800

> @@ -437,6 +437,7 @@ netxen_read_mac_addr(struct netxen_adapter *adapter)
>  		netdev->dev_addr[i] = *(p + 5 - i);
>  
>  	memcpy(netdev->perm_addr, netdev->dev_addr, netdev->addr_len);
> +	memcpy(adapter->mac_addr, netdev->dev_addr, netdev->addr_len);
>  
>  	/* set station address */
>  

I don't think this is correct.

You have to maintain a valid netdev->perm_addr even if you don't use
that value later on internally.  This is how the permanent, probed,
MAC address of the card is made available to the user.

Second of all, it is not clear at all why you need to maintain this
value internally.  Why does it not work to simply use
netdev->dev_addr?

Whatever the reason, you need to explain the details of this in your
commit message.

  reply	other threads:[~2009-11-21  5:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-21  1:09 [net-2.6 PATCH 0/3] critical fixes Amit Kumar Salecha
2009-11-21  1:09 ` [net-2.6 PATCH 1/3] netxen: fix memory initialization Amit Kumar Salecha
2009-11-21  1:09 ` [net-2.6 PATCH 2/3] netxen: fix promisc for NX2031 Amit Kumar Salecha
2009-11-21  1:09 ` [net-2.6 PATCH 3/3] netxen : fix BOND_MODE_TLB/ALB mode Amit Kumar Salecha
2009-11-21  5:48   ` David Miller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-11-21  8:08 Amit Kumar Salecha
2009-11-21 19:36 ` David Miller

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=20091120.214820.259339697.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=amit.salecha@qlogic.com \
    --cc=amit@netxen.com \
    --cc=dhananjay.phadke@qlogic.com \
    --cc=narender.kumar@qlogic.com \
    --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