Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1750362imu; Thu, 24 Jan 2019 00:59:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN7K/DeBkIaJynrkcBQLpr09uM38YUFqaZ3L4roQRGZUWhJHkjhGTt68X/tqUvCKGr2FD2Wi X-Received: by 2002:a17:902:108a:: with SMTP id c10mr5796233pla.131.1548320344047; Thu, 24 Jan 2019 00:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548320344; cv=none; d=google.com; s=arc-20160816; b=phFi31tg2LaYvkNDtEPyn0uLL3ouRnPKv2dYx+LqO8FUrGCf2j74M6J0pgb2h62D9g c6O3FHov2Gp/WA69A4Hb+5/Ge+NHYZN3pxJ7Ceuj7ItPFsiK21QtDEUhjwmzKAUSIeTS xt4y3YMD1v8RFxkwXNgrGQDjZD2lhAAms9BQosCukoKFfxbJiPaowgmrmsPCh+Gw+IfR 5MTQLQeUROVwZItw+AHpa6frZFcDnH5LaIqYAGo0OLS0g5d/oaL7X7AjqiklVovZZ9+g 7cTIp+r92moDGCrrqel6ldM8evklGQ4dmt3WqHcbNzLA+ew19+BOoCMq4Hd27473pErU 7fHA== 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=TXM//qnwTNrSLCHcfyNGfwnu+XLqXUUzzcrKW1QaEJQ=; b=mbRVtWdzhN5JZKngwbzxI7XURB6KGWAkuPc5ex7fSX6c31jY1va579CeM3KdeISxZE K3BpSsrvgeOjCySqPXrpFPjtjlvNtsX1K8B/T5jx1mjNtNREnzhig6qSjau4KuHC5uhQ 1cFZyJevkUlWi36q4woOAXSU1lHtSUCvd4vY+oWwg8X3s+xHJhSl6VxdRacL74khQEJV SvdUe7Mwg6aJMQZ400hpEeW6RB2tf5n4PzKuf04yoc3cCQu9hwI+Wd2xPVViYeRfVJWX xgGYaFSRbW0j5XWaWHnTmKlZphRQHksy//QcLA5YbRvEnFqFQ1LFcEb5a6Fn8QM6SAsi Hx4w== 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 y6si50plr.186.2019.01.24.00.58.48; Thu, 24 Jan 2019 00:59:03 -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 S1727504AbfAXI6g (ORCPT + 99 others); Thu, 24 Jan 2019 03:58:36 -0500 Received: from mail.bootlin.com ([62.4.15.54]:57230 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725986AbfAXI6g (ORCPT ); Thu, 24 Jan 2019 03:58:36 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 51573209BC; Thu, 24 Jan 2019 09:58:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-87-206.w90-88.abo.wanadoo.fr [90.88.29.206]) by mail.bootlin.com (Postfix) with ESMTPSA id 21E44209B6; Thu, 24 Jan 2019 09:58:23 +0100 (CET) Date: Thu, 24 Jan 2019 09:58:23 +0100 From: Antoine Tenart To: Florian Fainelli Cc: Antoine Tenart , davem@davemloft.net, sd@queasysnail.net, andrew@lunn.ch, hkallweit1@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, quentin.schulz@bootlin.com, allan.nielsen@microchip.com Subject: Re: [PATCH net-next 03/10] net: macsec: move some definitions in a dedicated header Message-ID: <20190124085823.GD3662@kwain> References: <20190123155638.13852-1-antoine.tenart@bootlin.com> <20190123155638.13852-4-antoine.tenart@bootlin.com> <955d1bdf-037e-ae26-a9da-8da2a51a7cbd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <955d1bdf-037e-ae26-a9da-8da2a51a7cbd@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, On Wed, Jan 23, 2019 at 12:11:37PM -0800, Florian Fainelli wrote: > On 1/23/19 7:56 AM, Antoine Tenart wrote: > > This patch moves some structure, type and identifier definitions into a > > MACsec specific header. This patch does not modify how the MACsec code > > is running and only move things around. This is a preparation for the > > future MACsec hardware offloading support, which will re-use those > > definitions outside macsec.c. > > > > Signed-off-by: Antoine Tenart > > --- > > drivers/net/macsec.c | 164 +-------------------------------------- > > include/net/macsec.h | 178 +++++++++++++++++++++++++++++++++++++++++++ > > 2 files changed, 179 insertions(+), 163 deletions(-) > > create mode 100644 include/net/macsec.h > > > > diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c > > index 56e354305f76..c3a138dd4386 100644 > > --- a/drivers/net/macsec.c > > +++ b/drivers/net/macsec.c > > @@ -17,10 +17,9 @@ > > #include > > #include > > > > +#include > > #include > > I would probably go with include/linux/if_macsec.h and have > uapi/linux/if_macsec.h include that file directly. This would be > consistent with other types of network interfaces: bridge, vlan etc. It's always a good idea to stay consistent with what's already done. I'll update in v2. Thanks! Antoine -- Antoine T?nart, Bootlin Embedded Linux and Kernel engineering https://bootlin.com