Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp422841pxa; Wed, 12 Aug 2020 05:42:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi3u90xKBJtnk48jH7Ws3xx4Js1qzGNKUhTLnfR626QOu8uls7pryRNdB9M2+R154hqZC7 X-Received: by 2002:a17:906:2490:: with SMTP id e16mr30579106ejb.386.1597236168449; Wed, 12 Aug 2020 05:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597236168; cv=none; d=google.com; s=arc-20160816; b=lO+v3oAnGUXDNFokrSJyFBoy439HOP852OaLlhyb7vZboKyiRiTYiXMGMa8UiFh7/S IKkaqkMTyUQ+h/SR2Lasjx/ZIA44NnwCaFqm0a8oK/QPspE231Adb3W6etbUGDsfKnFn lY3d7UKyDHbuvyZ2VU/pFGbrkxq/QFUgJhlaww3ebRqJekRYFtTFcMuxIlk4hZPBvrmK XHmV74M+Qnr4d2VT4yT1lEy9VEg6gW1qab5o1h1v9eV1NYOeegVl6SjgDMgdjM3dqsaO WGt2VCM+yjdDB5FrWhQjcUVS0FjdomcGk/qYdxPyuJZU/cQck6ing3FAZpfk7VzRnfWE eGBg== 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; bh=/8JGN0OqidvH9GyiKEqa06vMXLEKum7JTvEtbir7R2Y=; b=Ao/TqWAbPhrzKlOw9DUK8BqsRDMqgdJPWUu3KbHdzq/58OX/DJ8VjdfWO7djoQV9i4 MAalmfn4+gGuHajNFthprNChXITqQvdoCwkIJbIIc/+6YTTEOVSYw943JIhd8H9NFoAo FX5KPv6OYqmNxfn/E7XDLW/yrsAg+dEaDRUAmNkwi+bTQOhEcEUxyWEleeFkgicr4YhM fOW6IKShnboEwsNJpVU+P4L31k2xeMXUeB1dvhmWyOk9gpMqKQJZj53i0r5wIWGWIRq7 buLVYrmF2VWyvzPG+vCJe/yiGOREmvCWINa66xhyHY0bzM92MrfwnNIxowsd0LJB/9t5 1f5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp18si1047545ejb.177.2020.08.12.05.42.24; Wed, 12 Aug 2020 05:42:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726722AbgHLMmX (ORCPT + 99 others); Wed, 12 Aug 2020 08:42:23 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50772 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726698AbgHLMmW (ORCPT ); Wed, 12 Aug 2020 08:42:22 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1k5q4v-00997m-Jt; Wed, 12 Aug 2020 14:42:01 +0200 Date: Wed, 12 Aug 2020 14:42:01 +0200 From: Andrew Lunn To: "Van Leeuwen, Pascal" Cc: Sabrina Dubroca , Scott Dial , "linux-crypto@vger.kernel.org" , Ryan Cox , "netdev@vger.kernel.org" , "davem@davemloft.net" , Antoine Tenart , "ebiggers@google.com" Subject: Re: Severe performance regression in "net: macsec: preserve ingress frame ordering" Message-ID: <20200812124201.GF2154440@lunn.ch> References: <1b0cec71-d084-8153-2ba4-72ce71abeb65@byu.edu> <20200810133427.GB1128331@bistromath.localdomain> <7663cbb1-7a55-6986-7d5d-8fab55887a80@scottdial.com> <20200812100443.GF1128331@bistromath.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org > With networking protocols you often also have a requirement to minimize > packet reordering, so I understand it's a careful balance. But it is possible > to serialize the important stuff and still do the crypto out-of-order, which > would be really beneficial on _some_ platforms (which have HW crypto > acceleration but no such CPU extensions) at least. Many Ethernet PHYs are also capable of doing MACSeC as they send/receive frames. Doing it in hardware in the PHY avoids all these out-of-order and latency issues. Unfortunately, we are still at the early days for PHY drivers actually implementing MACSeC offload. At the moment only the Microsemi PHY and Aquantia PHY via firmware in the Atlantic NIC support this. Andrew