mbox series

[v2,00/25] add the extend rte_flow offload support of nfp PMD

Message ID 1666427069-10553-1-git-send-email-chaoyong.he@corigine.com (mailing list archive)
Headers
Series add the extend rte_flow offload support of nfp PMD |

Message

Chaoyong He Oct. 22, 2022, 8:24 a.m. UTC
  This is the third patch series to add the support of rte_flow offload for
nfp PMD, includes:
Add the offload support of decap/encap of VXLAN
Add the offload support of decap/encap of GENEVE
Add the offload support of decap/encap of NVGRE

Changes since v1
- Delete the modificaiton of release note.
- Modify the commit title.
- Rebase to the lastest logic.

Chaoyong He (25):
  net/nfp: support IPv4 VXLAN flow item
  net/nfp: support IPv6 VXLAN flow item
  net/nfp: prepare for IPv4 tunnel encap flow action
  net/nfp: prepare for IPv6 tunnel encap flow action
  net/nfp: support IPv4 VXLAN encap flow action
  net/nfp: support IPv6 VXLAN encap flow action
  net/nfp: prepare for IPv4 UDP tunnel decap flow action
  net/nfp: prepare for IPv6 UDP tunnel decap flow action
  net/nfp: support IPv4 VXLAN decap flow action
  net/nfp: support IPv6 VXLAN decap flow action
  net/nfp: support IPv4 GENEVE encap flow action
  net/nfp: support IPv6 GENEVE encap flow action
  net/nfp: support IPv4 GENEVE flow item
  net/nfp: support IPv6 GENEVE flow item
  net/nfp: support IPv4 GENEVE decap flow action
  net/nfp: support IPv6 GENEVE decap flow action
  net/nfp: support IPv4 NVGRE encap flow action
  net/nfp: support IPv6 NVGRE encap flow action
  net/nfp: prepare for IPv4 GRE tunnel decap flow action
  net/nfp: prepare for IPv6 GRE tunnel decap flow action
  net/nfp: support IPv4 NVGRE flow item
  net/nfp: support IPv6 NVGRE flow item
  net/nfp: support IPv4 NVGRE decap flow action
  net/nfp: support IPv6 NVGRE decap flow action
  net/nfp: support new tunnel solution

 doc/guides/nics/features/nfp.ini         |   10 +
 drivers/net/nfp/flower/nfp_flower.c      |   14 +
 drivers/net/nfp/flower/nfp_flower.h      |   24 +
 drivers/net/nfp/flower/nfp_flower_cmsg.c |  222 ++++
 drivers/net/nfp/flower/nfp_flower_cmsg.h |  415 +++++++
 drivers/net/nfp/nfp_flow.c               | 2003 +++++++++++++++++++++++++++++-
 drivers/net/nfp/nfp_flow.h               |   56 +
 7 files changed, 2675 insertions(+), 69 deletions(-)
  

Comments

Ferruh Yigit Oct. 24, 2022, 3:07 p.m. UTC | #1
On 10/22/2022 9:24 AM, Chaoyong He wrote:
> This is the third patch series to add the support of rte_flow offload for
> nfp PMD, includes:
> Add the offload support of decap/encap of VXLAN
> Add the offload support of decap/encap of GENEVE
> Add the offload support of decap/encap of NVGRE
> 
> Changes since v1
> - Delete the modificaiton of release note.
> - Modify the commit title.
> - Rebase to the lastest logic.
> 
> Chaoyong He (25):
>    net/nfp: support IPv4 VXLAN flow item
>    net/nfp: support IPv6 VXLAN flow item
>    net/nfp: prepare for IPv4 tunnel encap flow action
>    net/nfp: prepare for IPv6 tunnel encap flow action
>    net/nfp: support IPv4 VXLAN encap flow action
>    net/nfp: support IPv6 VXLAN encap flow action
>    net/nfp: prepare for IPv4 UDP tunnel decap flow action
>    net/nfp: prepare for IPv6 UDP tunnel decap flow action
>    net/nfp: support IPv4 VXLAN decap flow action
>    net/nfp: support IPv6 VXLAN decap flow action
>    net/nfp: support IPv4 GENEVE encap flow action
>    net/nfp: support IPv6 GENEVE encap flow action
>    net/nfp: support IPv4 GENEVE flow item
>    net/nfp: support IPv6 GENEVE flow item
>    net/nfp: support IPv4 GENEVE decap flow action
>    net/nfp: support IPv6 GENEVE decap flow action
>    net/nfp: support IPv4 NVGRE encap flow action
>    net/nfp: support IPv6 NVGRE encap flow action
>    net/nfp: prepare for IPv4 GRE tunnel decap flow action
>    net/nfp: prepare for IPv6 GRE tunnel decap flow action
>    net/nfp: support IPv4 NVGRE flow item
>    net/nfp: support IPv6 NVGRE flow item
>    net/nfp: support IPv4 NVGRE decap flow action
>    net/nfp: support IPv6 NVGRE decap flow action
>    net/nfp: support new tunnel solution
> 

Hi Chaoyong,

'./devtools/check-doc-vs-code.sh' tools reports some inconsistency, can 
you please fix it?
  
Chaoyong He Oct. 25, 2022, 3:17 a.m. UTC | #2
> On 10/22/2022 9:24 AM, Chaoyong He wrote:
> > This is the third patch series to add the support of rte_flow offload
> > for nfp PMD, includes:
> > Add the offload support of decap/encap of VXLAN Add the offload
> > support of decap/encap of GENEVE Add the offload support of
> > decap/encap of NVGRE
> >
> > Changes since v1
> > - Delete the modificaiton of release note.
> > - Modify the commit title.
> > - Rebase to the lastest logic.
> >
> > Chaoyong He (25):
> >    net/nfp: support IPv4 VXLAN flow item
> >    net/nfp: support IPv6 VXLAN flow item
> >    net/nfp: prepare for IPv4 tunnel encap flow action
> >    net/nfp: prepare for IPv6 tunnel encap flow action
> >    net/nfp: support IPv4 VXLAN encap flow action
> >    net/nfp: support IPv6 VXLAN encap flow action
> >    net/nfp: prepare for IPv4 UDP tunnel decap flow action
> >    net/nfp: prepare for IPv6 UDP tunnel decap flow action
> >    net/nfp: support IPv4 VXLAN decap flow action
> >    net/nfp: support IPv6 VXLAN decap flow action
> >    net/nfp: support IPv4 GENEVE encap flow action
> >    net/nfp: support IPv6 GENEVE encap flow action
> >    net/nfp: support IPv4 GENEVE flow item
> >    net/nfp: support IPv6 GENEVE flow item
> >    net/nfp: support IPv4 GENEVE decap flow action
> >    net/nfp: support IPv6 GENEVE decap flow action
> >    net/nfp: support IPv4 NVGRE encap flow action
> >    net/nfp: support IPv6 NVGRE encap flow action
> >    net/nfp: prepare for IPv4 GRE tunnel decap flow action
> >    net/nfp: prepare for IPv6 GRE tunnel decap flow action
> >    net/nfp: support IPv4 NVGRE flow item
> >    net/nfp: support IPv6 NVGRE flow item
> >    net/nfp: support IPv4 NVGRE decap flow action
> >    net/nfp: support IPv6 NVGRE decap flow action
> >    net/nfp: support new tunnel solution
> >
> 
> Hi Chaoyong,
> 
> './devtools/check-doc-vs-code.sh' tools reports some inconsistency, can you
> please fix it?

Sorry, I can't quite understand the logic of this script.
I'm quite sure I have listed the items and actions we supported in the file 'doc/guides/nics/features/nfp.ini'.

And seems it report for every nic which support rte_flow?
  
Chaoyong He Oct. 25, 2022, 3:29 a.m. UTC | #3
> > On 10/22/2022 9:24 AM, Chaoyong He wrote:
> > > This is the third patch series to add the support of rte_flow
> > > offload for nfp PMD, includes:
> > > Add the offload support of decap/encap of VXLAN Add the offload
> > > support of decap/encap of GENEVE Add the offload support of
> > > decap/encap of NVGRE
> > >
> > > Changes since v1
> > > - Delete the modificaiton of release note.
> > > - Modify the commit title.
> > > - Rebase to the lastest logic.
> > >
> > > Chaoyong He (25):
> > >    net/nfp: support IPv4 VXLAN flow item
> > >    net/nfp: support IPv6 VXLAN flow item
> > >    net/nfp: prepare for IPv4 tunnel encap flow action
> > >    net/nfp: prepare for IPv6 tunnel encap flow action
> > >    net/nfp: support IPv4 VXLAN encap flow action
> > >    net/nfp: support IPv6 VXLAN encap flow action
> > >    net/nfp: prepare for IPv4 UDP tunnel decap flow action
> > >    net/nfp: prepare for IPv6 UDP tunnel decap flow action
> > >    net/nfp: support IPv4 VXLAN decap flow action
> > >    net/nfp: support IPv6 VXLAN decap flow action
> > >    net/nfp: support IPv4 GENEVE encap flow action
> > >    net/nfp: support IPv6 GENEVE encap flow action
> > >    net/nfp: support IPv4 GENEVE flow item
> > >    net/nfp: support IPv6 GENEVE flow item
> > >    net/nfp: support IPv4 GENEVE decap flow action
> > >    net/nfp: support IPv6 GENEVE decap flow action
> > >    net/nfp: support IPv4 NVGRE encap flow action
> > >    net/nfp: support IPv6 NVGRE encap flow action
> > >    net/nfp: prepare for IPv4 GRE tunnel decap flow action
> > >    net/nfp: prepare for IPv6 GRE tunnel decap flow action
> > >    net/nfp: support IPv4 NVGRE flow item
> > >    net/nfp: support IPv6 NVGRE flow item
> > >    net/nfp: support IPv4 NVGRE decap flow action
> > >    net/nfp: support IPv6 NVGRE decap flow action
> > >    net/nfp: support new tunnel solution
> > >
> >
> > Hi Chaoyong,
> >
> > './devtools/check-doc-vs-code.sh' tools reports some inconsistency,
> > can you please fix it?
> 
> Sorry, I can't quite understand the logic of this script.
> I'm quite sure I have listed the items and actions we supported in the file
> 'doc/guides/nics/features/nfp.ini'.
> 
> And seems it report for every nic which support rte_flow?

Oh, I found the reason now.
The git version in my host is too low, I upgrade it and it can successfully run this script now.
I will revise it and sent out a new version patch, sorry for the bother.