Re: [PATCH net-next v3 1/2] net: mscc: ocelot: Add support for tcam

2020-09-26 Thread Horatiu Vultur
The 09/26/2020 15:37, Vladimir Oltean wrote: > > Hi Horatiu, Hi Vladimir, > > On Sat, Sep 26, 2020 at 01:20:02PM +0200, Horatiu Vultur wrote: > > To be honest, I don't remember precisely. I will need to setup a board > > and see exactly. But from what I remember: > > - according to this[1] in c

Re: [PATCH net-next v3 1/2] net: mscc: ocelot: Add support for tcam

2020-09-26 Thread Vladimir Oltean
Hi Horatiu, On Sat, Sep 26, 2020 at 08:55:36PM +0200, Horatiu Vultur wrote: > No, you will always have 4 Type-Group values regardless of number of > entries per row(1, 2 or 4). I think this one phrase explains it for me. > I am not sure that I understand what you want to achive with this or > so

Re: [PATCH net-next v3 1/2] net: mscc: ocelot: Add support for tcam

2020-09-26 Thread Horatiu Vultur
The 09/25/2020 02:39, Vladimir Oltean wrote: > Hi Vladimir, > Hi Horatiu, > > On Thu, Apr 23, 2020 at 10:29:48AM +0200, Horatiu Vultur wrote: > > > > +static const struct vcap_props vcap_is2 = { > > > > + .name = "IS2", > > > > + .tg_width = 2, > > > > + .sw_count = 4, > > > >

Re: [PATCH net-next v3 1/2] net: mscc: ocelot: Add support for tcam

2020-09-26 Thread Vladimir Oltean
Hi Horatiu, On Sat, Sep 26, 2020 at 01:20:02PM +0200, Horatiu Vultur wrote: > To be honest, I don't remember precisely. I will need to setup a board > and see exactly. But from what I remember: > - according to this[1] in chapter 3.8.6, table 71. It says that the full > entry of IS2 is 384. And

Re: [PATCH net-next v3 1/2] net: mscc: ocelot: Add support for tcam

2020-09-24 Thread Vladimir Oltean
Hi Horatiu, On Thu, Apr 23, 2020 at 10:29:48AM +0200, Horatiu Vultur wrote: > > > +static const struct vcap_props vcap_is2 = { > > > + .name = "IS2", > > > + .tg_width = 2, > > > + .sw_count = 4, > > > + .entry_count = VCAP_IS2_CNT, > > > + .entry_words = BITS_TO_32BI