From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65C1528691; Tue, 15 Oct 2024 13:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728999137; cv=none; b=j81L0leJZRsAqgvLPTCZpT4twRjUmjm5gO2jgfZBgDgN3oqjtLW2DAsV4SCi/RwoftERX93H6PKZ82ELHxWAlP3alEbQkVvfdtpQ7u4PC+Gt77WshRTT3+JmZTMjdKEvmVjPtkBapppq5Xf8R0qfWRUqQm2aNsMdq0AkZ3qDQTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728999137; c=relaxed/simple; bh=XGgtJDDDYxzb48QuctikU+Vt9hxTUybzOHi+IPF+7QE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MXfmZnQ/XUXSrra/7npDwA0XU1mNa6g2MOJ87KB84tToB4hXKu5DnmdAbBoa5yiUg8vnHTvLP1ZfavBsoVIeTDmxzuEwxEDwmIRcYqLIdHM80NfE7xY/rUE5Vt4QkalRsbqEB31hAoAPBAFB+p6IcZvvn/V6M79tWnGI4ucyPZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CqccxPrL; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CqccxPrL" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a99f629a7aaso460776366b.1; Tue, 15 Oct 2024 06:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728999134; x=1729603934; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Wgxlf8j6C6WxbcSqLlRz/GSOnVwKwwZyR7OiY8684pQ=; b=CqccxPrLmX6Ku2XhhmRKxyXSn9u7vcqGo71o3gaCsSVTncunpfDSnGEYSC9RM78uLY mt5fYGd9sesoRmllXpRC/p6cLBEMlIUBl1nkGdS+Za5LmaOtuZ85kzUfXyFZDuAVN/MX ifEZQdbTPrtjiUG+IGq7OFjZhsm5HJJOjJFg+lhKflKj4dVgZkUhCvM1RniDhKGnZvzG PfYTydhbMWLSaIs7gypaXqPHfgUoFxvX1EWEBjphIBb4qOqCzktHgejCocZ3q6umTQOG uBcHn35eDaXGz6O/4uXOsYuqn4Opmv1OtTThlHf7q31DA3zWdwsKi5YNc42H86CYh75j Lklg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728999134; x=1729603934; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Wgxlf8j6C6WxbcSqLlRz/GSOnVwKwwZyR7OiY8684pQ=; b=XWi/PcFjrZUrquhu77fuZ6h7C70BwXXOJ7A6hes6jePp4TuE/7xE5va7+dflRGVHWF 3S+WrH1WDRrnPu34pKUxGzZ56TrKs4caGNoVWKzmKXJi+ypRCH0Nl9hiuIFDF7QT2O1j xGJhlKvIbS0RPeulynEFVj5ARD+5vQ5otEukRf6POpFOvlcohP24IUS9Etl9UC2YfbQs I/WSheIIUHJ90c9uEc87cOOu/mahRpi7OXlipI+4At+OWzSdnoxqhh9PvxppnSuyWj5S 1uf5LF8Fc1A7+ciJOCnu0kndpgxS5mY+/Sa4VP+exzyzyBxwI7OL0fXtA7lAlxBffOwW GRSQ== X-Forwarded-Encrypted: i=1; AJvYcCUUQtOhjJWzKqMZsRoJ8OW2oWFOG/HwK5DMqpiMtDguFsdyjcCNgDN7qoYuIDyFARuZ/BJ6+gOPmwrqfK4=@vger.kernel.org, AJvYcCX2kLzEuf+ZiAHpapVnlAPg7rggENGuuIrRPg5XDQUg/ugSlwP+vTsuKRdc+oDq+x5xcCqzfWbSWOJJBX0KnoLD@vger.kernel.org X-Gm-Message-State: AOJu0YwpSgQxuRk7Gt4qAyvvejY3LIGVMsIyKbyZzgKtGYDSOOv96GkF pZA2lNMohP0t5CwCc1yhUlQ5uWBw0/P72Z5JWExuzkPYNiHbPjif X-Google-Smtp-Source: AGHT+IHead+svkj8BMnd2AtLtotz8v11llLgziR4JZ6WubowTfOWTXfJTTlJA3fxQTd68GmzjhaI0A== X-Received: by 2002:a17:906:7955:b0:a9a:f19:8c2a with SMTP id a640c23a62f3a-a9a335726dfmr74735966b.6.1728999133316; Tue, 15 Oct 2024 06:32:13 -0700 (PDT) Received: from ?IPV6:2001:1c00:20d:1300:1b1c:4449:176a:89ea? (2001-1c00-020d-1300-1b1c-4449-176a-89ea.cable.dynamic.v6.ziggo.nl. [2001:1c00:20d:1300:1b1c:4449:176a:89ea]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a2974960esm72107366b.62.2024.10.15.06.32.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Oct 2024 06:32:12 -0700 (PDT) Message-ID: <137aa23a-db21-43c2-8fb0-608cfe221356@gmail.com> Date: Tue, 15 Oct 2024 15:32:11 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v1 net-next 00/12] bridge-fastpath and related improvements To: Felix Fietkau , Nikolay Aleksandrov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Pablo Neira Ayuso , Jozsef Kadlecsik , Roopa Prabhu , Matthias Brugger , AngeloGioacchino Del Regno , Jiri Pirko , Sebastian Andrzej Siewior , Lorenzo Bianconi , Frank Wunderlich , Daniel Golle Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20241013185509.4430-1-ericwouds@gmail.com> <9f9f3cf0-7a78-40f1-b8d5-f06a2d428210@blackwall.org> <0b0a92f2-2e80-429c-8fcd-d4dc162e6e1f@nbd.name> From: Eric Woudstra Content-Language: en-US In-Reply-To: <0b0a92f2-2e80-429c-8fcd-d4dc162e6e1f@nbd.name> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/15/24 2:16 PM, Felix Fietkau wrote: > Hi Eric, > > On 14.10.24 20:29, Eric Woudstra wrote: >> It would be no problem for me to change the subject and body, if you >> think that is better. >> >> The thing is, these patches actually make it possible to set up a fully >> functional software fastpath between bridged interfaces. Only after the >> software fastpath is set up and functional, it can be offloaded, which >> happens to by my personal motivation to write this patch-set. >> >> If the offload flag is set in the flowtable, the software fastpath will >> be offloaded. But in this patch-set, there is nothing that changes >> anything there, the existing code is used unchanged. > > FWIW, a while back, I also wanted to add a software fast path for the > bridge layer to the kernel, also with the intention of using it for > hardware offload. It wasn't accepted back then, because (if I remember > correctly) people didn't want any extra complexity in the network stack > to make the bridge layer faster. Hello Felix, I think this patch-set is a clear showcase it is not very complex at all. The core of making it possible only consists a few patches. Half of this patch-set involves improvements that also apply to the forward-fastpath. > Because of that, I created this piece of software: > https://github.com/nbd168/bridger > > It uses an eBPF TC classifier for discovering flows and handling the > software fast path, and also creates hardware offload rules for flows. > With that, hardware offloading for bridged LAN->WLAN flows is fully > supported on MediaTek hardware with upstream kernels. > > - Felix Thanks, I've seen that already. Nice piece of software, but I'm not running openwrt. I would like to see a solution implemented in the kernel, so any operating system can use it.