lkml.org 
[lkml]   [2021]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [V2 net-next] net: mvpp2: Add reserved port private flag configuration
On Thu, Mar 11, 2021 at 06:43:27PM +0200, stefanc@marvell.com wrote:
> From: Stefan Chulski <stefanc@marvell.com>

Hi Stefan

Thanks for the strings change. Looks a lot better.

Now i took a look at the bigger picture.

> According to Armada SoC architecture and design, all the PPv2 ports
> which are populated on the same communication processor silicon die
> (CP11x) share the same Classifier and Parser engines.
>
> Armada is an embedded platform and therefore there is a need to reserve
> some of the PPv2 ports for different use cases.
>
> For example, a port can be reserved for a CM3 CPU running FreeRTOS
> for management purposes

So the CM3 CPU has its own driver for this hardware? It seems like we
should not even instantiate the Linux driver for this port. Does the
CM3 have its own DT blob? I think the better solution is that the
Armada DT for the board does not list the port, and the DT for the CM3
does. Linux never sees the port, since Linux should not be using it.

> or by user-space data plane application.

You mean XDP/AF_XDP? I don't see any other XDP capable drivers having
a flag like this. If this was required, i would expect it to be a
common properly, not driver private.

Andrew

\
 
 \ /
  Last update: 2021-03-11 18:01    [W:0.090 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site