From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 37BEB459C6 for ; Thu, 19 Sep 2024 01:36:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA86F40156; Thu, 19 Sep 2024 01:36:35 +0200 (CEST) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mails.dpdk.org (Postfix) with ESMTP id 6BE294003C for ; Thu, 19 Sep 2024 01:36:34 +0200 (CEST) Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-7d4f8a1626cso160464a12.3 for ; Wed, 18 Sep 2024 16:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1726702593; x=1727307393; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=ZKhssOqZyS/+qlY+JmepoqjUQbU2BZsSz0VZLb6hBDU=; b=SxwB6oamc+2NrlQ/Lu7W55ZZnV5Rjv9MuXDnoqb0GC6R4V4uNNKynv7FljEkeAuvdb Xjt8Q6QTVupdB8VlXZeIGI+F1UboWL/jqrsDkQq2MNVBZ93gdmrSSL2Dc6/LAlfW8TzR MzCIsAoxDRa5ZXPBZtniQc0GVg7z/Gi1HFSj0z2EKl+bVGU23zjUwsJB0wtFBJlm6Tvo Hn5Gh/WgHNb8P9KpQkReGmr3qAWOilk08Krm5tUEKOfVV4++G0dMEQSR1Q7VObqE1Qdf utBU0uJyWdo/qxOfXtRNXsKoRRN8rE6HmutwwF2gzt2XG6ICa7Tkbm6CI1IEUT16433p VdGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726702593; x=1727307393; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZKhssOqZyS/+qlY+JmepoqjUQbU2BZsSz0VZLb6hBDU=; b=FF7boMbHNAtA685PY0KYDaeXQ60RfZDcMznH7e2o0uJC5xZ8giEgNhyfj3g1y1LraE NbCW30DKqBu2G6CTQyuDpUbkp2BneOIzK0NeE3mgor5JpcMYa4rQOSoyn7Niy+tXlgWD bkPUckvH8vzs4Wx6DEvZaiSS1qzDsvhAt6aqzdyRbpJ9wej3MHkUFBm1VqEEHi+MLrnm GIgOl2oLDhPNd4yNX+KuGxFObcbFMjSfgnWhEC/iPygIPa17EovxG474Jt/oXHndZ4vI RRS+iOyRw5YiO7R+rlXtfLodSEZ172YtYjY3IrJBI6Z2XBqwSppoJMCDKM218xRVxAHg /+Kg== X-Gm-Message-State: AOJu0YyQXFyfuC6Myyen9n2owOc4sqdTFmzyCFRAqQ/hygwuj+pAiJmd IslVF4Xihan9Rx73KtfjCDsy+x8XsyYPehhWiK4huitisf5JpTWP8xzRMWkMnRw= X-Google-Smtp-Source: AGHT+IFAvkdEy7CconTAL70wkFVUSb2nKt3gK6urWhr5bkIEIaN8WHT3NaAGtfFRgpOsrHArFf/n0g== X-Received: by 2002:a05:6a21:e85:b0:1d0:56b1:1ca5 with SMTP id adf61e73a8af0-1d112b32479mr29125489637.3.1726702593358; Wed, 18 Sep 2024 16:36:33 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db4991cfd2sm8169084a12.48.2024.09.18.16.36.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 16:36:33 -0700 (PDT) Date: Wed, 18 Sep 2024 16:36:31 -0700 From: Stephen Hemminger To: Vincent Cc: users@dpdk.org Subject: Re: DPDK lacp bonding - xmit hash Message-ID: <20240918163631.6b392485@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Wed, 18 Sep 2024 18:20:53 -0400 Vincent 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//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//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()