From: Antoine Tenart <antoine.tenart@bootlin.com>
To: Igor Russkikh <irusskikh@marvell.com>
Cc: Antoine Tenart <antoine.tenart@bootlin.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"sd@queasysnail.net" <sd@queasysnail.net>,
"andrew@lunn.ch" <andrew@lunn.ch>,
"f.fainelli@gmail.com" <f.fainelli@gmail.com>,
"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"thomas.petazzoni@bootlin.com" <thomas.petazzoni@bootlin.com>,
"alexandre.belloni@bootlin.com" <alexandre.belloni@bootlin.com>,
"allan.nielsen@microchip.com" <allan.nielsen@microchip.com>,
"camelia.groza@nxp.com" <camelia.groza@nxp.com>,
"Simon.Edelhaus@aquantia.com" <Simon.Edelhaus@aquantia.com>,
"jakub.kicinski@netronome.com" <jakub.kicinski@netronome.com>,
Dmitry Bogdanov <dbogdanov@marvell.com>,
Mark Starovoytov <mstarovoitov@marvell.com>
Subject: Re: [EXT] [PATCH net-next v4 15/15] net: macsec: add support for offloading to the MAC
Date: Thu, 9 Jan 2020 14:21:26 +0100 [thread overview]
Message-ID: <20200109132126.GD5472@kwain> (raw)
In-Reply-To: <MN2PR18MB26387BD6B59565D21F936FE5B72E0@MN2PR18MB2638.namprd18.prod.outlook.com>
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
prev parent reply other threads:[~2020-01-09 13:21 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 10:55 [PATCH net-next v4 00/15] net: macsec: initial support for hardware offloading Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 01/15] net: macsec: move some definitions in a dedicated header Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 02/15] net: macsec: introduce the macsec_context structure Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 03/15] net: macsec: introduce MACsec ops Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 04/15] net: phy: add MACsec ops in phy_device Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 05/15] net: macsec: hardware offloading infrastructure Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 06/15] net: macsec: add nla support for changing the offloading selection Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 07/15] net: phy: export __phy_read_page/__phy_write_page Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 08/15] net: phy: mscc: macsec initialization Antoine Tenart
2019-12-19 20:11 ` David Miller
2020-01-09 13:18 ` Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 09/15] net: phy: mscc: macsec support Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 10/15] net: macsec: PN wrap callback Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 11/15] net: phy: mscc: PN rollover support Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 12/15] net: introduce the MACSEC netdev feature Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 13/15] net: add a reference to MACsec ops in net_device Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 14/15] net: macsec: allow to reference a netdev from a MACsec context Antoine Tenart
2019-12-19 10:55 ` [PATCH net-next v4 15/15] net: macsec: add support for offloading to the MAC Antoine Tenart
2019-12-23 11:36 ` [EXT] " Igor Russkikh
2020-01-09 13:21 ` Antoine Tenart [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200109132126.GD5472@kwain \
--to=antoine.tenart@bootlin.com \
--cc=Simon.Edelhaus@aquantia.com \
--cc=alexandre.belloni@bootlin.com \
--cc=allan.nielsen@microchip.com \
--cc=andrew@lunn.ch \
--cc=camelia.groza@nxp.com \
--cc=davem@davemloft.net \
--cc=dbogdanov@marvell.com \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=irusskikh@marvell.com \
--cc=jakub.kicinski@netronome.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mstarovoitov@marvell.com \
--cc=netdev@vger.kernel.org \
--cc=sd@queasysnail.net \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).