Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6049508ybv; Tue, 18 Feb 2020 08:55:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyWfkVo25FQIgXKpHJcfNtRWbWHt6F0zVRF355yePwoo73Vhd3GdL68+S6bBP1oPL4j9dKM X-Received: by 2002:a9d:d0b:: with SMTP id 11mr17052848oti.287.1582044946274; Tue, 18 Feb 2020 08:55:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582044946; cv=none; d=google.com; s=arc-20160816; b=OsVRT9G5ZsKwON21Jn+J3Gf3efE7sc/T7Cni+gFkIhbV398h5UuKoCAfjB4Q+pA6xl Yh+SMXKlNGevT3zMV5GxGBu5yq4oa4WdiqySuwlZL3jEF29A4XUz+jSsrILd3Lan2d3Z vJAnpdHBLTbsUSdtSrO39cg3DhKmymd9xWckXpRwO6698hD7ZWS7YzTqjNCEOwM7wt4Y /23PhCO3BoNgsTF7hEsW7wA7WGbTX4dCT+YPUs2dU5tEwdz64X4b7LRK5I8xteHvgNTr Tv4st2cjlGEl7BrLXl35LnWITSe5oejp1C8p1xh3YPZ6fFEZAptITJ9Qwo3xYGa1Cluu qLhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CNuT9LJsN+qBsu/tNcDVXo1prpfv+THxEMbqMK84B54=; b=JzvRzqbcRqY6lvtTnGHw/HElQp3PvZgnRKR5D6fz39CD1mmSMJh14qqmkmY8uwC6h/ d9jq0JrkD8XoLwxT39Fxj33GQNVRwTUXk5soWfn/zbc3oxZ6VeNEMaGDr4FuHHN+iM2n aEz9xb0wg7OeQEAFLcyzTg4rOkrRDRSVK4tHOGnfb42W4OAEJSnExCFqgWah5XCd8LF4 15QgUGzwrD17wJwX3wzw+JsNuIIKbFz2k7CE1iBTWZ7QMVmRMJRwfDAyQeO7/kc4EPtk K1y4wOG95a0GB4ns4vadsSXgV8VOlXpKIg07Dm+qgxylIDA2PUvkn71KMD977YEAfhhw q/0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R9r7mZsO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si2018000ota.71.2020.02.18.08.55.34; Tue, 18 Feb 2020 08:55:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R9r7mZsO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbgBRQzZ (ORCPT + 99 others); Tue, 18 Feb 2020 11:55:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:34596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbgBRQzZ (ORCPT ); Tue, 18 Feb 2020 11:55:25 -0500 Received: from kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com (c-67-180-217-166.hsd1.ca.comcast.net [67.180.217.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CFCEF2176D; Tue, 18 Feb 2020 16:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582044924; bh=zYbH/t2V9dViGFpxKrN5WN7wgyb79NK7aWjvZ9PciMc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=R9r7mZsOXkH6Cq5Wn+tL7rpjvwdL3DqF//EHE9ESINIx3jR3WAWLykk2MhJ1MsWA9 tSYdaAYD570uNZnKVG5i31pZYfBeMYJdQOuxMq8sw/svJvLjsXiWwpm3QckELfPlfA xp+dPDbYl4rHKvYknSzg0qDyp10Z+cb+/3M/3d/k= Date: Tue, 18 Feb 2020 08:55:22 -0800 From: Jakub Kicinski To: "Allan W. Nielsen" Cc: Horatiu Vultur , , , , , , , , , , , , , Subject: Re: [RFC net-next v3 00/10] net: bridge: mrp: Add support for Media Redundancy Protocol (MRP) Message-ID: <20200218085522.630e4778@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> In-Reply-To: <20200218121811.xo3o6zzrhl5p3j2s@lx-anielsen.microsemi.net> References: <20200124161828.12206-1-horatiu.vultur@microchip.com> <20200218121811.xo3o6zzrhl5p3j2s@lx-anielsen.microsemi.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Feb 2020 13:18:11 +0100 Allan W. Nielsen wrote: > But we should try make sure this also works in a backwards compatible > way with future MRP aware HW, and with existing (and future) SwitchDev > offloaded HW. At the very least we want to make this run on Ocelot, HW > offload the MRC role, but do the MRM in SW (as the HW is not capable of > this). > > If we use the kernel to abstract the MRP forwarding (not the entire > protocol like we did in v1/v2, not just the HW like we did in v3) then > we will have more flxibility to support other HW with a different set of > offload facilities, we can most likely achieve better performance, and > it would be a cleaner design. > > This will mean, that if user-space ask for MRP frame to be generated, > the kernel should make sure it will happen. The kernel can try to > offload this via the switchdev API, or it can do it in kernel-space. > > Again, it will mean putting back some code into kernel space, but I > think it is worth it. FWIW having the guarantee that the kernel can always perform requested service/operation (either thru offload or in SW in kernel space) seems appealing and in line what we've been doing for other offloads. IOW it'd be nice to have a kernel space software fallback for the offloaded operations.