mbox series

[v10,00/14] net/cpfl: add hairpin queue support

Message ID 20230606100324.67659-1-beilei.xing@intel.com (mailing list archive)
Headers
Series net/cpfl: add hairpin queue support |

Message

Xing, Beilei June 6, 2023, 10:03 a.m. UTC
  From: Beilei Xing <beilei.xing@intel.com>

This patchset adds hairpin queue support.

v2 changes:
 - change hairpin rx queus configuration sequence.
 - code refine.

v3 changes:
 - Refine the patchset based on the latest code.

v4 change:
 - Remove hairpin rx buffer queue's sw_ring.
 - Change hairpin rx queus configuration sequence in cpfl_hairpin_bind function.
 - Refind hairpin queue setup and release.

v5 change:
 - Fix memory leak during queue setup.
 - Refine hairpin Rxq/Txq start/stop.

v6 change:
 - Add sign-off.

v7 change:
 - Update cpfl.rst

v8 change:
 - Fix Intel-compilation failure.

v9 change:
 - Fix memory leak if fail to init queue group.
 - Change log level.

v10 change:
 - Avoid accessing out-of-bounds.

Beilei Xing (14):
  net/cpfl: refine structures
  common/idpf: support queue groups add/delete
  net/cpfl: add haipin queue group during vport init
  net/cpfl: support hairpin queue capbility get
  net/cpfl: support hairpin queue setup and release
  common/idpf: add queue config API
  net/cpfl: support hairpin queue configuration
  common/idpf: add switch queue API
  net/cpfl: support hairpin queue start/stop
  common/idpf: add irq map config API
  net/cpfl: enable write back based on ITR expire
  net/cpfl: support peer ports get
  net/cpfl: support hairpin bind/unbind
  doc: update the doc of CPFL PMD

 doc/guides/nics/cpfl.rst                   |   7 +
 drivers/common/idpf/idpf_common_device.c   |  75 ++
 drivers/common/idpf/idpf_common_device.h   |   4 +
 drivers/common/idpf/idpf_common_virtchnl.c | 138 +++-
 drivers/common/idpf/idpf_common_virtchnl.h |  18 +
 drivers/common/idpf/version.map            |   6 +
 drivers/net/cpfl/cpfl_ethdev.c             | 613 ++++++++++++++--
 drivers/net/cpfl/cpfl_ethdev.h             |  35 +-
 drivers/net/cpfl/cpfl_rxtx.c               | 789 +++++++++++++++++++--
 drivers/net/cpfl/cpfl_rxtx.h               |  76 ++
 drivers/net/cpfl/cpfl_rxtx_vec_common.h    |  21 +-
 11 files changed, 1663 insertions(+), 119 deletions(-)
  

Comments

Jingjing Wu June 6, 2023, 6:40 a.m. UTC | #1
> -----Original Message-----
> From: Xing, Beilei <beilei.xing@intel.com>
> Sent: Tuesday, June 6, 2023 6:03 PM
> To: Wu, Jingjing <jingjing.wu@intel.com>
> Cc: dev@dpdk.org; Liu, Mingxia <mingxia.liu@intel.com>; Xing, Beilei
> <beilei.xing@intel.com>
> Subject: [PATCH v10 00/14] net/cpfl: add hairpin queue support
> 
> From: Beilei Xing <beilei.xing@intel.com>
> 
> This patchset adds hairpin queue support.
> 
> v2 changes:
>  - change hairpin rx queus configuration sequence.
>  - code refine.
> 
> v3 changes:
>  - Refine the patchset based on the latest code.
> 
> v4 change:
>  - Remove hairpin rx buffer queue's sw_ring.
>  - Change hairpin rx queus configuration sequence in cpfl_hairpin_bind function.
>  - Refind hairpin queue setup and release.
> 
> v5 change:
>  - Fix memory leak during queue setup.
>  - Refine hairpin Rxq/Txq start/stop.
> 
> v6 change:
>  - Add sign-off.
> 
> v7 change:
>  - Update cpfl.rst
> 
> v8 change:
>  - Fix Intel-compilation failure.
> 
> v9 change:
>  - Fix memory leak if fail to init queue group.
>  - Change log level.
> 
> v10 change:
>  - Avoid accessing out-of-bounds.
> 
> Beilei Xing (14):
>   net/cpfl: refine structures
>   common/idpf: support queue groups add/delete
>   net/cpfl: add haipin queue group during vport init
>   net/cpfl: support hairpin queue capbility get
>   net/cpfl: support hairpin queue setup and release
>   common/idpf: add queue config API
>   net/cpfl: support hairpin queue configuration
>   common/idpf: add switch queue API
>   net/cpfl: support hairpin queue start/stop
>   common/idpf: add irq map config API
>   net/cpfl: enable write back based on ITR expire
>   net/cpfl: support peer ports get
>   net/cpfl: support hairpin bind/unbind
>   doc: update the doc of CPFL PMD
> 
>  doc/guides/nics/cpfl.rst                   |   7 +
>  drivers/common/idpf/idpf_common_device.c   |  75 ++
>  drivers/common/idpf/idpf_common_device.h   |   4 +
>  drivers/common/idpf/idpf_common_virtchnl.c | 138 +++-
>  drivers/common/idpf/idpf_common_virtchnl.h |  18 +
>  drivers/common/idpf/version.map            |   6 +
>  drivers/net/cpfl/cpfl_ethdev.c             | 613 ++++++++++++++--
>  drivers/net/cpfl/cpfl_ethdev.h             |  35 +-
>  drivers/net/cpfl/cpfl_rxtx.c               | 789 +++++++++++++++++++--
>  drivers/net/cpfl/cpfl_rxtx.h               |  76 ++
>  drivers/net/cpfl/cpfl_rxtx_vec_common.h    |  21 +-
>  11 files changed, 1663 insertions(+), 119 deletions(-)
> 
> --
> 2.26.2

Acked-by: Jingjing Wu <jingjing.wu@intel.com>
  
Qi Zhang June 7, 2023, 7:16 a.m. UTC | #2
> -----Original Message-----
> From: Wu, Jingjing <jingjing.wu@intel.com>
> Sent: Tuesday, June 6, 2023 2:41 PM
> To: Xing, Beilei <beilei.xing@intel.com>
> Cc: dev@dpdk.org; Liu, Mingxia <mingxia.liu@intel.com>
> Subject: RE: [PATCH v10 00/14] net/cpfl: add hairpin queue support
> 
> 
> 
> > -----Original Message-----
> > From: Xing, Beilei <beilei.xing@intel.com>
> > Sent: Tuesday, June 6, 2023 6:03 PM
> > To: Wu, Jingjing <jingjing.wu@intel.com>
> > Cc: dev@dpdk.org; Liu, Mingxia <mingxia.liu@intel.com>; Xing, Beilei
> > <beilei.xing@intel.com>
> > Subject: [PATCH v10 00/14] net/cpfl: add hairpin queue support
> >
> > From: Beilei Xing <beilei.xing@intel.com>
> >
> > This patchset adds hairpin queue support.
> >
> > v2 changes:
> >  - change hairpin rx queus configuration sequence.
> >  - code refine.
> >
> > v3 changes:
> >  - Refine the patchset based on the latest code.
> >
> > v4 change:
> >  - Remove hairpin rx buffer queue's sw_ring.
> >  - Change hairpin rx queus configuration sequence in cpfl_hairpin_bind
> function.
> >  - Refind hairpin queue setup and release.
> >
> > v5 change:
> >  - Fix memory leak during queue setup.
> >  - Refine hairpin Rxq/Txq start/stop.
> >
> > v6 change:
> >  - Add sign-off.
> >
> > v7 change:
> >  - Update cpfl.rst
> >
> > v8 change:
> >  - Fix Intel-compilation failure.
> >
> > v9 change:
> >  - Fix memory leak if fail to init queue group.
> >  - Change log level.
> >
> > v10 change:
> >  - Avoid accessing out-of-bounds.
> >
> > Beilei Xing (14):
> >   net/cpfl: refine structures
> >   common/idpf: support queue groups add/delete
> >   net/cpfl: add haipin queue group during vport init
> >   net/cpfl: support hairpin queue capbility get
> >   net/cpfl: support hairpin queue setup and release
> >   common/idpf: add queue config API
> >   net/cpfl: support hairpin queue configuration
> >   common/idpf: add switch queue API
> >   net/cpfl: support hairpin queue start/stop
> >   common/idpf: add irq map config API
> >   net/cpfl: enable write back based on ITR expire
> >   net/cpfl: support peer ports get
> >   net/cpfl: support hairpin bind/unbind
> >   doc: update the doc of CPFL PMD
> >
> >  doc/guides/nics/cpfl.rst                   |   7 +
> >  drivers/common/idpf/idpf_common_device.c   |  75 ++
> >  drivers/common/idpf/idpf_common_device.h   |   4 +
> >  drivers/common/idpf/idpf_common_virtchnl.c | 138 +++-
> > drivers/common/idpf/idpf_common_virtchnl.h |  18 +
> >  drivers/common/idpf/version.map            |   6 +
> >  drivers/net/cpfl/cpfl_ethdev.c             | 613 ++++++++++++++--
> >  drivers/net/cpfl/cpfl_ethdev.h             |  35 +-
> >  drivers/net/cpfl/cpfl_rxtx.c               | 789 +++++++++++++++++++--
> >  drivers/net/cpfl/cpfl_rxtx.h               |  76 ++
> >  drivers/net/cpfl/cpfl_rxtx_vec_common.h    |  21 +-
> >  11 files changed, 1663 insertions(+), 119 deletions(-)
> >
> > --
> > 2.26.2
> 
> Acked-by: Jingjing Wu <jingjing.wu@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi