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 DB9FF45E1E; Tue, 3 Dec 2024 19:18:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C70F640261; Tue, 3 Dec 2024 19:18:51 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 6600F4025D for ; Tue, 3 Dec 2024 19:18:50 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2ee74291415so2693346a91.3 for ; Tue, 03 Dec 2024 10:18:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1733249929; x=1733854729; 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=JCcMN/cOIkSO3E8fMyzXD/dtp5gnmOslq26UXvBI5Vk=; b=V/2jNqaD2zR45Kf/rKYja0CJTN+RocJIsiOFFRos/27ctJbFIqH1Oy8pPJswDgcx3y w3Q3v0knBth6DiAKBy5WtVPxAdniPDhPdRPMrMT4gcxIQHMvBoIOjgg2+dPxVAGSjvwr q4OJ4B+1xpqFQ8Wr0gyFnk77ybd6K1dpNBxn1ANfqc9N4DOX28703LnMZTrytP5zrKxy 2FXKN5osLLZyY4o0Hex2OJiFCQKPozxDqmBbhmKB87UrLFKYCOUrn9y2urqQT5AsIBfH FdYBeNR8dZIBPV2q3RDhyHAqv9UTPuyAJCcpYoXVLUPfZx9pjfT7KA6oD1ReklibzO2r 9aMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733249929; x=1733854729; 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=JCcMN/cOIkSO3E8fMyzXD/dtp5gnmOslq26UXvBI5Vk=; b=HxiX013D6s2hl7I/FmMqWbFzOjF1W56z/m1y5xbI9XLtQ2qG0eg7wcify133uZvl6+ qeUpy9RibcGy7cmjeMWvXOt7Z1pBOwULrBIsRB5R+UYhntZR8zOeZ/vuIcjjk2/kVDV2 4UiezZPRUpG4XYRriEnJ1gGWW+qpP6jlYfNPygVvuQS/zmOPg+az6/RrGUFfeWFcet2l UJ4PT+OToJYqRv2niAvMPSiADgokLZUg/WiA2QjTKp9lkSe6SEWNXg+V5Sivzw5N7mpe RoBwIBVxAvIph1MLNwjTuEcxaw9xgcKcrfyUU6LHiG/CfJ1XskIYDJnb5HujZOPdf1rw Bsfg== X-Forwarded-Encrypted: i=1; AJvYcCUIqB66nVA9RXPPY90uQ0JBL8gdiy/p81am2vrQv2WznXWj4wk9kgdNd5eR8Fp7wBsOoKI=@dpdk.org X-Gm-Message-State: AOJu0YwGEGJV3q9fP+hsAnEnusWvoEtwI7HOzzdqQ7mMifYfHqlZHeu2 XH+r5R8jHhPjjXOUrU+wyVWx9/m0yvbVSJnlLjLvDufomM4gzweY0cT7QVXmPOg= X-Gm-Gg: ASbGncvmFvm4eUCu58sdeLlYP2srFs0KG5iBcpVM4PI5y6d4y8vjzE1IudsoQVm1P4X I6+0wQ1WBwSHFexzh3GNeUQ4kAczj3caHMk0MbS6I5pQ9mrOUilXbZqfB1sC1F9+XAp5jXbsCpQ Ip0tBDTbzu1tszDVAKHUb+CoZQ5uX6bQZGdNgPQlrCKsemNfHwqYurmTx6MmGvR+y5uVeYEO5Sd e7WaQXZ1nncyqdePXFHGOAD86hLOTQiEx5lzu6oO9oGYFoRM/yTcVOBadCSJiD4M4P4Nb52crdF hKM/G7hdsQawjNvLOlH6hTrcaXc= X-Google-Smtp-Source: AGHT+IEu18k0J8wtrSJmJwyZz7CO+ACZSj9OzBSDyNTq/Y1CP2jM9CST+BuCAJnWEri3AvEyPcT4SQ== X-Received: by 2002:a17:90a:ec86:b0:2ee:f653:9f8e with SMTP id 98e67ed59e1d1-2ef1cf24fa2mr1617401a91.35.1733249929345; Tue, 03 Dec 2024 10:18:49 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ee6ac18fabsm7836233a91.38.2024.12.03.10.18.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2024 10:18:49 -0800 (PST) Date: Tue, 3 Dec 2024 10:18:46 -0800 From: Stephen Hemminger To: Kamil Vojanec Cc: "lihuisong (C)" , dev@dpdk.org, Chas Williams , "Min Hu (Connor)" , Ferruh Yigit Subject: Re: [PATCH v2 1/2] net/bonding: introduce direct link bonding mode Message-ID: <20241203101846.4eb39fb9@hermes.local> In-Reply-To: <8a192297-1867-4d97-bcdc-9efad20e9c8f@cesnet.cz> References: <20240412122740.104121-1-vojanec@cesnet.cz> <726f09fd-4341-297b-5676-812d514f99bc@huawei.com> <8a192297-1867-4d97-bcdc-9efad20e9c8f@cesnet.cz> 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 Wed, 10 Jul 2024 07:16:58 +0200 Kamil Vojanec wrote: > Hi, > > > I don't find the 'direct' mode in latest Linux. Do you have a plan to > > do this in Linux > No, I was not planning on any Linux kernel contributions. > > IIUC, the 'direct' mode just to let the packets from one port send out > > at the same port, right? > > If it is, why do you introduce this new mode? It doesn't seem to have > > anything to do with bonding. > Indeed, the base functionality is to forward packets to the same port > they were received on. The main use-case is to allow applications use > one aggregated (bonding) port ensure that packet forwarding is always > the same. > > I find it a lot simpler to use a bonding port whenever I have an > application that uses multiple ports. It means I don't have to > configure, start and stop all the ports; the bonding PMD is a perfect > abstraction for that. > > Kamil There is overlap between bonding and bridging especially when used as leaf. This use case sounds like a new driver, rather than dog piling more features on already complex bridge device. Maybe a new simple bridge PMD would be more appropriate. Alternatively, the user transmit policy callback could be an option?