Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp979954ybs; Mon, 25 May 2020 04:18:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp4S2AcJpPbvPAGUIqM90gVlPnJigsCCn5n7+TGIVev7jT9yDQEoYkG0azxS4AxFF1Q9M9 X-Received: by 2002:a05:6402:3d8:: with SMTP id t24mr6487871edw.350.1590405491119; Mon, 25 May 2020 04:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590405491; cv=none; d=google.com; s=arc-20160816; b=bHbUPP7cx2CgW0SQ6Gq4Q7BIJNpB4c5TpIIh8nAZik2+c4Umx/NcZqAywLFJgIZ/1w QnpF2DA3MI7uBIlfGU8Mvp9PfkgaPFie6R1GWTdoUbmE8udOK/nibSiwxqd6hz724MmV xAiL6LQYJtyt4WYALrHbwxAwO3qnvSwzvRw8kIObr65JgM+147CA+7xfcddDPXbJnCk9 4Kx0PWWpyxn1U5m+JRGtdZlX49khxLPYADNKzpF08+x3COpB2IKNqI5Bfo3MYqXHp5SN AMjykgYeY5X4EY1Xxzh4R8ZxI3Z47+FopVrJL8snqerrcy79l6kEYDZCwa/Zu/8c21FT k7eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ugyPrFzG1rfZou/QUc1j+oRqX/v9DVxAr6O8y12ShO0=; b=erR/YfRA8YWemxyS370BQkI1seQHrMABhvIQRGHZK201BRWHPf1BHN3HOIQoINW350 UMimfm8/A8RxEvXq9CqiqULKx9t4guy4mQbHhXyElmWi4H/Qx5MeI2xxHrmcD8Bi1iGy TZG7/DrrrKLP8sOz9gEAccBGTbl20NvqylQateB+nD2E2DhtaChbu3u8jGbLNvKoCOiq zW6elt7IVkX6YN/BWAFx3BDl4jhoKb8baiLySEaxvDP9QdtfwuhYV4fJFGX4F9JdunAq En5a37YX+70qyAYOs6UI2zcEIQaaaBEd+rhShQak22u86Prkmi3TQnzdNoO9TcNOtXDk nwYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fYpsteLq; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r7si9122062eja.536.2020.05.25.04.17.46; Mon, 25 May 2020 04:18:11 -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 header.i=@gmail.com header.s=20161025 header.b=fYpsteLq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390113AbgEYLPI (ORCPT + 99 others); Mon, 25 May 2020 07:15:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389897AbgEYLPH (ORCPT ); Mon, 25 May 2020 07:15:07 -0400 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83789C061A0E for ; Mon, 25 May 2020 04:15:06 -0700 (PDT) Received: by mail-vs1-xe43.google.com with SMTP id l15so9736407vsr.3 for ; Mon, 25 May 2020 04:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ugyPrFzG1rfZou/QUc1j+oRqX/v9DVxAr6O8y12ShO0=; b=fYpsteLqeWgjjB1TqnOAlzxvzWwjeGUQW0ipRWAJlSW5dJ2LfC6HKsIW8YyPor5dLA caMrLhwfVZlpOs01pCpfbjNmpzdXMy+GgDFqdUzev9KIp/KEVu2de1fNkPDY+nccFPr9 K0BzZt39i5XqF0kDJbjq3pbu9oA78lEPq6rBdwo03ojTd030TPWjRfcu/CyOq+tikq9j 9duOZEWYBkrzWNy14bsdoWjLUOMKP+R56Oi6haQawXjb11ZgD7aki5to+U2/je9VYqbM YYlxWwbRs4wFnW1g9wdL5ZQOGuGp0ELuBoW1+QCO5fQmmtgLoDIyw9p9m1IMM4q5yC86 +JQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ugyPrFzG1rfZou/QUc1j+oRqX/v9DVxAr6O8y12ShO0=; b=DNVW5zxdBZ7hVxqwJH9BFNKf6xUzzHG6zWVgFucX4DDGhJLk1pCLVtVIFa0LlpOCUf pm97vYgf4sqw4U3HAcI7fRFWXE547VqsUab1YppLUr4hvX4dYzqfO4sRvt1ssPvxYXgk zrEXJ9s56KtahWV7EjjfBe+rz/IvuFPYmByXBbMR/GPnB+5HQJ9snZihNYlB+ry74jJj GU1nkqrMQ+rleKKwezdSrkZ4DwDsYMddV8xOKvkIlNMQGzXLzD5mW12VYQM7+00YGdMN 0mtFE3bA7BmAejEUPuVxo13wDICVrxDVVGW6oXJrPIUbOchbK5gqKADz0DeBbU2cjXyz ddZg== X-Gm-Message-State: AOAM532DocyeiPcLhxd2mBjb4Jnus7GjcRPxZcAszxLyu2zi7r+OVOzs Y8meNrjqRByULHY+F3RlPac4T4XmpEX/crHq0Q== X-Received: by 2002:a67:f313:: with SMTP id p19mr14130713vsf.63.1590405305645; Mon, 25 May 2020 04:15:05 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20200525105814.GA926693@wp.pl> From: Rui Salvaterra Date: Mon, 25 May 2020 12:14:54 +0100 Message-ID: Subject: Re: [RFC PATCH] rt2800lib: unconditionally enable MFP To: Stanislaw Gruszka Cc: Johannes Berg , Julian Calaby , Kalle Valo , Larry Finger , linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, Stanislaw, On Mon, 25 May 2020 at 11:58, Stanislaw Gruszka wrote: > > Yeah, and at least without nohwcrypt=y we can still use HW encryption > for non-MFP stations. > > Rui, feel free to repost your patch with additional sta->mfp check. Sure, will do. :) > 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). 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. Rui