Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1244605ybl; Tue, 13 Aug 2019 09:29:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXGEKtyRELT3UBiHUveEVVmgU7fpngCi5iiOaw8IjchKE2DGGhU6FHQXgoikZHUqnwNG6C X-Received: by 2002:a17:902:a715:: with SMTP id w21mr3387484plq.274.1565713784097; Tue, 13 Aug 2019 09:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565713784; cv=none; d=google.com; s=arc-20160816; b=cmxcGqf3MGcfA/+2s/yeBv+TO1h9B9z3ouopbtQHlp+Ye8+ZdNchxu0lEIYQckWBAZ hrX2SPkK/sSxColh/PD760dHZ2q/gqmM1zRKLPmjjIL723Ky2Js73uP51geUe/Mait0b dC7ho3N25KsMlNmxDoh1YYcxNor4sO1enwsHiW0luv0TOK36r4lbYjmu8E6dmRmncqgr QF+nmYGmHH4LomhDnhDW0hL6PNQFPwmutjSMHUYKB1KbPtvMca86pVBMQjzW3TKDf+1Y gymejgYpQtvvTnaZjC0nWSTTgRAM+yTqh5Zu02/Zl5m+uazFFAxirnrDcuvQlG2vvrSo +Y7Q== 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:dkim-signature; bh=34xmiKyA+S2CnLiX+X01d9OYLI0FKAIfY0fTPpCykWA=; b=bB88nRhGMuxef4e+CmM2mzSiG1uKb/8eKT2B2eGMhm6fa/Wtz7MhDSFdVC6YCvlDol t+iFBQlfqvJmxip5aFytxc+aUnf4l8XmyHfWAMbm5MeEQ92E4SH9XHB+LgwPxlZWOHrj mamAVXyAbBVvhDajd2LXrnXMJuI8obaCyaTG/nL4cnKHCZXCFLWHXsx4FUJCYOHSTgko OkSlFLwPSfB5PgktHNjVzeSUAXNShOCz99iHFeOgymVtKVGoEmUnJHL3CaXWkiWVhsnB gJlKgvcLzHd7xxdZIthhwvOPQrr+7XQdltciTjEA3ELFeIzJNuAqjs8btDIs5w3TNQri FKiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=M2pxP3v7; 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 j70si63410068pgd.500.2019.08.13.09.29.27; Tue, 13 Aug 2019 09:29:44 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=M2pxP3v7; 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 S1728348AbfHMQ2b (ORCPT + 99 others); Tue, 13 Aug 2019 12:28:31 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:57428 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbfHMQ2a (ORCPT ); Tue, 13 Aug 2019 12:28:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=34xmiKyA+S2CnLiX+X01d9OYLI0FKAIfY0fTPpCykWA=; b=M2pxP3v7ZshqK85Je7x+dbWUDm gxNV75ZSQPGztbD8bG/EuMu4F6qG1HNmClshOwJSKUmqZ9lVWwKr3K8h3H7oKKfiL6eLI7swNXFmw fbzWY3nPFC6F4wOZU30iLPbeK924YNUsZUNg8vXkGzm5H5jrkH3+uobUJbxuVN3aa1VU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hxZep-0002tK-VK; Tue, 13 Aug 2019 18:28:23 +0200 Date: Tue, 13 Aug 2019 18:28:23 +0200 From: Andrew Lunn To: Igor Russkikh Cc: Antoine Tenart , "davem@davemloft.net" , "sd@queasysnail.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: <20190813162823.GH15047@lunn.ch> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e3c2307-d414-a531-26cb-064e05fa01fc@aquantia.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. 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. Andrew