linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bonding: Update layer2 and layer2+3 hash formula documentation
@ 2022-04-06 13:54 Gal Pressman
  2022-04-08 11:20 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Gal Pressman @ 2022-04-06 13:54 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski, Paolo Abeni, Jonathan Corbet,
	Jay Vosburgh, Veaceslav Falico, Andy Gospodarek
  Cc: netdev, linux-kernel, linux-doc, Gal Pressman

When using layer2 or layer2+3 hash, only the 5th byte of the MAC
addresses is used.

Signed-off-by: Gal Pressman <gal@nvidia.com>
---
 Documentation/networking/bonding.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/networking/bonding.rst b/Documentation/networking/bonding.rst
index 525e6842dd33..43be3782e5df 100644
--- a/Documentation/networking/bonding.rst
+++ b/Documentation/networking/bonding.rst
@@ -894,7 +894,7 @@ xmit_hash_policy
 		Uses XOR of hardware MAC addresses and packet type ID
 		field to generate the hash. The formula is
 
-		hash = source MAC XOR destination MAC XOR packet type ID
+		hash = source MAC[5] XOR destination MAC[5] XOR packet type ID
 		slave number = hash modulo slave count
 
 		This algorithm will place all traffic to a particular
@@ -910,7 +910,7 @@ xmit_hash_policy
 		Uses XOR of hardware MAC addresses and IP addresses to
 		generate the hash.  The formula is
 
-		hash = source MAC XOR destination MAC XOR packet type ID
+		hash = source MAC[5] XOR destination MAC[5] XOR packet type ID
 		hash = hash XOR source IP XOR destination IP
 		hash = hash XOR (hash RSHIFT 16)
 		hash = hash XOR (hash RSHIFT 8)
-- 
2.25.1


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

* Re: [PATCH] bonding: Update layer2 and layer2+3 hash formula documentation
  2022-04-06 13:54 [PATCH] bonding: Update layer2 and layer2+3 hash formula documentation Gal Pressman
@ 2022-04-08 11:20 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-04-08 11:20 UTC (permalink / raw)
  To: Gal Pressman
  Cc: davem, kuba, pabeni, corbet, j.vosburgh, vfalico, andy, netdev,
	linux-kernel, linux-doc

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed, 6 Apr 2022 16:54:20 +0300 you wrote:
> When using layer2 or layer2+3 hash, only the 5th byte of the MAC
> addresses is used.
> 
> Signed-off-by: Gal Pressman <gal@nvidia.com>
> ---
>  Documentation/networking/bonding.rst | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
  - bonding: Update layer2 and layer2+3 hash formula documentation
    https://git.kernel.org/netdev/net/c/2cd1881b9821

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2022-04-08 11:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 13:54 [PATCH] bonding: Update layer2 and layer2+3 hash formula documentation Gal Pressman
2022-04-08 11:20 ` patchwork-bot+netdevbpf

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).