Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3837504ybl; Tue, 20 Aug 2019 03:05:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxu4QLE0X5rUMazJrk0tjmYlRQf4coyd0beVJxcBggo3CVZIz5x72qSxZTHVnwYqR7RFL2F X-Received: by 2002:a17:902:7c12:: with SMTP id x18mr27734164pll.123.1566295502629; Tue, 20 Aug 2019 03:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566295502; cv=none; d=google.com; s=arc-20160816; b=mUH2wbrQ6Semb9BeB3Wj4Q7msAz+J49SOvGsX+migYRdkfisRXXgmaDaHwk45sdMjS l0eR7oNLr3YJ/JdtWKXnnBjrn152XoiTt1dCD3b4m9XaGri4ZA7k0g1wvFhi1EjOUPi5 wmmNmV5ivld3tWo83iwoY16UoH5m6Na29w4FtM5XCr2aYXzhjLbqliVj+Hle18OrfCpT umiKUSBf7iDrXi/eIp7vpkAn+k7K5o8kbGJgj1JZkdSruIL9sjoUGA2z4ZCq720cIVJQ odPyRPrHZZB0ryLeZMXLgm5vmKj6BGTXrQUjoQDqVCU9qbz8qMTIzpa0P/2oAnLQDCxr O7Ag== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=734ZzhTckO9wuxCWMUVJyzqTCPcz7CX+8skXj/qNvME=; b=djwpZxc33KtG6YZ8x/Uog8LCQMUafYqyc8Pgn+UvMbse7Oi5/m35tIHjB7aAlHcSK6 DgonDLMZng47P3aJm3qybxO8S34bxCTaKVh3KWaMTzdyl0MEjO3SxsyaiZGjzpHhmpOZ 86vCoqVjN+7bhO1W0qUvjuhWIw474QKk1iuAX4ZJ9mYrLQMHbER8I2CxIihH2HREJL/f xLB0IkgF20lYmhKUImWj5EU+RvZav6jEGqHEp4+o70LupKUZIGvkiUkIShLBBUrjmB3f Ex68syFD7jkFxWBkv7QJ5StigxhZyiyeQZ/iMsXD7MKXuZRBS/lfdqJCuA9TfGkHXo6t fWVw== 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 l186si11515750pgd.455.2019.08.20.03.04.47; Tue, 20 Aug 2019 03:05:02 -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 S1729675AbfHTKDz (ORCPT + 99 others); Tue, 20 Aug 2019 06:03:55 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:38463 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728414AbfHTKDy (ORCPT ); Tue, 20 Aug 2019 06:03:54 -0400 X-Originating-IP: 86.250.200.211 Received: from localhost (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: antoine.tenart@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 244F9240011; Tue, 20 Aug 2019 10:03:51 +0000 (UTC) Date: Tue, 20 Aug 2019 12:03:50 +0200 From: Antoine Tenart To: Andrew Lunn Cc: Igor Russkikh , 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: <20190820100350.GB3292@kwain> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190813162823.GH15047@lunn.ch> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Tue, Aug 13, 2019 at 06:28:23PM +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. > > 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. Agreed, in addition to being able to enable/disable the offloading we should have a way to know if a MACsec interface is being offloaded or not. Thanks! Antoine -- Antoine T?nart, Bootlin Embedded Linux and Kernel engineering https://bootlin.com