Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2320978rdb; Thu, 21 Sep 2023 15:24:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFY7gi5ZZiiMhCtndK4oz5btYcTNTcsfD7ajll6783Tbs+QB9Vacu1ZNF+y51EREVwcEYrm X-Received: by 2002:a17:902:7146:b0:1c1:e7b2:27ad with SMTP id u6-20020a170902714600b001c1e7b227admr5393415plm.60.1695335072428; Thu, 21 Sep 2023 15:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695335072; cv=none; d=google.com; s=arc-20160816; b=1Au/ugX2lqQj9+DbKxgfjVaT84aW/DQ5G90D8au/rJVkEKLotKXW3mZT6lwUWUd23T 4hYnExU213Af34/A0YQVC3TiAuv2CxpvV4AM28x+KAjXfL6DvOQJZzNRafk6xpfWPbuQ EB8UP3oaalfmbjhMqbScbDjVFPpE8YFvIDQJEF5lmPzjHrjc48IJvQqZHRWaEB9hHfcS U4ZqJeT+NlMn6phzL2o8dbEDi3duOvutDxAiN/2XR67KJF76dMvWBUZdXOP1BO0vMa2K OtuPIn4oKEM3xF1pfTE1anTuORdrJ+zTrJxHSWo/bWJ1yN9HEQZkf3isgF+DBYS254c3 FEDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9Lp00J6zbysQ8U2olBiWnBUllQFV2OnKj6qqlkk1XgQ=; fh=l7Rt5P/fCaaVucQe9dUhqh/RHT5x4wMNypnF9VyU7nc=; b=Tuzy4sp8kotiC7IHRIFasc0JjzjtgAzJSV/CI8EpJV1OcEGGiEJDZbnY3Zgtzp9Tvp HxMm6p3OYD19c9LBHfpq7sTFembyTr9H0+wKiaqDPit0/dbbREx5AVaT75ls8lPUEAMR WXIaA0dIhRauqQ/j6fHwOGexLF9tQWJFRpMusW9w0bnsleF3HI/GWV39knR6xsuLv9gP fSab7LkiJUBKvenpYtz/xXma+9fCj+be3FSKo9jieINT3kqEAl54JOQaUJbwBfGDDAzk /+Sgyk9/sTrnOtA7SjBxWntW69YaAnmbl35t/v73OOPC9OyCalRCM30wSDjYRNh7AuEa D/jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Q7v18kTu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id kp11-20020a170903280b00b001bf095dfb7asi2207386plb.231.2023.09.21.15.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 15:24:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Q7v18kTu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 909E980BB9A3; Thu, 21 Sep 2023 13:26:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231684AbjIUU0Z (ORCPT + 99 others); Thu, 21 Sep 2023 16:26:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231916AbjIUUZ6 (ORCPT ); Thu, 21 Sep 2023 16:25:58 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBD1655BA; Thu, 21 Sep 2023 10:50:37 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-564af0ac494so853685a12.0; Thu, 21 Sep 2023 10:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695318636; x=1695923436; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9Lp00J6zbysQ8U2olBiWnBUllQFV2OnKj6qqlkk1XgQ=; b=Q7v18kTul10IvqQPubPDEojMgN+1Jp1HZd+yZvRRY4XpEInWmZtJuSLn7WmQKBYKRY tSdpH9nFdeyyl54GzXLJOJwH1iDnevLW1P20vrnOvmqMj277wudK5x0gVT53C1AkiFc1 h0yzlKW0AoHg7pliRDIdA/pi/1iecSvSiOyHNl1iEXSifJJG0Nme2gH01EDQ6tFk8NHp WVV2eZWtgsq6p6PFh+c+MyidQw4OIzU4oz0Rb2bDpq4zxUeNThAqRF+YteJ4DJ5Smuux bsj2KYSwcv0TDyjo+EHxrjh+rkw5RzTSIATlaQuhNbbeVHoMAcmeMdEg1PW9FpGAAxgM BRoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695318636; x=1695923436; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9Lp00J6zbysQ8U2olBiWnBUllQFV2OnKj6qqlkk1XgQ=; b=G7hbs9QMXSCXH1uSII5e5vXZ3ExMsLEH9GB0HAWP7+JHD9gfPgwhcmKo+xeb6lpC0F RWZ4R3lHBrpIAe4m8IutPVlOLcEZVnQWxJtnqZAKh4lyeQ26gIzGrCF+QIBRtwBtZefn i8VgVTnUT3+hWtsb845UCMxOEKvBkQFct07Dt1zoBgWSA93shKxoWcqtvbZyd1pWHld6 5J3CPKiEHMgPGUTc2YR09lGhg+O5PUaRuxhIZf7ID5tdbFmwaCnRiHZAcX7g4/eMvO5m RFJThjwfrNstDlh/oKTkZ43r5Dc6xFQbfesFq1jlA0RlwJmv5mesDUHhSSoCGxy7r6vH a5cA== X-Gm-Message-State: AOJu0YzE8XK7+EXEArowZyGxRyVrARb1G5rNtKNdiQTB1yDokwlqdBwq hPGBFv1DyzvYg3H6FmhsxlM= X-Received: by 2002:a17:90b:3786:b0:274:77df:50cd with SMTP id mz6-20020a17090b378600b0027477df50cdmr6002734pjb.9.1695318635785; Thu, 21 Sep 2023 10:50:35 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id r6-20020a17090a438600b00263f41a655esm1817452pjg.43.2023.09.21.10.50.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Sep 2023 10:50:35 -0700 (PDT) Message-ID: Date: Thu, 21 Sep 2023 10:50:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v5 net-next 3/5] net: dsa: tag_ksz: Extend ksz9477_xmit() for HSR frame duplication Content-Language: en-US To: Lukasz Majewski , Tristram.Ha@microchip.com, Eric Dumazet , Andrew Lunn , davem@davemloft.net, Woojung Huh , Vladimir Oltean , Oleksij Rempel Cc: Jakub Kicinski , Paolo Abeni , UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230920114343.1979843-1-lukma@denx.de> <20230920114343.1979843-4-lukma@denx.de> From: Florian Fainelli In-Reply-To: <20230920114343.1979843-4-lukma@denx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:26:27 -0700 (PDT) On 9/20/23 04:43, Lukasz Majewski wrote: > The KSZ9477 has support for HSR (High-Availability Seamless Redundancy). > One of its offloading (i.e. performed in the switch IC hardware) features > is to duplicate received frame to both HSR aware switch ports. > > To achieve this goal - the tail TAG needs to be modified. To be more > specific, both ports must be marked as destination (egress) ones. > > The NETIF_F_HW_HSR_DUP flag indicates that the device supports HSR and > assures (in HSR core code) that frame is sent only once from HOST to > switch with tail tag indicating both ports. > > Signed-off-by: Lukasz Majewski Reviewed-by: Florian Fainelli -- Florian