Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3865900pxk; Tue, 8 Sep 2020 04:52:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYef3jH/U+z93OdbMzo0mtbH/sRvGapKs65HwaeSxznfFEPfcv2UU2or8C53o+yRuvHNHZ X-Received: by 2002:aa7:dd0d:: with SMTP id i13mr26949441edv.314.1599565924656; Tue, 08 Sep 2020 04:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599565924; cv=none; d=google.com; s=arc-20160816; b=XQsK9Ui2N9VagKXPfn31BvRvTiYKmjx3IkqXIAcqcscnqpUOvrcNActE5IS1tM08P9 IL8VL7CZKeDEWrQ16Z9CFHParEidO+pWIPF7tIh6g7Ae+yG0OnN6bIAbc51FOBJPgwiC C/YCr04gqJeDc66apWQyNgjpcXSmuWIF7GR/x6j6dq4vx/AZLssT122EWNaRSSIxadk5 I11lvgRGwKNLd9H4yxOZqU9A3zXLxoSiyVX9bCvRa7H06diKNv2LZxGMwEK4Dq6Bff2u f1tOZ7xpewKza82hYtNEe+67cZmb+S4C7Uw2VRMu+juCwkvimoyE2oKdsUbajrLA2KQJ tEQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:dkim-signature; bh=F+j0JCQ1GOVdffMe15XLwWeslfZg0hQxxi1+nRfhBWA=; b=jUqV8ezgCOYwGUrO1otSheBrI/TW0jB2IABVW9Pg25CJ0pznjuAwqU8jijQ4uBqsha WJx6qxZeY0C85MiuZJ15zTKZNd/sjLC7PNfan35Xv3dzuLIvBKgcwb2ohdMmS2ROqbLd /4Vyv+6AJF6Y/eUmmKifa5oxZYd9/KTTwZdJQbG6AaoQ2V1DFmyhLMWJ+sHZ+9KxNacY A4QaVrIQxmA1LnaqdHGTmN85kxJVnxbYl8FS5LKBHCsR9SGJjupMIFAWLupMtIEZ3jQx 60aGOzibuiQagJ1tIEpzRl3QUvSf7otl3iS4eYBdqfne5T0NvEa4Yt78sIrHtFHCGBR+ S4gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=Uu8U1vN2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si12392276ejk.113.2020.09.08.04.51.39; Tue, 08 Sep 2020 04:52:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=Uu8U1vN2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729953AbgIHLsx (ORCPT + 99 others); Tue, 8 Sep 2020 07:48:53 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:46899 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730128AbgIHLju (ORCPT ); Tue, 8 Sep 2020 07:39:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1599565189; x=1631101189; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=F+j0JCQ1GOVdffMe15XLwWeslfZg0hQxxi1+nRfhBWA=; b=Uu8U1vN2aiZ9U6xUDsslhIanSUG2YoGzxD1V36m6HqK5UatUCVs42V/K iT5dJ/OxM67dceCsGUngssNgeygGopbssKHzVws6W4oMaIWwn3VG2MJx6 3pY9gRnQGguCPNGX2RrJnjbq126x2GOYDF0Jiv2og86nxRRN39tPwpoB1 spxBQok4vFWlCJ1wjfi8D4DkcqHJAuQX+j/VERg4ErXDND9IxFaN8mGfB fIIWM7ZdWwt5ZrHL+1pzfKfopKCy1rye+kjJM47TxvFEJ1i334FHv2NHV qM4GaWqtWIWEBod5vDvxSoWyhswuQNqcT1nuMs9/ZHJXQgXU8cZAZzbFT A==; IronPort-SDR: UJwLxQvuqzI6LGuw+ZcNKEC8YY1cbiWNN1jw9hkfPBc15ECt57fXIKNF87X+91CTWoeakQp5Y/ RkBY/39EGW9iU/VBjbvfE17VrReQ7tgOjNnmC41ElliW39jSfmKdW/eLhaBwhK6idhdfOTizZb txxCGTlnKakYI5A9+OXP+TrSrj3PtV6QmP8kjBnY5GhbDIm4uAli/m+WH/hvEfV4Dzf00Ip7vW QfKKx+xwVTvS2Fa2cnoLaAvS8UeGmGvAjcIcs7Ly8VkSRz9c7FEb+k/A5PDTZ32TvR7T2j/Fl5 xMI= X-IronPort-AV: E=Sophos;i="5.76,405,1592895600"; d="scan'208";a="94807242" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Sep 2020 04:35:10 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 8 Sep 2020 04:34:51 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Tue, 8 Sep 2020 04:34:37 -0700 Date: Tue, 8 Sep 2020 13:35:09 +0200 From: "Allan W. Nielsen" To: Henrik Bjoernlund - M31679 CC: Nikolay Aleksandrov , "stephen@networkplumber.org" , Horatiu Vultur - M31836 , "bridge@lists.linux-foundation.org" , "davem@davemloft.net" , "linux-kernel@vger.kernel.org" , "jiri@mellanox.com" , "netdev@vger.kernel.org" , Roopa Prabhu , "idosch@mellanox.com" , "kuba@kernel.org" , UNGLinuxDriver Subject: Re: [PATCH RFC 0/7] net: bridge: cfm: Add support for Connectivity Fault Management(CFM) Message-ID: <20200908113509.hvuknvmr54no2cy4@lx-anielsen.microsemi.net> References: <20200904091527.669109-1-henrik.bjoernlund@microchip.com> <20200904154406.4fe55b9d@hermes.lan> <20200906182129.274fimjyo7l52puj@soft-dev3.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 08.09.2020 11:04, Henrik Bjoernlund - M31679 wrote: >>On Sun, 2020-09-06 at 20:21 +0200, Horatiu Vultur wrote: >>> The 09/04/2020 15:44, Stephen Hemminger wrote: >>> > On Fri, 4 Sep 2020 09:15:20 +0000 Henrik Bjoernlund >>> > wrote: >>Hi, I also had the same initial thought - this really doesn't seem to >>affect the bridge in any way, it's only collecting and transmitting >>information. I get that you'd like to use the bridge as a passthrough >>device to switchdev to program your hw, could you share what would be >>offloaded more specifically ? >Yes. > >The HW will offload the periodic sending of CCM frames, and the >reception. > >If CCM frames are not received as expected, it will raise an interrupt. > >This means that all the functionality provided in this series will be >offloaded to HW. > >The offloading is very important on our HW where we have a small CPU, >serving many ports, with a high frequency of CFM frames. > >The HW also support Link-Trace and Loop-back, which we may come back to >later. > >>All you do - snooping and blocking these packets can easily be done >>from user- space with the help of ebtables, but since we need to have >>a software implementation/fallback of anything being offloaded via >>switchdev we might need this after all, I'd just prefer to push as >>much as possible to user-space. In addition to Henriks comment, it is worth mentioning that we are trying to push as much of the functionallity to user-space (learnings from the MRP discussions). This is why there are currently no in-kernel users of the CCM-lose singnal. When a CCM-defect is happening the network typically needs to be re-configured. This we are trying to keep in user-space. >>I plan to review the individual patches tomorrow. Thanks. /Allan