switchdev and VLAN ranges

2015-10-09 Thread Vivien Didelot
Hi All, I understand that specifying a VLAN range on the command line is nice for the user, and it makes no big deal for software implementation. However, AFAICT a VLAN range does not make sense at all for hardware such as Ethernet switch chips. Am I wrong? I would suggest to make switchdev dire

Re: switchdev and VLAN ranges

2015-10-11 Thread Vivien Didelot
On Oct. Sunday 11 (41) 09:12 AM, Jiri Pirko wrote: > Sat, Oct 10, 2015 at 12:36:26PM CEST, niko...@cumulusnetworks.com wrote: > >On 10/10/2015 09:49 AM, Elad Raz wrote: > >> > >>> On Oct 10, 2015, at 2:30 AM, Vivien Didelot > >>> wrote: > >>> > >>> I have two concerns in mind: > >>> > >>> a) if

Re: switchdev and VLAN ranges

2015-10-11 Thread Nikolay Aleksandrov
On 10/12/2015 12:41 AM, Vivien Didelot wrote: > On Oct. Sunday 11 (41) 09:12 AM, Jiri Pirko wrote: >> Sat, Oct 10, 2015 at 12:36:26PM CEST, niko...@cumulusnetworks.com wrote: >>> On 10/10/2015 09:49 AM, Elad Raz wrote: > On Oct 10, 2015, at 2:30 AM, Vivien Didelot > wrote: >

Re: switchdev and VLAN ranges

2015-10-11 Thread Scott Feldman
On Sun, Oct 11, 2015 at 5:13 PM, Nikolay Aleksandrov wrote: > On 10/12/2015 12:41 AM, Vivien Didelot wrote: >> On Oct. Sunday 11 (41) 09:12 AM, Jiri Pirko wrote: >>> Sat, Oct 10, 2015 at 12:36:26PM CEST, niko...@cumulusnetworks.com wrote: On 10/10/2015 09:49 AM, Elad Raz wrote: > >> O

Re: switchdev and VLAN ranges

2015-10-12 Thread Nikolay Aleksandrov
On 10/12/2015 07:14 AM, Scott Feldman wrote: > On Sun, Oct 11, 2015 at 5:13 PM, Nikolay Aleksandrov > wrote: >> On 10/12/2015 12:41 AM, Vivien Didelot wrote: >>> On Oct. Sunday 11 (41) 09:12 AM, Jiri Pirko wrote: Sat, Oct 10, 2015 at 12:36:26PM CEST, niko...@cumulusnetworks.com wrote: > O

Re: switchdev and VLAN ranges

2015-10-09 Thread Scott Feldman
On Fri, Oct 9, 2015 at 4:30 PM, Vivien Didelot wrote: > Hi All, > > I understand that specifying a VLAN range on the command line is nice > for the user, and it makes no big deal for software implementation. [Adding Roopa, since she did the original vlan range support in the kernel/iproute2] > H

Re: switchdev and VLAN ranges

2015-10-10 Thread Elad Raz
> On Oct 10, 2015, at 2:30 AM, Vivien Didelot > wrote: > > I have two concerns in mind: > > a) if we imagine that drivers like Rocker allocate memory in the prepare > phase for each VID, preparing a range like 100-4000 would definitely not > be recommended. > > b) imagine that you have two Li

Re: switchdev and VLAN ranges

2015-10-10 Thread Nikolay Aleksandrov
On 10/10/2015 09:49 AM, Elad Raz wrote: > >> On Oct 10, 2015, at 2:30 AM, Vivien Didelot >> wrote: >> >> I have two concerns in mind: >> >> a) if we imagine that drivers like Rocker allocate memory in the prepare >> phase for each VID, preparing a range like 100-4000 would definitely not >> be r

Re: switchdev and VLAN ranges

2015-10-10 Thread Vivien Didelot
On Oct. Friday 09 (41) 09:22 PM, Scott Feldman wrote: > On Fri, Oct 9, 2015 at 4:30 PM, Vivien Didelot > wrote: > > Hi All, > > > > I understand that specifying a VLAN range on the command line is nice > > for the user, and it makes no big deal for software implementation. > > [Adding Roopa, sinc

Re: switchdev and VLAN ranges

2015-10-10 Thread Florian Fainelli
2015-10-10 9:33 GMT-07:00 Vivien Didelot : > On Oct. Friday 09 (41) 09:22 PM, Scott Feldman wrote: >> On Fri, Oct 9, 2015 at 4:30 PM, Vivien Didelot >> wrote: >> > Hi All, >> > >> > I understand that specifying a VLAN range on the command line is nice >> > for the user, and it makes no big deal fo

Re: switchdev and VLAN ranges

2015-10-10 Thread Vivien Didelot
On Oct. Saturday 10 (41) 11:10 AM, Florian Fainelli wrote: > 2015-10-10 9:33 GMT-07:00 Vivien Didelot > : > > On Oct. Friday 09 (41) 09:22 PM, Scott Feldman wrote: > >> On Fri, Oct 9, 2015 at 4:30 PM, Vivien Didelot > >> wrote: > >> > Hi All, > >> > > >> > I understand that specifying a VLAN rang

Re: switchdev and VLAN ranges

2015-10-11 Thread Jiri Pirko
Sat, Oct 10, 2015 at 12:36:26PM CEST, niko...@cumulusnetworks.com wrote: >On 10/10/2015 09:49 AM, Elad Raz wrote: >> >>> On Oct 10, 2015, at 2:30 AM, Vivien Didelot >>> wrote: >>> >>> I have two concerns in mind: >>> >>> a) if we imagine that drivers like Rocker allocate memory in the prepare >>