Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp813102rwb; Thu, 11 Aug 2022 10:18:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WKVCaGnw9/1fuaw/IbV61UNgN2QUwWopJkw0A8J76dwPNm3v2qK6CWNdXbSWoVWOY6xON X-Received: by 2002:a05:6402:530c:b0:43b:c6bf:a496 with SMTP id eo12-20020a056402530c00b0043bc6bfa496mr110238edb.282.1660238280561; Thu, 11 Aug 2022 10:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660238280; cv=none; d=google.com; s=arc-20160816; b=pzZ6OpF7MdrnQ3hljRRnbNrMWMRRGcH9VkcCX2QHHePbK7d+YrkYEsY7lSlEqyZq7D J0xadn9lbe3j5Mu8UVStpaV36FoGbDV9I5i1k7HWyFqnPDQToqgGg2x/sfYlnJv00V8p 1Se1YgqfUwTaDVAlnZWhtekCGajwY5JDSnU5Zg9nI+vetFr5lFyjuJVbDVy5SnCl3ngA KUBs1VzRo113/iW1E0oRafoIl/0RwdYWM3RKSMMBjH2BIEmL/YeuSS+oNNR1J627EPaZ fgRS3MHhDz9ru84HTVyADR5Khuz1tKat5PtHL0UcmlmF5m1HiER8xdrg6wuseR0pXIj3 G80w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=na+Oe5yYyjeKL4YdYMGt0A4gghPMmon131wlt+yauWY=; b=e404ZTXXDOC3WyVR23WX4sWHyCrzDhBFsMD7IG+gJzvahaheidP1vrevzHucu0AWny nJGsXZm1vuhi143+wiZMW2VIuirLmByrd7xI5qSr6BzLAW5/Ptd5VHiXw4xD3XQY1Yr8 ekHlIZP3SVB18Opl5p278yCh8b79IXycwSn4u462RSZqxwbqe8TD3uJnArsh1eQl3fB2 ahavugvdjyh9OFz+ejeA6dkCFAAj9sIo0iKFkqPfh7zrcPZSvZs+lLGcyAVcweyJqUPu 34g1GXDI+6kC33hMe23p1EPL2t1kEjMe0p3P+wn8XLOhD6to+i9W76WHZGRTOze05yiv 1yDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z8GfzVsB; 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 dm10-20020a170907948a00b00726943e5de1si8891745ejc.579.2022.08.11.10.17.29; Thu, 11 Aug 2022 10:18:00 -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=Z8GfzVsB; 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 S234073AbiHKQwv (ORCPT + 99 others); Thu, 11 Aug 2022 12:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237092AbiHKQwc (ORCPT ); Thu, 11 Aug 2022 12:52:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8A1632D9B; Thu, 11 Aug 2022 09:25:47 -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 ams.source.kernel.org (Postfix) with ESMTPS id 46396B82148; Thu, 11 Aug 2022 16:25:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7E7AC433D6; Thu, 11 Aug 2022 16:25:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660235144; bh=eNAY7nWNpX+4QCS5pm35Zgw+2wWwXkC4x4JRn6bEsoU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Z8GfzVsB4lo2Q7+VvVqkh0hhFVheVGn7fLnj9FluSweoTUA1FuqKNn5B/HWZnZYJf Li0A4vMWGQm3Zv0n347RvsFuoNdlj+u8H3/S3ecubgn6Q4vchAQJyTyorm3rrU1u+t T904AA78rBrotaqyz3l2CrWUVveh1T+qTbt6dD53oVIOJ7OSkGTXTEZ8SErH3y6LP4 GD0TsrqJh+GkvSQqisJ3HuOW0catPbhYLu3EwiirjJ7OqMBD6zzmPIXDlnFoLDBgRB foyroxiqtWrDVVoZhy67kJZonhKr4EC01yqA50UnqGOmqb83h8P2a/9deJn3I3omfV 2QtYIS9nAq68A== Date: Thu, 11 Aug 2022 09:25:43 -0700 From: Jakub Kicinski To: Emeel Hakim Cc: , , , , , Raed Salem Subject: Re: [PATCH net 1/1] net: macsec: Fix XPN properties passing to macsec offload Message-ID: <20220811092543.696a5ef2@kernel.org> In-Reply-To: <20220809102905.31826-1-ehakim@nvidia.com> References: <20220809102905.31826-1-ehakim@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, 9 Aug 2022 13:29:05 +0300 Emeel Hakim wrote: > Currently macsec invokes HW offload path before reading extended > packet number (XPN) related user properties i.e. salt and short > secure channel identifier (ssci), hence preventing macsec XPN HW > offload. > > Fix by moving macsec XPN properties reading prior to HW offload path. > > Fixes: 48ef50fa866a ("macsec: Netlink support of XPN cipher suites") > Reviewed-by: Raed Salem > Signed-off-by: Emeel Hakim Is there a driver in the tree which uses those values today? I can't grep out any rx_sa->key accesses in the drivers at all :S If there is none it's not really a fix.