Re: [PATCH 08/20] octeontx2-af: Alloc and config NPC MCAM entry at a time

2018-11-12 Thread Sunil Kovvuri
On Sat, Nov 10, 2018 at 2:36 AM Arnd Bergmann wrote: > > On Fri, Nov 9, 2018 at 6:13 PM Sunil Kovvuri wrote: > > On Fri, Nov 9, 2018 at 4:32 PM Arnd Bergmann wrote: > > > On Fri, Nov 9, 2018 at 5:21 AM Sunil Kovvuri > > > wrote: > > > > > > > Since b is aligned to four bytes, you get padding b

Re: [PATCH 08/20] octeontx2-af: Alloc and config NPC MCAM entry at a time

2018-11-09 Thread Arnd Bergmann
On Fri, Nov 9, 2018 at 6:13 PM Sunil Kovvuri wrote: > On Fri, Nov 9, 2018 at 4:32 PM Arnd Bergmann wrote: > > On Fri, Nov 9, 2018 at 5:21 AM Sunil Kovvuri > > wrote: > > > > Since b is aligned to four bytes, you get padding between a and b. > > On top of that, you also get padding after c to m

Re: [PATCH 08/20] octeontx2-af: Alloc and config NPC MCAM entry at a time

2018-11-09 Thread Sunil Kovvuri
On Fri, Nov 9, 2018 at 4:32 PM Arnd Bergmann wrote: > > On Fri, Nov 9, 2018 at 5:21 AM Sunil Kovvuri wrote: > > > > On Fri, Nov 9, 2018 at 2:13 AM Arnd Bergmann wrote: > > > > > > On Thu, Nov 8, 2018 at 7:37 PM wrote: > > > > @@ -666,4 +668,20 @@ struct npc_mcam_unmap_counter_req { > > > >

Re: [PATCH 08/20] octeontx2-af: Alloc and config NPC MCAM entry at a time

2018-11-09 Thread Arnd Bergmann
On Fri, Nov 9, 2018 at 5:21 AM Sunil Kovvuri wrote: > > On Fri, Nov 9, 2018 at 2:13 AM Arnd Bergmann wrote: > > > > On Thu, Nov 8, 2018 at 7:37 PM wrote: > > > @@ -666,4 +668,20 @@ struct npc_mcam_unmap_counter_req { > > > u8 all; /* Unmap all entries using this counter ? */ > > > };

Re: [PATCH 08/20] octeontx2-af: Alloc and config NPC MCAM entry at a time

2018-11-08 Thread Sunil Kovvuri
On Fri, Nov 9, 2018 at 2:13 AM Arnd Bergmann wrote: > > On Thu, Nov 8, 2018 at 7:37 PM wrote: > > @@ -666,4 +668,20 @@ struct npc_mcam_unmap_counter_req { > > u8 all; /* Unmap all entries using this counter ? */ > > }; > > > > +struct npc_mcam_alloc_and_write_entry_req { > > + s

Re: [PATCH 08/20] octeontx2-af: Alloc and config NPC MCAM entry at a time

2018-11-08 Thread Arnd Bergmann
On Thu, Nov 8, 2018 at 7:37 PM wrote: > @@ -666,4 +668,20 @@ struct npc_mcam_unmap_counter_req { > u8 all; /* Unmap all entries using this counter ? */ > }; > > +struct npc_mcam_alloc_and_write_entry_req { > + struct mbox_msghdr hdr; > + struct mcam_entry entry_data; > +

[PATCH 08/20] octeontx2-af: Alloc and config NPC MCAM entry at a time

2018-11-08 Thread sunil . kovvuri
From: Sunil Goutham A new mailbox message is added to support allocating a MCAM entry along with a counter and configuring it in one go. This reduces the amount of mailbox communication involved in installing a new MCAM rule. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeon