DPDK usage discussions
 help / color / mirror / Atom feed
* DPDK lacp bonding - xmit hash
@ 2024-09-18 22:20 Vincent
  2024-09-18 23:36 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent @ 2024-09-18 22:20 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 417 bytes --]

What determines what xmit_hash_policy DPDK will use for LACP bonded links?
Does it not respect the value specified by
/sys/class/net/<INTERFACE>/bonding/xmit_hash_policy?

Based on testing, it seems like layer2, or layer3+4 hashing is being done,
but the behavior is random, and seems to not necessarily reflect the
current value specified by
/sys/class/net/<INTERFACE>/bonding/xmit_hash_policy.

Thank you,

Vincent

[-- Attachment #2: Type: text/html, Size: 509 bytes --]

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

* Re: DPDK lacp bonding - xmit hash
  2024-09-18 22:20 DPDK lacp bonding - xmit hash Vincent
@ 2024-09-18 23:36 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2024-09-18 23:36 UTC (permalink / raw)
  To: Vincent; +Cc: users

On Wed, 18 Sep 2024 18:20:53 -0400
Vincent <techburgher@gmail.com> wrote:

> What determines what xmit_hash_policy DPDK will use for LACP bonded links?
> Does it not respect the value specified by
> /sys/class/net/<INTERFACE>/bonding/xmit_hash_policy?
> 
> Based on testing, it seems like layer2, or layer3+4 hashing is being done,
> but the behavior is random, and seems to not necessarily reflect the
> current value specified by
> /sys/class/net/<INTERFACE>/bonding/xmit_hash_policy.
> 
> Thank you,
> 
> Vincent

DPDK doesn't use the Linux kernel network interfaces.
The DPDK PMD is a completely separate user mode driver.

https://doc.dpdk.org/guides/prog_guide/link_bonding_poll_mode_drv_lib.html

The similar function DPDK bond PMD is the Balance XOR (Mode 2).
The configuration of the hash type is done via:
	rte_eth_bond_xmit_policy_set()




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

end of thread, other threads:[~2024-09-18 23:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-18 22:20 DPDK lacp bonding - xmit hash Vincent
2024-09-18 23:36 ` Stephen Hemminger

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