netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bond_eth_hash only uses the fifth byte of MAC address
@ 2025-06-10 16:54 Haylin Moore
  2025-06-10 18:12 ` Jay Vosburgh
  0 siblings, 1 reply; 2+ messages in thread
From: Haylin Moore @ 2025-06-10 16:54 UTC (permalink / raw)
  To: netdev

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.

Thank you,
Haylin Moore

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bond_eth_hash only uses the fifth byte of MAC address
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Jay Vosburgh @ 2025-06-10 18:12 UTC (permalink / raw)
  To: Haylin Moore; +Cc: netdev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-10 18:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).