linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: andrew@lunn.ch (Andrew Lunn)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/6] staging: fsl-dpaa2/ethsw: Add README
Date: Tue, 3 Oct 2017 14:38:36 +0200	[thread overview]
Message-ID: <20171003123836.GD13548@lunn.ch> (raw)
In-Reply-To: <AM3PR04MB0743030F8D97FFB37016F11AE6720@AM3PR04MB0743.eurprd04.prod.outlook.com>

On Tue, Oct 03, 2017 at 10:07:41AM +0000, Razvan Stefanescu wrote:
> > -----Original Message-----
> > From: linux-arm-kernel [mailto:linux-arm-kernel-bounces at lists.infradead.org]
> > On Behalf Of Andrew Lunn
> > Sent: Tuesday, September 19, 2017 3:18 PM
> > To: Razvan Stefanescu <razvan.stefanescu@nxp.com>
> > Cc: devel at driverdev.osuosl.org; Ruxandra Ioana Radulescu
> > <ruxandra.radulescu@nxp.com>; arnd at arndb.de; gregkh at linuxfoundation.org;
> > Alexandru Marginean <alexandru.marginean@nxp.com>; linux-
> > kernel at vger.kernel.org; agraf at suse.de; stuyoder at gmail.com; Bogdan
> > Purcareata <bogdan.purcareata@nxp.com>; linux-arm-
> > kernel at lists.infradead.org; Laurentiu Tudor <laurentiu.tudor@nxp.com>
> > Subject: Re: [PATCH 5/6] staging: fsl-dpaa2/ethsw: Add README
> > 
> > On Tue, Sep 19, 2017 at 12:01:37PM +0300, Razvan Stefanescu wrote:
> > > +Driver uses the switch device driver model and exposes each switch port as
> > > +a network interface, which can be included in a bridge. Traffic switched
> > > +between ports is offloaded into the hardware. Exposed network interfaces
> > > +are not used for I/O, they are used just for configuration. This
> > > +limitation is going to be addressed in the future.
> > 
> > Hi Razvan
> > 
> > Could you briefly describe how Ethernet frames get from the CPU to the
> > switch. This is what decided if you should write a plain switchdev
> > driver, or a DSA driver.
> > 
> > 	Andrew
> > 
> Hello Andrew,
> 
> CPU frame handling will be added in a later. Each netdevice associated 
> to a switch port will have I/O capabilities like dpaa2-ethernet devices.
> The dpaa2-ethsw will use ACLs to redirect specific types of frames
> (i.e BPDUs) to CPU.

Hi Razvan

I looked at the architecture documentation after i posted this
email. It looks like each switch port will get its own DMA queues, etc
on the host. It is not sharing one host interface to get packets to
the switch, which is what DSA does. So a pure switchdev driver is the
correct solution here.

      Andrew

  reply	other threads:[~2017-10-03 12:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-19  9:01 [PATCH 0/6] staging: Introduce DPAA2 Ethernet Switch driver Razvan Stefanescu
2017-09-19  9:01 ` [PATCH 1/6] staging: fsl-dpaa2/ethsw: Add APIs for DPSW object Razvan Stefanescu
2017-09-19  9:01 ` [PATCH 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver Razvan Stefanescu
2017-09-19  9:01 ` [PATCH 3/6] staging: fsl-dpaa2/ethsw: Add ethtool support Razvan Stefanescu
2017-09-19  9:01 ` [PATCH 4/6] staging: fsl-dpaa2/ethsw: Add maintainer for Ethernet Switch driver Razvan Stefanescu
2017-09-19  9:01 ` [PATCH 5/6] staging: fsl-dpaa2/ethsw: Add README Razvan Stefanescu
2017-09-19 12:17   ` Andrew Lunn
     [not found]     ` <AM5PR0402MB26917E7523D582ABB0A3D0D2EC720@AM5PR0402MB2691.eurprd04.prod.outlook.com>
2017-10-03 10:07       ` Razvan Stefanescu
2017-10-03 12:38         ` Andrew Lunn [this message]
2017-09-19  9:01 ` [PATCH 6/6] staging: fsl-dpaa2/ethsw: Add TODO Razvan Stefanescu
2017-09-19 12:27 ` [PATCH 0/6] staging: Introduce DPAA2 Ethernet Switch driver Andrew Lunn

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=20171003123836.GD13548@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).