Re: Define primary MAC address based on device sticker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Jun 26, 2019 at 6:35 AM Adrian Schmutzler
<mail@xxxxxxxxxxxxxxxxxxx> wrote:
>
>  > From: David Gibson [mailto:david@xxxxxxxxxxxxxxxxxxxxx]
> > Sent: Mittwoch, 26. Juni 2019 13:36
> > To: Adrian Schmutzler <mail@xxxxxxxxxxxxxxxxxxx>
> > Cc: devicetree-spec@xxxxxxxxxxxxxxx
> > Subject: Re: Define primary MAC address based on device sticker
> >
> > On Tue, Jun 25, 2019 at 01:42:09PM +0200, Adrian Schmutzler wrote:
>
> [...]
>
> > > aliases {
> > >       primary-mac-address = &eth0;
> > > };
> > >
> > > What do you think?
> > I think an alias is the right mechanism for this, I don't think
> > "primary-mac-address" is a great name for it, but I can't immediately
> > think of a better one.
>
> Indeed. I also thought about primary-mac-device, since the alias is actually referring to a device, not an address. However, not the device is primary, but the address.
> Correct would be something like bearer-of-primary-mac-address, however, that's terrible.
> So, I'm open for suggestions. So far, primary-mac-address has been the best idea I've heard.

I don't have a strong opinion, so to throw out some other ideas:

We already have ethernetN. Perhaps just go with netN with net0 being
the primary device.

Or primary-net-device?

>
> If a consensus is found, how would I go on with my proposition?

While I'd like to start documenting alias names, just consensus here is enough.

Rob



[Index of Archives]     [Device Tree]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Photos]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]

  Powered by Linux