mbox series

[v6,0/4] enable FIFO for NTB

Message ID 20190926032022.104495-1-xiaoyun.li@intel.com (mailing list archive)
Headers
Series enable FIFO for NTB |

Message

Li, Xiaoyun Sept. 26, 2019, 3:20 a.m. UTC
  Enable FIFO for NTB rawdev driver to support packet based
processing. And an example is provided to support txonly,
rxonly, iofwd between NTB device and ethdev, and file
transmission.

Acked-by: Omkar Maslekar <omkar.maslekar@intel.com>

---
v6:
 * Fixed xstats reset typo.
 * Fixed free functions when error happens.
 * Added missing info in doc.

v5:
 * Added missing free function when error happens.
 * Reworked on xstats reset and get to avoid competition of reset and
 * en/dequeue.
 * Added missing info in doc.

v4:
 * Fixed compile issues with 32-bit machine.
 * Fixed total xstats issue.

v3:
 * Replace strncpy with memcpy to avoid gcc-9 compile issue.

v2:
 * Fixed compile issues with 32-bit machine and lack of including file.
 * Fixed a typo.

Xiaoyun Li (4):
  raw/ntb: setup ntb queue
  raw/ntb: add xstats support
  raw/ntb: add enqueue and dequeue functions
  examples/ntb: support more functions for NTB

 doc/guides/rawdevs/ntb.rst             |   93 +-
 doc/guides/rel_notes/release_19_11.rst |    4 +
 doc/guides/sample_app_ug/ntb.rst       |   59 +-
 drivers/raw/ntb/Makefile               |    3 +
 drivers/raw/ntb/meson.build            |    1 +
 drivers/raw/ntb/ntb.c                  | 1130 ++++++++++++++++-----
 drivers/raw/ntb/ntb.h                  |  163 ++-
 drivers/raw/ntb/ntb_hw_intel.c         |   48 +-
 drivers/raw/ntb/rte_pmd_ntb.h          |   43 +
 examples/ntb/meson.build               |    3 +
 examples/ntb/ntb_fwd.c                 | 1298 +++++++++++++++++++++---
 11 files changed, 2428 insertions(+), 417 deletions(-)
 create mode 100644 drivers/raw/ntb/rte_pmd_ntb.h
  

Comments

Jingjing Wu Sept. 26, 2019, 4:04 a.m. UTC | #1
> -----Original Message-----
> From: Li, Xiaoyun
> Sent: Thursday, September 26, 2019 11:20 AM
> To: Wu, Jingjing <jingjing.wu@intel.com>; Wiles, Keith <keith.wiles@intel.com>; Maslekar,
> Omkar <omkar.maslekar@intel.com>; Liang, Cunming <cunming.liang@intel.com>
> Cc: dev@dpdk.org; Li, Xiaoyun <xiaoyun.li@intel.com>
> Subject: [PATCH v6 0/4] enable FIFO for NTB
> 
> Enable FIFO for NTB rawdev driver to support packet based
> processing. And an example is provided to support txonly,
> rxonly, iofwd between NTB device and ethdev, and file
> transmission.
> 
> Acked-by: Omkar Maslekar <omkar.maslekar@intel.com>
> 
Series Acked-by: Jingjing Wu <jingjing.wu@intel.com> 


Thanks
Jingjing
  
Thomas Monjalon Oct. 21, 2019, 1:43 p.m. UTC | #2
26/09/2019 06:04, Wu, Jingjing:
> From: Li, Xiaoyun
> > Enable FIFO for NTB rawdev driver to support packet based
> > processing. And an example is provided to support txonly,
> > rxonly, iofwd between NTB device and ethdev, and file
> > transmission.
> > 
> > Acked-by: Omkar Maslekar <omkar.maslekar@intel.com>
> > 
> Series Acked-by: Jingjing Wu <jingjing.wu@intel.com> 

Applied, thanks
  
David Marchand Oct. 21, 2019, 3:54 p.m. UTC | #3
On Mon, Oct 21, 2019 at 3:44 PM Thomas Monjalon <thomas@monjalon.net> wrote:
>
> 26/09/2019 06:04, Wu, Jingjing:
> > From: Li, Xiaoyun
> > > Enable FIFO for NTB rawdev driver to support packet based
> > > processing. And an example is provided to support txonly,
> > > rxonly, iofwd between NTB device and ethdev, and file
> > > transmission.
> > >
> > > Acked-by: Omkar Maslekar <omkar.maslekar@intel.com>
> > >
> > Series Acked-by: Jingjing Wu <jingjing.wu@intel.com>
>
> Applied, thanks
>

Pushed a fix on the last patch to fix master compilation, please check
other variables:
https://git.dpdk.org/dpdk/commit/?id=fe56fe635b1d0933344d60e95d9359034dc52f75


Thanks.
  
Li, Xiaoyun Oct. 22, 2019, 1:12 a.m. UTC | #4
Thanks!

> -----Original Message-----
> From: David Marchand [mailto:david.marchand@redhat.com]
> Sent: Monday, October 21, 2019 23:55
> To: Li, Xiaoyun <xiaoyun.li@intel.com>
> Cc: dev <dev@dpdk.org>; Wu, Jingjing <jingjing.wu@intel.com>; Wiles, Keith
> <keith.wiles@intel.com>; Maslekar, Omkar <omkar.maslekar@intel.com>; Liang,
> Cunming <cunming.liang@intel.com>; Thomas Monjalon
> <thomas@monjalon.net>
> Subject: Re: [dpdk-dev] [PATCH v6 0/4] enable FIFO for NTB
> 
> On Mon, Oct 21, 2019 at 3:44 PM Thomas Monjalon <thomas@monjalon.net>
> wrote:
> >
> > 26/09/2019 06:04, Wu, Jingjing:
> > > From: Li, Xiaoyun
> > > > Enable FIFO for NTB rawdev driver to support packet based
> > > > processing. And an example is provided to support txonly, rxonly,
> > > > iofwd between NTB device and ethdev, and file transmission.
> > > >
> > > > Acked-by: Omkar Maslekar <omkar.maslekar@intel.com>
> > > >
> > > Series Acked-by: Jingjing Wu <jingjing.wu@intel.com>
> >
> > Applied, thanks
> >
> 
> Pushed a fix on the last patch to fix master compilation, please check other
> variables:
> https://git.dpdk.org/dpdk/commit/?id=fe56fe635b1d0933344d60e95d9359034d
> c52f75
> 
> 
> Thanks.
> 
> --
> David Marchand