public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de, Michal Simek <michal.simek@xilinx.com>,
	Ramon Fried <rfried.dev@gmail.com>
Subject: Re: [PATCHv2] net: uclass: Save ethernet MAC address when generated
Date: Mon, 22 Nov 2021 11:53:34 +0100	[thread overview]
Message-ID: <2513466.1637578414@gemini.denx.de> (raw)
In-Reply-To: <20211120155358.376540-1-trini@konsulko.com>

Dear Tom,

In message <20211120155358.376540-1-trini@konsulko.com> you wrote:
>
> When MAC address is randomly generated it should be also saved to
> variables. This step is there when MAC address is passed via pdata but not
> when it is randomly generated.

"saved to variables" ? Which variables? In C code?  In the
environment?

This is not clear here.

>  	  Selecting this will allow the Ethernet interface to function
> -	  even when the ethaddr variable for that interface is unset.
> -	  A new MAC address will be generated on every boot and it will
> -	  not be added to the environment.
> +	  even when the ethaddr variable for that interface is unset by
> +	  generating a new MAC address in the locally administered address
> +	  space and setting the appropriate environment variable.

Same here: "ethaddr variable" - I guess this refers to the
environment variable?  Then we should write that.

Hmmm: "when the ethaddr variable ... is unset by generating ... and
setting the appropriate environment variable."  this is misleading,
as the "ethaddr variable" is not unset by setting the env var.

Suggestion:

	Selecting this will allow the Ethernet interface to function
	even when the ethaddr variable for that interface is unset.
	In this case, a random MAC address in the locally
	administered address space is generated. It will be saved to
	the appropriate environment variable, too.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
A conservative is a man with two perfectly good legs  who  has  never
learned to walk.                              - Franklin D. Roosevelt

      reply	other threads:[~2021-11-22 10:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-20 15:53 [PATCHv2] net: uclass: Save ethernet MAC address when generated Tom Rini
2021-11-22 10:53 ` Wolfgang Denk [this message]

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=2513466.1637578414@gemini.denx.de \
    --to=wd@denx.de \
    --cc=michal.simek@xilinx.com \
    --cc=rfried.dev@gmail.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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