Re: [PATCH 11/20] octeontx2-af: Add support for stripping STAG/CTAG

2018-11-09 Thread Sunil Kovvuri
On Fri, Nov 9, 2018 at 4:42 PM Arnd Bergmann wrote: > > On Fri, Nov 9, 2018 at 5:29 AM Sunil Kovvuri wrote: > > On Fri, Nov 9, 2018 at 2:17 AM Arnd Bergmann wrote: > > > On Thu, Nov 8, 2018 at 7:37 PM wrote: > > > > > > > Here is another instance of bitfields in an interface structure. As > >

Re: [PATCH 11/20] octeontx2-af: Add support for stripping STAG/CTAG

2018-11-09 Thread Arnd Bergmann
On Fri, Nov 9, 2018 at 5:29 AM Sunil Kovvuri wrote: > On Fri, Nov 9, 2018 at 2:17 AM Arnd Bergmann wrote: > > On Thu, Nov 8, 2018 at 7:37 PM wrote: > > > > Here is another instance of bitfields in an interface structure. As > > before, please try to avoid doing that and use bit shifts and

Re: [PATCH 11/20] octeontx2-af: Add support for stripping STAG/CTAG

2018-11-08 Thread Sunil Kovvuri
On Fri, Nov 9, 2018 at 2:17 AM Arnd Bergmann wrote: > > On Thu, Nov 8, 2018 at 7:37 PM wrote: > > > diff --git a/drivers/net/ethernet/marvell/octeontx2/af/npc.h > > b/drivers/net/ethernet/marvell/octeontx2/af/npc.h > > index f98b011..3f7e5e6 100644 > > ---

Re: [PATCH 11/20] octeontx2-af: Add support for stripping STAG/CTAG

2018-11-08 Thread Arnd Bergmann
On Thu, Nov 8, 2018 at 7:37 PM wrote: > diff --git a/drivers/net/ethernet/marvell/octeontx2/af/npc.h > b/drivers/net/ethernet/marvell/octeontx2/af/npc.h > index f98b011..3f7e5e6 100644 > --- a/drivers/net/ethernet/marvell/octeontx2/af/npc.h > +++

[PATCH 11/20] octeontx2-af: Add support for stripping STAG/CTAG

2018-11-08 Thread sunil . kovvuri
From: Tomasz Duszynski This works by shadowing existing UCAST MCAM entry with a new one additionally matching either NPC_LT_LB_CTAG or NPC_LT_LB_STAG. For this to fully work one needs to send properly configured NIX_VTAG_CFG message afterwards i.e with strip and capture enabled and type set to