Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-11-10 Thread Florian Fainelli
On 11/1/2020 8:13 AM, Vladimir Oltean wrote: > On Sun, Nov 01, 2020 at 05:39:06PM +0200, Ido Schimmel wrote: >> You also wondered which indication you would get down to the driver that >> eventually needs to program the hardware to get the packets: >> >> "Who will notify me of these multicast ad

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-11-01 Thread Vladimir Oltean
On Sun, Nov 01, 2020 at 05:39:06PM +0200, Ido Schimmel wrote: > You also wondered which indication you would get down to the driver that > eventually needs to program the hardware to get the packets: > > "Who will notify me of these multicast addresses if I'm bridged and I > need to terminate L2 o

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-11-01 Thread Ido Schimmel
On Sun, Nov 01, 2020 at 05:04:42PM +0200, Vladimir Oltean wrote: > On Sun, Nov 01, 2020 at 04:42:17PM +0200, Ido Schimmel wrote: > > If the goal of this thread is to get packet sockets to work with > > offloaded traffic, then I think you need to teach these sockets to > > instruct the bound device

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-11-01 Thread Vladimir Oltean
On Sun, Nov 01, 2020 at 04:42:17PM +0200, Ido Schimmel wrote: > If the goal of this thread is to get packet sockets to work with > offloaded traffic, then I think you need to teach these sockets to > instruct the bound device to trap / mirror incoming traffic to the CPU. > Maybe via a new ndo. A n

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-11-01 Thread Ido Schimmel
On Sun, Nov 01, 2020 at 02:06:44PM +0200, Vladimir Oltean wrote: > On Sun, Nov 01, 2020 at 01:27:31PM +0200, Ido Schimmel wrote: > > IIRC, getting PTP to work on bridged interfaces is tricky and this is > > something that is not currently supported by mlxsw or Cumulus: > > https://github.com/Mellan

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-11-01 Thread Vladimir Oltean
On Sun, Nov 01, 2020 at 01:27:31PM +0200, Ido Schimmel wrote: > IIRC, getting PTP to work on bridged interfaces is tricky and this is > something that is not currently supported by mlxsw or Cumulus: > https://github.com/Mellanox/mlxsw/wiki/Precision-Time-Protocol#configuring-ptp > https://docs.cumu

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-11-01 Thread Ido Schimmel
On Wed, Oct 28, 2020 at 08:46:44PM +0200, Vladimir Oltean wrote: > On Wed, Oct 28, 2020 at 04:43:38PM +0200, Ido Schimmel wrote: > > In "standalone" mode your netdev is like any other netdev and if it does > > not support Rx filtering, then pass everything to the CPU and let it > > filter what it d

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-10-28 Thread Vladimir Oltean
On Wed, Oct 28, 2020 at 04:43:38PM +0200, Ido Schimmel wrote: > In "standalone" mode your netdev is like any other netdev and if it does > not support Rx filtering, then pass everything to the CPU and let it > filter what it does not want to see. I don't see the problem. This is > exactly what mlx

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-10-28 Thread Ido Schimmel
On Tue, Oct 27, 2020 at 01:52:49PM +0200, Vladimir Oltean wrote: > Hi Ido, Hello, > > On Mon, Jul 27, 2020 at 07:56:38PM +0300, Ido Schimmel wrote: > > > The whole purpose of my patch series is to remove the CPU port from the > > > flood domain of all switchdev net_devices. That means, when an u

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-10-27 Thread Vladimir Oltean
Hi Ido, On Mon, Jul 27, 2020 at 07:56:38PM +0300, Ido Schimmel wrote: > > The whole purpose of my patch series is to remove the CPU port from the > > flood domain of all switchdev net_devices. That means, when an unknown > > unicast packet ingresses, it will be flooded but not to the CPU. > > Go

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-07-27 Thread Ido Schimmel
On Mon, Jul 20, 2020 at 01:00:37PM +0300, Vladimir Oltean wrote: > On Thu, May 28, 2020 at 05:37:18PM +0300, Ido Schimmel wrote: > > On Wed, May 27, 2020 at 02:36:53PM +0300, Vladimir Oltean wrote: > > > On Tue, 26 May 2020 at 17:02, Ido Schimmel wrote: > > > > > > > > On Mon, May 25, 2020 at 11:2

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-07-20 Thread Vladimir Oltean
On Thu, May 28, 2020 at 05:37:18PM +0300, Ido Schimmel wrote: > On Wed, May 27, 2020 at 02:36:53PM +0300, Vladimir Oltean wrote: > > On Tue, 26 May 2020 at 17:02, Ido Schimmel wrote: > > > > > > On Mon, May 25, 2020 at 11:23:34PM +0300, Vladimir Oltean wrote: > > > > Hi Ido, > > > > > > > > On Mon

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-28 Thread Ido Schimmel
On Wed, May 27, 2020 at 02:36:53PM +0300, Vladimir Oltean wrote: > On Tue, 26 May 2020 at 17:02, Ido Schimmel wrote: > > > > On Mon, May 25, 2020 at 11:23:34PM +0300, Vladimir Oltean wrote: > > > Hi Ido, > > > > > > On Mon, 25 May 2020 at 22:48, Ido Schimmel wrote: > > > > > > > > On Sun, May 24,

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-27 Thread Vladimir Oltean
On Tue, 26 May 2020 at 17:02, Ido Schimmel wrote: > > On Mon, May 25, 2020 at 11:23:34PM +0300, Vladimir Oltean wrote: > > Hi Ido, > > > > On Mon, 25 May 2020 at 22:48, Ido Schimmel wrote: > > > > > > On Sun, May 24, 2020 at 07:24:27PM +0300, Vladimir Oltean wrote: > > > > On Sun, 24 May 2020 at

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-26 Thread Ido Schimmel
On Mon, May 25, 2020 at 11:23:34PM +0300, Vladimir Oltean wrote: > Hi Ido, > > On Mon, 25 May 2020 at 22:48, Ido Schimmel wrote: > > > > On Sun, May 24, 2020 at 07:24:27PM +0300, Vladimir Oltean wrote: > > > On Sun, 24 May 2020 at 17:07, Ido Schimmel wrote: > > > > > > > > On Fri, May 22, 2020 a

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-25 Thread Vladimir Oltean
Hi Ido, On Mon, 25 May 2020 at 22:48, Ido Schimmel wrote: > > On Sun, May 24, 2020 at 07:24:27PM +0300, Vladimir Oltean wrote: > > On Sun, 24 May 2020 at 17:07, Ido Schimmel wrote: > > > > > > On Fri, May 22, 2020 at 12:10:23AM +0300, Vladimir Oltean wrote: > > > > From: Vladimir Oltean > > > >

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-25 Thread Ido Schimmel
On Sun, May 24, 2020 at 07:24:27PM +0300, Vladimir Oltean wrote: > On Sun, 24 May 2020 at 17:07, Ido Schimmel wrote: > > > > On Fri, May 22, 2020 at 12:10:23AM +0300, Vladimir Oltean wrote: > > > From: Vladimir Oltean > > > > > > This is a WIP series whose stated goal is to allow DSA and switchde

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-24 Thread Vladimir Oltean
Hi Florian, On Sun, 24 May 2020 at 19:13, Florian Fainelli wrote: > > Hi Vladimir, > > On 5/21/2020 2:10 PM, Vladimir Oltean wrote: > > From: Vladimir Oltean > > > > This is a WIP series whose stated goal is to allow DSA and switchdev > > drivers to flood less traffic to the CPU while keeping th

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-24 Thread Vladimir Oltean
On Sun, 24 May 2020 at 17:07, Ido Schimmel wrote: > > On Fri, May 22, 2020 at 12:10:23AM +0300, Vladimir Oltean wrote: > > From: Vladimir Oltean > > > > This is a WIP series whose stated goal is to allow DSA and switchdev > > drivers to flood less traffic to the CPU while keeping the same level o

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-24 Thread Florian Fainelli
Hi Vladimir, On 5/21/2020 2:10 PM, Vladimir Oltean wrote: > From: Vladimir Oltean > > This is a WIP series whose stated goal is to allow DSA and switchdev > drivers to flood less traffic to the CPU while keeping the same level of > functionality. > > The strategy is to whitelist towards the CPU

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-24 Thread Ido Schimmel
On Fri, May 22, 2020 at 12:10:23AM +0300, Vladimir Oltean wrote: > From: Vladimir Oltean > > This is a WIP series whose stated goal is to allow DSA and switchdev > drivers to flood less traffic to the CPU while keeping the same level of > functionality. > > The strategy is to whitelist towards t

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-22 Thread Allan W. Nielsen
Hi Vladimir, I'm very happy to see that you started working on this. Let me know if you need help to update the Ocelot/Felix driver to support this. /Allan On 22.05.2020 00:10, Vladimir Oltean wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe F

[PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-05-21 Thread Vladimir Oltean
From: Vladimir Oltean This is a WIP series whose stated goal is to allow DSA and switchdev drivers to flood less traffic to the CPU while keeping the same level of functionality. The strategy is to whitelist towards the CPU only the {DMAC, VLAN} pairs that the operating system has expressed its