Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4647296rwr; Sun, 23 Apr 2023 09:54:05 -0700 (PDT) X-Google-Smtp-Source: AKy350amWmp7x4FbnHxpqe3voawKZbnN+w6NbUcqEOwQO2Rj0RF4XFOTgze6VoqI6KnqwmDDIi6u X-Received: by 2002:a05:6a20:918a:b0:ef:d000:494f with SMTP id v10-20020a056a20918a00b000efd000494fmr15690171pzd.49.1682268845264; Sun, 23 Apr 2023 09:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682268845; cv=none; d=google.com; s=arc-20160816; b=xDfodcEzdBsfS1FOBxrsU9cOiceDEwKZRxsxFQ0vBEd1eEGUdhGkCemUCbZtlDQ7yl qjPj14TjUs3t7gbtVhYHpN2YCTluG8YleT7GyOHEM6m4snxQYmDSRP0ENme8v4PZ5Nbc Nw6LCkrZpN23vkxkJJeKc0z4MCdpAlR0UZNPRm3bvYCpkOY+kGpY6up+ibp7N9U7zL1W /P31SUBRgzMdWGe71VjrYuDEWET+Aps5MXA7/N6rU2y0op0v16Fh7XUQ7tW4qhEomtgY twK8VeoLgPKqA5rVfTB1uOpn6Bxxq+p+OVER/3T6ZOiCXSmgPaawJh2wRSPpY4bv1kPo TlBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MgDr9MDubc+MSK5/9sbIsN0hi5YRu9OFA7LjIfyFazw=; b=P5QmrmJZHI3ipyBU8tNNxcYZmKtVRQUs1i1Bz3dY/gzKK0EEpsm5qolCYgu9b7YLlS 8Aa1sHyYceCZ3dlvwQZ9EbA9V3cz18z6L/N5OKIQUdzNnxKKLBSke5s85Pv51xW/D9ae /4rDvz4D/gMGdMJDYvIyU/5YpBHwreVy8MP0cVPDeK6obgD+Ls57rjXmLWxZy42NNyhX I8gPIJ7d55mA2wEhShari1lyLDPKu6Y0z37gT97vO4P7Mx4ZrhfUGi+IJMyJtV0M6dxw 6N3dJsJL81WyC1eEKiNK53Y92js+/uruU/RZQ38JTW+Mtx5bbHYkJo+Zn/atvQSUsvR3 1nJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FStSQT1k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a654c03000000b0051f6974b6f9si9368588pgq.789.2023.04.23.09.53.52; Sun, 23 Apr 2023 09:54:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FStSQT1k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229938AbjDWQwS (ORCPT + 99 others); Sun, 23 Apr 2023 12:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbjDWQwP (ORCPT ); Sun, 23 Apr 2023 12:52:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E7A51701; Sun, 23 Apr 2023 09:52:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 815AA60F7A; Sun, 23 Apr 2023 16:52:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E77FC433EF; Sun, 23 Apr 2023 16:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682268732; bh=PB08aDW0cTYvbXemFXw/b311nnJVY0AnTDE0hJjddzs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FStSQT1kbjlWhJ95M02fD/VJD/fOHWget/dCThyEfnTIYVatyz50owf0Pl4lqUGgT T0QDS2fVg8yL5KMEuTJK7ZxTEZ9AmTaG51NKzIxpyEYYcw+u3SnIEaBBtNcD24ii4o CGFEEd4IbWMh1WTXsOBp/ZPjpRUfQvSa7aMWgNEdMFhvDmcDjhdb42QbP0AAhU7EZD Y1QVYOWDnIpFfjCoWsZio2EewB6c0YZSNq/TC2tZlJCdlXGTJAK+DueJK7ozxjsaUt ryz5OtbnvUjEBaL95clPEEGPP0QDoosQsLT+TxJYTbx7Eso/ZY8mC7GbQSAMqg17jJ NoOWJLzXFZOcg== Date: Sun, 23 Apr 2023 19:52:08 +0300 From: Leon Romanovsky To: Geetha sowjanya Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, richardcochran@gmail.com, sgoutham@marvell.com, sbhatta@marvell.com, hkelam@marvell.com Subject: Re: [net PATCH 6/9] octeontx2-pf: mcs: Match macsec ethertype along with DMAC Message-ID: <20230423165208.GI4782@unreal> References: <20230423095454.21049-1-gakula@marvell.com> <20230423095454.21049-7-gakula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230423095454.21049-7-gakula@marvell.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 23, 2023 at 03:24:51PM +0530, Geetha sowjanya wrote: > From: Subbaraya Sundeep > > On CN10KB silicon a single hardware macsec block is > present and offloads macsec operations for all the > ethernet LMACs. TCAM match with macsec ethertype 0x88e5 > alone at RX side is not sufficient to distinguish all the > macsec interfaces created on top of netdevs. Hence append > the DMAC of the macsec interface too. Otherwise the first > created macsec interface only receives all the macsec traffic. > > Fixes: c54ffc73601c ("octeontx2-pf: mcs: Introduce MACSEC hardware offloading") > Signed-off-by: Subbaraya Sundeep > Signed-off-by: Sunil Goutham > Signed-off-by: Geetha sowjanya > --- > .../net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky