Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp935694ybl; Fri, 16 Aug 2019 06:27:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvmFVjTyjS1OpStXyDABEygygqSE1X69Ra/R9JI4WGKx0RQEEN29eaKBlGimbS8j8R0/kC X-Received: by 2002:a17:90a:30ad:: with SMTP id h42mr7140137pjb.31.1565962055109; Fri, 16 Aug 2019 06:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565962055; cv=none; d=google.com; s=arc-20160816; b=W8GuaAeunrvKGobq3ayoMl85nUFdqN1aKnhWeoq6ZVQymHENe0OnYis4wbIpj/ujz3 blyj1ueqrtKgUghoHd0ovABsL4huhyyQc+7YMVptfAaKHTzzYynPo7sBzs1vuR17Q7R7 nf8y0EuVfi2j03tJh2Kk+jlGFGTEVlPcauEINC1BAeMxdy/aFfsHme46CaVo/xkgPSkg VKxDDJKt03rDeYrVCw6aunkw0XEM0gvG1Na23A1jrthLsCdH+uld8WicGKQEkSjWlq9I k1UgZax7QY7xMqvDJGUM2qmmXuwgxGJ3yYA5Q9v6FJi4QaORZEQ47hvHQeFZzuhD1v1b HPrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=I5XvKDbAhfo+ksuvh9JIU+qBKgaMgmyFQHI4+nC3OvQ=; b=0iDb7Zo67qp4HLRRvEcUI7qxOqFc5/+hqIp7x6l9EwQFtE60SM5brolJ262P4Nw149 EqfxRXZqJi9a3BmUSkmvE+k4PWWTRb3aY0biwRjgCKoN3pm3D6m7Aufuu1ta7Iyyvjlk oVmUhfGJgX+s8LvSJ13YpFPvjc2yKcotyNFYEwhEpkupNFFRESr4p1IpmyHEuroqMo8/ vFdlHELYd0fr8kEgeT8i7E8FPZ9lo9GOjRgWkKe6/ivDexiA7VZpKxdO+CZvaEi6nGMD sBcysUT5O1q+/rolhIIIBfKBCVe97atxAPAXooCNmJBCFyNcRWIllglM5pCXhqaM2PcF 53vQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si3002388pjy.47.2019.08.16.06.27.18; Fri, 16 Aug 2019 06:27:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727350AbfHPN0Y (ORCPT + 99 others); Fri, 16 Aug 2019 09:26:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60822 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726981AbfHPN0Y (ORCPT ); Fri, 16 Aug 2019 09:26:24 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 11CF630833C1; Fri, 16 Aug 2019 13:26:24 +0000 (UTC) Received: from bistromath.localdomain (ovpn-116-43.ams2.redhat.com [10.36.116.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6871480C8; Fri, 16 Aug 2019 13:26:21 +0000 (UTC) Date: Fri, 16 Aug 2019 15:26:19 +0200 From: Sabrina Dubroca To: Andrew Lunn Cc: Igor Russkikh , Antoine Tenart , "davem@davemloft.net" , "f.fainelli@gmail.com" , "hkallweit1@gmail.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "thomas.petazzoni@bootlin.com" , "alexandre.belloni@bootlin.com" , "allan.nielsen@microchip.com" , "camelia.groza@nxp.com" , Simon Edelhaus , Pavel Belous Subject: Re: [PATCH net-next v2 6/9] net: macsec: hardware offloading infrastructure Message-ID: <20190816132619.GB8697@bistromath.localdomain> References: <20190808140600.21477-1-antoine.tenart@bootlin.com> <20190808140600.21477-7-antoine.tenart@bootlin.com> <20190813085817.GA3200@kwain> <20190813131706.GE15047@lunn.ch> <2e3c2307-d414-a531-26cb-064e05fa01fc@aquantia.com> <20190813162823.GH15047@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190813162823.GH15047@lunn.ch> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 16 Aug 2019 13:26:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2019-08-13, 18:28:23 +0200, Andrew Lunn wrote: > > 1) With current implementation it's impossible to install SW macsec engine onto > > the device which supports HW offload. That could be a strong limitation in > > cases when user sees HW macsec offload is broken or work differently, and he/she > > wants to replace it with SW one. > > MACSec is a complex feature, and it may happen something is missing in HW. > > Trivial example is 256bit encryption, which is not always a musthave in HW > > implementations. > > Ideally, we want the driver to return EOPNOTSUPP if it does not > support something and the software implement should be used. > > If the offload is broken, we want a bug report! And if it works > differently, it suggests there is also a bug we need to fix, or the > standard is ambiguous. Yes. But in the meantime, we want the user to be able to disable the offload. It's helpful for debugging purposes, and it can provide some level of functionality until the bug is fixed or non-buggy hardware becomes available. > It would also be nice to add extra information to the netlink API to > indicate if HW or SW is being used. In other places where we offload > to accelerators we have such additional information. +1 -- Sabrina