Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1024676ybs; Mon, 25 May 2020 05:29:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9DER71XKo0GYTFGJ1NM/SnwM8oenWfpdiH3wa+d2mldRfGqeGBFFZ6KVCha7crDJLQ9it X-Received: by 2002:a50:8dc2:: with SMTP id s2mr15437184edh.318.1590409746963; Mon, 25 May 2020 05:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590409746; cv=none; d=google.com; s=arc-20160816; b=mO1z8f19iWFaVutIQhOTAi1dIfj9XmbYHdMSM9leaKutsaYudAKJQydurnmDoj2UFC FK3LV2sXTjOgWEChrm50ByLdOfnkNJfz234O//oHhZvZNBLtEEoSaqlDdvrfQKBLe12F CjCOFGd486rTat17oDhgcmLdoAPhizG4NLzKPxuWGM2xAZgn66kR/gMiU/f/4Z/B0OSW erDrKPEkfdHU+RufwC3/Yw8tQRrJ1kwnnHwUzuICvBNlCG2JUN0SiuJHJiYxTLfteqaf mBeXtp4j9HrVkKS57KK2Y1B5H3w7nkCgzZrVn9oyUl4mf19XEi2frjQYUMwYo57ZMkR1 7sVg== 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 :dkim-signature; bh=VKjU/NNINRjaIcHYZSG/M+d0LaKgwPL7ZL6ZaExPofo=; b=v+iTHtp2zGKPA29Y6zLoU4LNnclYioPIRQPlTma5aUDOaJnEIj4G52ZsyeCD7nIJVX Chrq7t3FhDGV5Im4IRIeZf6+rekyGVJkcwHG/eEqwHYgXGvPtmGlu9+g3ggec64u0vEo 4Un14Lzemoa0TmGLaGXoZdc8qW2UP7aPKzd0hD5u/2c4uchMzA03ZgdChMmYAeKSwUmh RoUcwj1nBexI3SslNeE/q4pVdo96o8z931FCfCc12bUpX/EA1Gkxqy5cIDJhR7iaF5C2 6uKvRUkMzY0p4bQA+6YFL1lcHym5ZhJ9larQ/VDg6IsAG/ETHW0juLtLZZc3hm6gHdpF va+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=EpZPyYlA; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si8049850ejb.189.2020.05.25.05.28.34; Mon, 25 May 2020 05:29:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=EpZPyYlA; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390504AbgEYMZ4 (ORCPT + 99 others); Mon, 25 May 2020 08:25:56 -0400 Received: from mx4.wp.pl ([212.77.101.12]:13818 "EHLO mx4.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390360AbgEYMZz (ORCPT ); Mon, 25 May 2020 08:25:55 -0400 Received: (wp-smtpd smtp.wp.pl 3716 invoked from network); 25 May 2020 14:25:51 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1590409551; bh=VKjU/NNINRjaIcHYZSG/M+d0LaKgwPL7ZL6ZaExPofo=; h=From:To:Cc:Subject; b=EpZPyYlAoqff8DeQ52oMAD4mekfD3obWBvxXGNBTr24z3BBhKILKrWnDV+YGQbKeI m9/lV/gUoe26tYNBlY0fexR1FNQdjqEdMngYVWTSy7M/qHMdwzW5TzwEanyP2ho1sG EEtRI4wPmT3y5kEpelbTY3wcTDyrqhOX9si6mfgk= Received: from unknown (HELO localhost) (stf_xl@wp.pl@[46.39.164.203]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 25 May 2020 14:25:51 +0200 Date: Mon, 25 May 2020 14:25:35 +0200 From: Stanislaw Gruszka To: Rui Salvaterra Cc: Johannes Berg , Julian Calaby , Kalle Valo , Larry Finger , linux-wireless@vger.kernel.org Subject: Re: [RFC PATCH] rt2800lib: unconditionally enable MFP Message-ID: <20200525122535.GA927343@wp.pl> References: <20200524094730.2684-1-rsalvaterra@gmail.com> <20200524111751.GA914918@wp.pl> <20200524123931.GA915983@wp.pl> <640c254edb9fdaec2fd8987d1f2d345bd1d9276c.camel@sipsolutions.net> <20200525093142.GA926004@wp.pl> <9a8da74898b68fb63f65567068de0fcb2b5a57b0.camel@sipsolutions.net> <20200525105814.GA926693@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-WP-MailID: 07530c472eae7fd1a95a04893895594a X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000001 [EeKn] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello On Mon, May 25, 2020 at 12:14:54PM +0100, Rui Salvaterra wrote: > > If someone is willing to implement mt76 approach to have HW encryption offload > > for MFP+CCMP, I'll be happy to review patch. From other hand, most people will > > use MFP with modern ciphers anyway, so I'm not sure how much need is for such > > patch. > > I've been having a look at how mt76 solves the problem, but I haven't > fully understood it yet. I feel it's out of my league, since I only > started looking at wireless drivers very recently (I don't grasp all > the concepts and the architecture). Yeah, it's somewhat complicated. > But one thing that also bugs me > about software fallbacks is that for most of the older CPUs we don't > have SIMD implementations of the required crypto. So, not only we fall > back to software, but we're also stuck with scalar C algorithms on > CPUs which are already slow. If we talk about x86, we have AES-NI instructions since 2008: https://en.wikipedia.org/wiki/AES_instruction_set Which make CPU crypto quite fast. Though it can be a bottleneck, I think, if wifi encryption is performed together with other encryption applications like SSL . Stanislaw