Netdev List
 help / color / mirror / Atom feed
From: Jay Vosburgh <jv@jvosburgh.net>
To: Haylin Moore <hmoore@qumulo.com>
Cc: netdev@vger.kernel.org
Subject: Re: bond_eth_hash only uses the fifth byte of MAC address
Date: Tue, 10 Jun 2025 11:12:24 -0700	[thread overview]
Message-ID: <1518704.1749579144@famine> (raw)
In-Reply-To: <CALnKHDCKs-_XvW0jFAu1yv-Ex_OabqzuyBy=US_W-jzwy9N3Ug@mail.gmail.com>

Haylin Moore <hmoore@qumulo.com> wrote:

>Hello All,
>
>I am currently digging into the source code powering layer2+3 bonding
>and saw that for bond_eth_hash only the 5th byte of both the source
>and destination MAC address is used in the XOR.
>
>Is there a reason for this? I was not able to find anything searching
>the mailing lists or the web. This functionality while documented just
>feels weird to me.

	My recollection, which could be totally wrong, is that the
described algorithm was chosen to mimic what was available on Cisco
Etherchannel at the time.  Bonding's balance-xor mode was originally
developed to interoperate with Etherchannel, before LACP became popular,
so this would have been implemented circa 2000-2002.

	Development on bonding was done out of tree at that time, and
updates were distributed on sourceforge, with discussion primarily on
the bonding-devel mailing list.  marc.info has the bonding-devel list
archived; you might be able to find the original discussion there.

	-J

---
	-Jay Vosburgh, jv@jvosburgh.net

      reply	other threads:[~2025-06-10 18:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-10 16:54 bond_eth_hash only uses the fifth byte of MAC address Haylin Moore
2025-06-10 18:12 ` Jay Vosburgh [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=1518704.1749579144@famine \
    --to=jv@jvosburgh.net \
    --cc=hmoore@qumulo.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