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 68E8245B1E; Sat, 12 Oct 2024 20:13:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5FA040267; Sat, 12 Oct 2024 20:13:11 +0200 (CEST) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mails.dpdk.org (Postfix) with ESMTP id D8ED740265 for ; Sat, 12 Oct 2024 20:13:09 +0200 (CEST) Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-7ea784aea63so60328a12.3 for ; Sat, 12 Oct 2024 11:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728756789; x=1729361589; 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=51EZ5tiXekGVNQUk99FEIFYMedzGP2Fasijke6IzUwk=; b=Ev80K5IzTKnbxNBYodbJ8bQGSHGXX3lGOJtBsBus2PWyJsRAKh9VLH9JLsidOk0/wR RGfIerAQ6ch00H8RcSEYEh/df/I4gW4ByO3mLQfmu+iqBl/Q6VkJYEvU+fFXeOQ+DIC4 TI/nyL8YgeCGBSaeZSSW+j4XwEh0vwMJSR2y+6xUUBP3UVeQ9R2qCgs+WRoYgd6FJxpq u2hTNpCznhygwtdY2mWFxNoZaaPfpPdI37dVeXkWCwCvdseb8r91MZ6pOXn94cxcjX1a D1OGgt61d5ccwExphU9Pz8+u7qLBnu58dq/WzVfQ38Od/o5JocZyCTvVbQx9eGaN7tbL CYQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728756789; x=1729361589; 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=51EZ5tiXekGVNQUk99FEIFYMedzGP2Fasijke6IzUwk=; b=GSazgKymCsfPWFwvMMYcSHUmJdRJhr6rv6GXmI1DYsB/fddeCzDI7sMpuBWSX0Hl3M bqAN97ks7HVU0h2XVg1V3+SSqqeY65t+tjQUAfo4Vx7soUw/6kZJlCgNkjmQraXEv0kE qqUOwWa9bc2lTi6/+wwcsyJ/Otx5AR/TyA67ysQSKlBTbMTFTwd34UjKHL0gtTnBpRTQ 9QidP8kjIj0XRsuH3uONWXkinFQugX+qOdh5wZGFB44iTHPJMXJ/y5KhuKnlwp0EG6ZA VGwrSRV0/dHhrHYuHKDq9vkuQbruI16Dxf9DjCHksrMexjRL+IKtLEPNsn2bz8mJwHoU jsbw== X-Forwarded-Encrypted: i=1; AJvYcCXq2REqdepDnj6nVaajVroV5bnoKBCBD6wJmIgBSmK9d0R41GixHmkx0J/hWjzPkwzFxno=@dpdk.org X-Gm-Message-State: AOJu0YyNXycW8wshEmDqHmt1WIimZ8P8vxUSxmAX6pGAqDmmXNdYMxqH h3km3knT2IPQzx1leMvJBjixxT7UVx8iMn3x5Iav4ieGNB6g0zuwW0xCfxOPo9Y= X-Google-Smtp-Source: AGHT+IFHmya4FPwEbmUouQVOSWXS0Q3FXkI1x0ITqQBcydEpFVzh0ETaDefYxOAwWs9Wh9hB4r+eOg== X-Received: by 2002:a17:90a:e2d7:b0:2c9:5a85:f8dd with SMTP id 98e67ed59e1d1-2e2f0aea0fcmr8623249a91.18.1728756788975; Sat, 12 Oct 2024 11:13:08 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e2d5dd2a0dsm5281609a91.6.2024.10.12.11.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 11:13:08 -0700 (PDT) Date: Sat, 12 Oct 2024 11:13:06 -0700 From: Stephen Hemminger To: Cc: , , Subject: Re: [PATCH] net/bonding: add user callback for bond xmit policy Message-ID: <20241012111306.46f4f5c6@hermes.local> In-Reply-To: <20240815121014.612170-1-vignesh.purushotham.srinivas@ericsson.com> References: <20240815121014.612170-1-vignesh.purushotham.srinivas@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, 15 Aug 2024 14:10:14 +0200 wrote: > diff --git a/drivers/net/bonding/rte_eth_bond.h b/drivers/net/bonding/rte_eth_bond.h > index f10165f2c6..66bc41097a 100644 > --- a/drivers/net/bonding/rte_eth_bond.h > +++ b/drivers/net/bonding/rte_eth_bond.h > @@ -91,6 +91,11 @@ extern "C" { > /**< Layer 2+3 (Ethernet MAC + IP Addresses) transmit load balancing */ > #define BALANCE_XMIT_POLICY_LAYER34 (2) > /**< Layer 3+4 (IP Addresses + UDP Ports) transmit load balancing */ > +#define BALANCE_XMIT_POLICY_USER (3) > +/**< User callback function to transmit load balancing */ > + > +typedef void (*burst_xmit_hash_t)(struct rte_mbuf **buf, uint16_t nb_pkts, > + uint16_t slave_count, uint16_t *slaves); Change wording. DPDK has replaced use of the non-inclusive term slave in bond driver.