Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2110713ybl; Thu, 9 Jan 2020 07:05:58 -0800 (PST) X-Google-Smtp-Source: APXvYqwEYXW1TcAG7SBSSP74puLaFB+knSqkgXjSvY+JtrKKtU7u7KbxNrK9olqx9wXkHaGDeHdo X-Received: by 2002:a05:6830:4ca:: with SMTP id s10mr8864518otd.268.1578582358810; Thu, 09 Jan 2020 07:05:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578582358; cv=none; d=google.com; s=arc-20160816; b=EfBBPeMuJIhI4TxTbfLCfH/KUwFdVFN1LcYNzBk6E1xW8nXW36PW7xUJEm86QNM4og rPpAQmO2wHbwBsONbQowhn1CXTIFJC5zHHvCAsohLdszXgzRic5c2FDiU0RG768L42k+ XYGa8ZGMjRTYi6YiTFrYRpu/WU3AXcKA8Oc63CnmE0TXpZ5NqE5QubBDg923N9mTKYZ/ LDKu409CjeMnWJN3gsDgCsGcMMl3j+eCrpgrLUkMqEZRrpmZmK9twmHElM15NIMUuhsa WqDaugH3YZK0cp8VJN52Xx2evQqn6i5LttpHlbRFe9Zwvp7DFfzb2tmzOsnyHfqR1eVs vFkQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=whT1869V6Gl04H55AJko5+eLqAohu/BUTGk2zQFCask=; b=f0Sr23bLfLK6Z4qdTbshXpdAXJpOHJY9zLk81cmSv8FGqLOC94Ft+NMy8YxQVKD27j VTjIbQxB3aZmRItmV6fJLain/4eyqn5KzzrV0aJfW1zS57MkgRKivAgJddXNmtERUeDq whgDn73TiHoG4U+RIPtBhxAliyEHyT6C2fdUj9z0tLV5JZMew4ZeJU2rY9n0vs7TdmLr 2WmIyaY+31LK87QfLtgGe6O2V1wzhdSNxjpo9LXg9uoX9tOESD7dCvIWI+TEHUwvlOP9 1T5mpiUahULeC1ctGY6bcC1ke6I32q91aGsWMFTwcC6gkrmFxmMDqK5m11GTTZ5sSJqt rclw== 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 n11si3650591otk.290.2020.01.09.07.05.35; Thu, 09 Jan 2020 07:05:58 -0800 (PST) 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 S1729758AbgAINVc (ORCPT + 99 others); Thu, 9 Jan 2020 08:21:32 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:58571 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbgAINVc (ORCPT ); Thu, 9 Jan 2020 08:21:32 -0500 X-Originating-IP: 90.76.143.236 Received: from localhost (lfbn-tou-1-1075-236.w90-76.abo.wanadoo.fr [90.76.143.236]) (Authenticated sender: antoine.tenart@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 5C8EE40004; Thu, 9 Jan 2020 13:21:27 +0000 (UTC) Date: Thu, 9 Jan 2020 14:21:26 +0100 From: Antoine Tenart To: Igor Russkikh Cc: Antoine Tenart , "davem@davemloft.net" , "sd@queasysnail.net" , "andrew@lunn.ch" , "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@aquantia.com" , "jakub.kicinski@netronome.com" , Dmitry Bogdanov , Mark Starovoytov Subject: Re: [EXT] [PATCH net-next v4 15/15] net: macsec: add support for offloading to the MAC Message-ID: <20200109132126.GD5472@kwain> References: <20191219105515.78400-1-antoine.tenart@bootlin.com> <20191219105515.78400-16-antoine.tenart@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Igor, On Mon, Dec 23, 2019 at 11:36:48AM +0000, Igor Russkikh wrote: > > > diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h > > index 024af2d1d0af..771371d5b996 100644 > > --- a/include/uapi/linux/if_link.h > > +++ b/include/uapi/linux/if_link.h > > @@ -489,6 +489,7 @@ enum macsec_validation_type { > > enum macsec_offload { > > MACSEC_OFFLOAD_OFF = 0, > > MACSEC_OFFLOAD_PHY = 1, > > + MACSEC_OFFLOAD_MAC = 2, > > __MACSEC_OFFLOAD_END, > > MACSEC_OFFLOAD_MAX = __MACSEC_OFFLOAD_END - 1, > > So from uapi perspective user have to explicitly specify "offload mac" > or "offload phy"? And from non experienced user perspective he always > have to try these two before rolling back to "offload none" ? > > I'm not saying this is wrong, just trying to understand if there any > more streamlined way to do this.. That is the idea, the commands will be: # ip macsec offload macsec0 off # ip macsec offload macsec0 phy # ip macsec offload macsec0 mac We should be able to report what's supported for a given interface, for a more user friendly experience though. (We could include the information in `ip macsec show` for example). Would that improve things? Thanks! Antoine -- Antoine T?nart, Bootlin Embedded Linux and Kernel engineering https://bootlin.com