[PATCH 10/10] doc: update documentation

2022-07-29 Thread Xiaoyun Li
Update documentation of GVE PMD and release note. Add Junfeng Guo as GVE PMD maintainer since he'll work on GVE PMD in the future and maintain it and I won't be available for maintaining. Signed-off-by: Xiaoyun Li --- MAINTAINERS| 6 +++ doc/guides/nic

[PATCH 09/10] net/gve: add stats support

2022-07-29 Thread Xiaoyun Li
Update stats add support of dev_ops stats_get/reset. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 10 ++ drivers/net/gve/gve_ethdev.c | 69 drivers/net/gve/gve_rx.c | 15 ++-- drivers/net/gve/gve_tx.c | 12 +++ 4 files

[PATCH 08/10] net/gve: add support to get dev info and configure dev

2022-07-29 Thread Xiaoyun Li
Add dev_ops dev_infos_get. Complete dev_configure with RX offloads configuration. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 3 ++ drivers/net/gve/gve_ethdev.c | 61 2 files changed, 64 insertions(+) diff --git a/drivers/net/gve/gve.h b

[PATCH 07/10] net/gve: add Rx/Tx support

2022-07-29 Thread Xiaoyun Li
Add Rx/Tx of GQI_QPL queue format and GQI_RDA queue format. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 17 ++ drivers/net/gve/gve_ethdev.c | 5 + drivers/net/gve/gve_rx.c | 143 +++ drivers/net/gve/gve_tx.c | 452 +++ 4 files

[PATCH 06/10] net/gve: add queue operations

2022-07-29 Thread Xiaoyun Li
Add support for queue operations: - setup rx/tx queue - release rx/tx queue - start rx/tx queues - stop rx/tx queues Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 52 + drivers/net/gve/gve_ethdev.c | 203 + drivers/net/gve/gve_rx.c

[PATCH 05/10] net/gve: add MTU set support

2022-07-29 Thread Xiaoyun Li
Support dev_ops mtu_set. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve_ethdev.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c index 435115c047..26b45fde6f 100644 --- a/drivers/net/gve

[PATCH 04/10] net/gve: add link update support

2022-07-29 Thread Xiaoyun Li
Support dev_ops link_update. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve_ethdev.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c index f10f273f7d..435115c047 100644 --- a/drivers/net/gve

[PATCH 03/10] net/gve: support device initialization

2022-07-29 Thread Xiaoyun Li
Support device init and the fowllowing devops: - dev_configure - dev_start - dev_stop - dev_close Signed-off-by: Haiyue Wang Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 249 +++ drivers/net/gve/gve_adminq.c | 1 + drivers/net/gve/gve_ethdev.c

[PATCH 02/10] net/gve: add logs and OS specific implementation

2022-07-29 Thread Xiaoyun Li
Add GVE PMD logs. Add some MACRO definitions and memory operations which are specific for DPDK. Signed-off-by: Haiyue Wang Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve_adminq.h | 2 + drivers/net/gve/gve_desc.h | 2 + drivers/net/gve/gve_desc_dqo.h | 2 + drivers/net/gve

[PATCH 01/10] net/gve: introduce GVE PMD base code

2022-07-29 Thread Xiaoyun Li
/google/gve Signed-off-by: Xiaoyun Li Signed-off-by: Haiyue Wang --- drivers/net/gve/gve_adminq.c | 925 + drivers/net/gve/gve_adminq.h | 381 ++ drivers/net/gve/gve_desc.h | 137 + drivers/net/gve/gve_desc_dqo.h | 254 + drivers/net

[PATCH 00/10] introduce GVE PMD

2022-07-29 Thread Xiaoyun Li
1.3.0 and the original code is in https://github.com/GoogleCloudPlatform/compute-virtual-ethernet-linux/tree/v1.3.0 Xiaoyun Li (10): net/gve: introduce GVE PMD base code net/gve: add logs and OS specific implementation net/gve: support device initialization net/gve: add link update support

[PATCH v2] net/af_xdp: allow using copy mode in XSK

2022-06-14 Thread Xiaoyun Li
ocket into copy mode. Signed-off-by: Xiaoyun Li --- v2: * Change name from no_zerocopy to force_copy. --- doc/guides/nics/af_xdp.rst | 2 ++ drivers/net/af_xdp/rte_eth_af_xdp.c | 25 - 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/doc/guides/ni

[PATCH] net/af_xdp: allow using copy mode in XSK

2022-06-13 Thread Xiaoyun Li
XDP socket into copy mode. Signed-off-by: Xiaoyun Li --- doc/guides/nics/af_xdp.rst | 2 ++ drivers/net/af_xdp/rte_eth_af_xdp.c | 25 - 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/doc/guides/nics/af_xdp.rst b/doc/guides/nics/af_xdp.rst i

[PATCH] maintainers: update for testpmd

2022-06-13 Thread Xiaoyun Li
: app/test/sample_packet_forward.c F: app/test/sample_packet_forward.h Networking drivers testing tool -M: Xiaoyun Li M: Aman Singh M: Yuying Zhang T: git://dpdk.org/next/dpdk-next-net -- 2.25.1

[PATCH v6 2/2] app/testpmd: enable L4 SW csum over multi segments

2022-01-24 Thread Xiaoyun Li
Csum forwarding mode only supports software UDP/TCP csum calculation for single segment packets when hardware offload is not enabled. This patch enables software UDP/TCP csum calculation over multiple segments. Signed-off-by: Xiaoyun Li Tested-by: Sunil Pai G --- app/test-pmd/csumonly.c

[PATCH v6 1/2] net: add functions to calculate UDP/TCP cksum in mbuf

2022-01-24 Thread Xiaoyun Li
Add functions to call rte_raw_cksum_mbuf() to calculate IPv4/6 UDP/TCP checksum in mbuf which can be over multi-segments. Signed-off-by: Xiaoyun Li Acked-by: Aman Singh Acked-by: Ferruh Yigit Tested-by: Sunil Pai G --- doc/guides/rel_notes/release_22_03.rst | 11 ++ lib/net/rte_ip.h

[PATCH v6 0/2] Add functions to calculate UDP/TCP cksum in mbuf

2022-01-24 Thread Xiaoyun Li
Added functions to calculate UDP/TCP checksum for packets which may be over multi-segments and called the functions in testpmd csum forwarding mode to support UDP/TCP sotfware checksum over multi-segments. Xiaoyun Li (2): net: add functions to calculate UDP/TCP cksum in mbuf app/testpmd

[PATCH v5 2/2] testpmd: fix l4 sw csum over multi segments

2022-01-06 Thread Xiaoyun Li
In csum forwarding mode, software UDP/TCP csum calculation only takes the first segment into account while using the whole packet length so the calculation will read invalid memory region with multi-segments packets and will get wrong value. This patch fixes this issue. Signed-off-by: Xiaoyun Li

[PATCH v5 1/2] net: add functions to calculate UDP/TCP cksum in mbuf

2022-01-06 Thread Xiaoyun Li
Add functions to call rte_raw_cksum_mbuf() to calculate IPv4/6 UDP/TCP checksum in mbuf which can be over multi-segments. Signed-off-by: Xiaoyun Li Acked-by: Aman Singh Tested-by: Sunil Pai G --- doc/guides/rel_notes/release_22_03.rst | 11 ++ lib/net/rte_ip.h | 186

[PATCH v5 0/2] Add functions to calculate UDP/TCP cksum in mbuf

2022-01-06 Thread Xiaoyun Li
Added functions to calculate UDP/TCP checksum for packets which may be over multi-segments and fix the checksum issue with testpmd csum forwarding mode. Xiaoyun Li (2): net: add functions to calculate UDP/TCP cksum in mbuf testpmd: fix l4 sw csum over multi segments --- v5: * Fixed commit

[PATCH v4 2/2] testpmd: fix l4 sw csum over multi segments

2021-12-03 Thread Xiaoyun Li
In csum forwarding mode, software UDP/TCP csum calculation only takes the first segment into account while using the whole packet length so the calculation will read invalid memory region with multi-segments packets and will get wrong value. This patch fixes this issue. Signed-off-by: Xiaoyun Li

[PATCH v4 1/2] net: add functions to calculate UDP/TCP cksum in mbuf

2021-12-03 Thread Xiaoyun Li
Add functions to call rte_raw_cksum_mbuf() to calculate IPv4/6 UDP/TCP checksum in mbuf which can be over multi-segments. Signed-off-by: Xiaoyun Li --- doc/guides/rel_notes/release_22_03.rst | 10 ++ lib/net/rte_ip.h | 186 + lib/net/version.map

[PATCH v4 0/2] Add functions to calculate UDP/TCP cksum in mbuf

2021-12-03 Thread Xiaoyun Li
Added functions to calculate UDP/TCP checksum for packets which may be over multi-segments and fix the checksum issue with testpmd csum forwarding mode. Xiaoyun Li (2): net: add functions to calculate UDP/TCP cksum in mbuf testpmd: fix l4 sw csum over multi segments --- v4: * Called

[dpdk-dev] [PATCH v3] app/testpmd: fix l4 sw csum over multi segments

2021-10-20 Thread Xiaoyun Li
("first public release") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v3: * Use rte_raw_cksum() for multi-segs case instead of copying the whole * packet. v2: * Use static stack memory instead of dynamic allocating in datapath --- app/test-pmd/csumo

[dpdk-dev] [PATCH v3] app/testpmd: fix l4 sw csum over multi segments

2021-10-20 Thread Xiaoyun Li
("first public release") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v3: * Use rte_raw_cksum() for multi-segs case instead of copying the whole * packet. v2: * Use static stack memory instead of dynamic allocating in datapath --- app/test-pmd/csumo

[dpdk-dev] [PATCH v2] app/testpmd: fix l4 sw csum over multi segments

2021-10-17 Thread Xiaoyun Li
("first public release") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Use static stack memory instead of dynamic allocating in datapath. --- app/test-pmd/csumonly.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/app/test-pmd/csumon

[dpdk-dev] [PATCH] app/testpmd: fix l4 sw csum over multi segments

2021-10-14 Thread Xiaoyun Li
("first public release") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- app/test-pmd/csumonly.c | 31 +++ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index 090797318a..5df3be0a6f 100644 ---

[dpdk-dev] [PATCH] ethdev: remove experimental flag from getting intr fd API

2021-08-31 Thread Xiaoyun Li
Remove the experimental tag for rte_eth_dev_rx_intr_ctl_q_get_fd API that was introduced in 18.11 and have been around for 11 releases. Signed-off-by: Xiaoyun Li --- lib/ethdev/rte_ethdev.h | 4 lib/ethdev/version.map | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a

[dpdk-dev] [PATCH] net/iavf: fix tx thresh check issue

2021-07-22 Thread Xiaoyun Li
Function check_tx_thresh is called with wrong parameter. If the check fails, tx_queue_setup should return error not keep going. iThis patch fixes above issues. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- driver

[dpdk-dev] [PATCH v2] net/i40e: fix IPv4 fragment offload issue

2021-03-01 Thread Xiaoyun Li
1: Rule 1: mask=0x3fff, spec=0 Only fragment packets can hit rule 2: Rule 2: mask=0x3fff, spec=0x8, last=0x2000 This patch allows the above rules. Fixes: 42044b69c67d ("net/i40e: support input set selection for FDIR") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Fixed a typ

[dpdk-dev] [PATCH] net/i40e: fix IPv4 fragment offload issue

2021-02-26 Thread Xiaoyun Li
1: Rule 1: mask=0x3fff, spec=0 Only fragment packets can hit rule 2: Rule 2: mask=0x3fff, spec=0x8, last=0x2000 This patch allows the above rules. Fixes: 42044b69c67d ("net/i40e: support input set selection for FDIR") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- driver

[dpdk-dev] [PATCH] app/testpmd: remove unnecessary tunnel UDP cmd check

2021-02-17 Thread Xiaoyun Li
d: VXLAN packet identification") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- app/test-pmd/cmdline.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 59722d268b..d77958b783 100644 --- a/app/test-pm

[dpdk-dev] [PATCH] net/iavf: fix VLAN insert issue

2021-02-03 Thread Xiaoyun Li
The new VIRTCHNL_VF_OFFLOAD_VLAN_V2 capability allows PF to set the location of TX VLAN insertion. So VF needs to insert VLAN tag according to the location flags. Fixes: 1c301e8c3cff ("net/iavf: support new VLAN capabilities") Signed-off-by: Xiaoyun Li --- drivers/net/iavf/iavf_r

[dpdk-dev] [PATCH v4] examples/tep_term: deprecate this example

2020-10-26 Thread Xiaoyun Li
offloading can be replaced with flow rules in testpmd like Chapter "Sample VXLAN flow rules" in Testpmd Application User Guide. And this example hasn't been used for a long time. So deprecate this example. Signed-off-by: Xiaoyun Li Acked-by: Thomas Monjalon Acked-by: Andrew Rybchenko A

[dpdk-dev] [PATCH v3] examples/tep_term: deprecate this example

2020-10-20 Thread Xiaoyun Li
offloading can be replaced with flow rules in testpmd like Chapter "Sample VXLAN flow rules" in Testpmd Application User Guide. And this example hasn't been used for a long time. So deprecate this example. Signed-off-by: Xiaoyun Li Acked-by: Thomas Monjalon Acked-by: Andrew Rybchenko A

[dpdk-dev] [PATCH v2] examples/tep_term: deprecate this example

2020-10-19 Thread Xiaoyun Li
offloading can be replaced with flow rules in testpmd like Chapter "Sample VXLAN flow rules" in Testpmd Application User Guide. And this example hasn't been used for a long time. So deprecate this example. Signed-off-by: Xiaoyun Li Acked-by: Thomas Monjalon Acked-by: Andrew Ry

[dpdk-dev] [PATCH] examples/tep_term: deprecate this example

2020-10-19 Thread Xiaoyun Li
The tunnel cases this example wants to test can be covered by testpmd with rte_flow_create. And this example hasn't been used for a long time. So deprecate this example. Signed-off-by: Xiaoyun Li --- MAINTAINERS |4 - .../img/tep_termination_arc

[dpdk-dev] [PATCH v4] raw/ntb: add Ice Lake support for Intel NTB

2020-09-07 Thread Xiaoyun Li
Add NTB device support (4th generation) for Intel Ice Lake platform. Signed-off-by: Xiaoyun Li --- v4: * Removed unnecessary return. * Added more print log. * Replaced "Icelake" with "Ice Lake". v3: * Removed a blank line. * Added change doc for v2. v2: * Corrected

[dpdk-dev] [PATCH v3] raw/ntb: add Icelake support for Intel NTB

2020-09-06 Thread Xiaoyun Li
Add NTB device support (4th generation) for Intel Icelake platform. Signed-off-by: Xiaoyun Li --- v3: * Removed a blank line. * Added change doc for v2. v2: * Corrected and polished the doc. * Fixed a link setup issue. --- doc/guides/rawdevs/ntb.rst | 16 +- doc/guides

[dpdk-dev] [PATCH v2] raw/ntb: add Icelake support for Intel NTB

2020-09-06 Thread Xiaoyun Li
Add NTB device support (4th generation) for Intel Icelake platform. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 16 +- doc/guides/rel_notes/release_20_11.rst | 3 + drivers/raw/ntb/ntb.c | 5 + drivers/raw/ntb/ntb.h | 1

[dpdk-dev] [PATCH] raw/ntb: add Icelake support for Intel NTB

2020-08-30 Thread Xiaoyun Li
Add NTB device support (4th generation) for Intel Icelake platform. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 11 +- doc/guides/rel_notes/release_20_11.rst | 3 + drivers/raw/ntb/ntb.c | 2 + drivers/raw/ntb/ntb.h | 1

[dpdk-dev] [PATCH] net/igc: update copyright

2020-05-18 Thread Xiaoyun Li
Clarify Intel copyright and update the date to 2020. Fixes: 8cb7c57d9b3c ("net/igc: support device initialization") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/igc/base/igc_82571.h | 2 +- drivers/net/igc/base/igc_82575.h | 2 +- drivers/net/igc/base/igc_api

[dpdk-dev] [PATCH] net/ice: update copyright

2020-05-18 Thread Xiaoyun Li
date Boot Configuration Section read of NVM") Fixes: 04b8ec1ea807 ("net/ice/base: add protocol structures and defines") Fixes: 2a27e0a16d29 ("net/ice/base: add sideband queue info") Fixes: 93e84b1bfc92 ("net/ice/base: add basic Tx scheduler") Fixes: c7dd159

[dpdk-dev] [PATCH] common/iavf: update copyright

2020-05-18 Thread Xiaoyun Li
Clarify Intel copyright and update the date to 2020. Fixes: 317862a4e44f ("net/iavf: replace license text with SPDX tag") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/common/iavf/README| 2 +- drivers/common/iavf/iavf_adminq.c | 2 +- drivers/c

[dpdk-dev] [PATCH] net/i40e/base: update copyright

2020-05-18 Thread Xiaoyun Li
Clarify Intel copyright and update the date to 2020. Fixes: 547be3f01f55 ("net/i40e/base: replace license text with SPDX tag") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/base/README| 2 +- drivers/net/i40e/base/i40e_adminq.c | 2 +- drivers/net

[dpdk-dev] [PATCH] net/ixgbe/base: update copyright

2020-05-18 Thread Xiaoyun Li
Clarify Intel copyright and update the date to 2020. Fixes: 9db3087f4f77 ("net/ixgbe/base: update the license") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/README| 2 +- drivers/net/ixgbe/base/ixgbe_82598.c | 2 +- drivers/net/ixgbe/base/i

[dpdk-dev] [PATCH v3] examples/tep_term: remove redundant info get

2020-02-16 Thread Xiaoyun Li
Removed redundant function call of 'rte_eth_dev_info_get()' since it has already been called earlier. Coverity issue: 349922 Fixes: 2bb43bd4350a ("examples/tep_term: add TSO offload configuration") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/tep_terminati

[dpdk-dev] [PATCH v2] examples/tep_term: fix return value check

2020-02-09 Thread Xiaoyun Li
Added return value check for 'rte_eth_dev_info_get()'. Coverity issue: 349922 Fixes: 2bb43bd4350a ("examples/tep_term: add TSO offload configuration") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/tep_termination/vxlan_setup.c | 4 +++- 1 file changed, 3 inser

[dpdk-dev] [PATCH] examples/tep_term: fix return value check

2020-02-09 Thread Xiaoyun Li
Added return value check for 'rte_eth_dev_info_get()'. Coverity issue: 349922 Fixes: 2bb43bd4350a ("examples/tep_term: add TSO offload configuration") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/tep_termination/vxlan_setup.c | 4 +++- 1 file changed, 3 inser

[dpdk-dev] [PATCH v2] net/ice: fix TSO pkt exceeds allowed buf size issue

2019-12-25 Thread Xiaoyun Li
pport basic Rx/Tx") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Fixed several typos. --- drivers/net/ice/ice_rxtx.c | 58 ++ 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rx

[dpdk-dev] [PATCH v3] net/i40e: fix TSO pkt exceeds allowed buf size issue

2019-12-25 Thread Xiaoyun Li
poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v3: * Reused the existing macros to define I40E_MAX_DATA_PER_TXD v2: * Each pkt can have several segments so the needed tx descs should sum * all segments up. --- drivers/net/i40e/i40e_r

[dpdk-dev] [PATCH] net/ice: fix TSO pkt exceeds allowed buf size issue

2019-12-25 Thread Xiaoyun Li
pport basic Rx/Tx") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/ice/ice_rxtx.c | 59 ++ 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index b4f5367c5..c3d549ef4 10

[dpdk-dev] [PATCH] examples/ntb: fix mempool ops setting issue

2019-12-25 Thread Xiaoyun Li
.@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c index c914256dd..17eedcf0b 100644 --- a/examples/ntb/ntb_fwd.c +++ b/examples/ntb/ntb_fwd.c @@ -19,6 +19,7 @@ #include #include

[dpdk-dev] [PATCH v2] net/i40e: fix TSO pkt exceeds allowed buf size issue

2019-12-25 Thread Xiaoyun Li
poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Each pkt can have several segments so the needed tx descs should sum * all segments up. --- drivers/net/i40e/i40e_rxtx.c | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) di

[dpdk-dev] [PATCH] net/i40e: fix TSO pkt exceeds allowed buf size issue

2019-12-22 Thread Xiaoyun Li
poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_rxtx.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 17dc8c78f..8269dc022 10

[dpdk-dev] [PATCH v2] raw/ntb: fix write memory barrier issue

2019-12-15 Thread Xiaoyun Li
All buffers and ring info should be written before tail register update. This patch relocates the write memory barrier before updating tail register to avoid potential issues. Fixes: 11b5c7daf019 ("raw/ntb: add enqueue and dequeue functions") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun

[dpdk-dev] [PATCH] doc: fix a typo in ntb guide

2019-12-04 Thread Xiaoyun Li
In prerequisites of ntb guide, the correct flag when loading igb_uio module should be `wc_activate=1`, not `wc_active=1`. Fixes: 11b5c7daf019 ("raw/ntb: add enqueue and dequeue functions") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 4 ++-- 1 file

[dpdk-dev] [PATCH] raw/ntb: fix write memory barrier issue

2019-12-04 Thread Xiaoyun Li
All buffers and ring info should be written before tail register update. This patch relocates the write memory barrier before updating tail register to avoid potential issues. Fixes: 11b5c7daf019 ("raw/ntb: add enqueue and dequeue functions") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] examples/ntb: fix no return check

2019-10-25 Thread Xiaoyun Li
This patch adds return value checking and error handling for rte_rawdev_en/dequeue_buffers() and rte_eth_link_get(). Coverity issue: 350247, 350250, 350251, 350252, 350253, 350254 Fixes: 5194299d6ef5 ("examples/ntb: support more functions") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH v6 2/4] raw/ntb: add xstats support

2019-09-25 Thread Xiaoyun Li
Add xstats support for ntb rawdev. Support tx-packets, tx-bytes, tx-errors and rx-packets, rx-bytes, rx-missed. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb/ntb.c | 170 +- drivers/raw/ntb/ntb.h | 12 +++ 2 files changed, 164 insertions(+), 18 deletions

[dpdk-dev] [PATCH v6 1/4] raw/ntb: setup ntb queue

2019-09-25 Thread Xiaoyun Li
Setup and init ntb txq and rxq. And negotiate queue information with the peer. If queue size and number of queues are not consistent on both sides, return error. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 39 +- doc/guides/rel_notes/release_19_11.rst | 4

[dpdk-dev] [PATCH v6 0/4] enable FIFO for NTB

2019-09-25 Thread Xiaoyun Li
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

[dpdk-dev] [PATCH v6 3/4] raw/ntb: add enqueue and dequeue functions

2019-09-25 Thread Xiaoyun Li
Introduce enqueue and dequeue functions to support packet based processing. And enable write-combining for ntb driver since it can improve the performance a lot. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 54 drivers/raw/ntb/ntb.c | 242

[dpdk-dev] [PATCH v6 4/4] examples/ntb: support more functions for NTB

2019-09-25 Thread Xiaoyun Li
Support to transmit files between two systems. Support iofwd between one ethdev and NTB device. Support rxonly and txonly for NTB device. Support to set forwarding mode as file-trans, txonly, rxonly or iofwd. Support to show/clear port stats and throughput. Signed-off-by: Xiaoyun Li --- doc

[dpdk-dev] [PATCH v5 0/4] enable FIFO for NTB

2019-09-24 Thread Xiaoyun Li
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 | 67 +- doc/guides/rel_notes/release_19_11.rst |4 + doc

[dpdk-dev] [PATCH v5 4/4] examples/ntb: support more functions for NTB

2019-09-24 Thread Xiaoyun Li
Support to transmit files between two systems. Support iofwd between one ethdev and NTB device. Support rxonly and txonly for NTB device. Support to set forwarding mode as file-trans, txonly, rxonly or iofwd. Support to show/clear port stats and throughput. Signed-off-by: Xiaoyun Li --- doc

[dpdk-dev] [PATCH v5 1/4] raw/ntb: setup ntb queue

2019-09-24 Thread Xiaoyun Li
Setup and init ntb txq and rxq. And negotiate queue information with the peer. If queue size and number of queues are not consistent on both sides, return error. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 39 +- doc/guides/rel_notes/release_19_11.rst | 4

[dpdk-dev] [PATCH v5 2/4] raw/ntb: add xstats support

2019-09-24 Thread Xiaoyun Li
Add xstats support for ntb rawdev. Support tx-packets, tx-bytes, tx-errors and rx-packets, rx-bytes, rx-missed. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb/ntb.c | 170 +- drivers/raw/ntb/ntb.h | 12 +++ 2 files changed, 164 insertions(+), 18 deletions

[dpdk-dev] [PATCH v5 3/4] raw/ntb: add enqueue and dequeue functions

2019-09-24 Thread Xiaoyun Li
Introduce enqueue and dequeue functions to support packet based processing. And enable write-combining for ntb driver since it can improve the performance a lot. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 28 drivers/raw/ntb/ntb.c | 242

[dpdk-dev] [PATCH v4 2/4] raw/ntb: add xstats support

2019-09-08 Thread Xiaoyun Li
Add xstats support for ntb rawdev. Support tx-packets, tx-bytes, tx-errors and rx-packets, rx-bytes, rx-missed. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb/ntb.c | 133 -- drivers/raw/ntb/ntb.h | 11 2 files changed, 126 insertions(+), 18

[dpdk-dev] [PATCH v4 1/4] raw/ntb: setup ntb queue

2019-09-08 Thread Xiaoyun Li
Setup and init ntb txq and rxq. And negotiate queue information with the peer. If queue size and number of queues are not consistent on both sides, return error. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 39 +- doc/guides/rel_notes/release_19_11.rst | 4

[dpdk-dev] [PATCH v4 4/4] examples/ntb: support more functions for NTB

2019-09-08 Thread Xiaoyun Li
Support to transmit files between two systems. Support iofwd between one ethdev and NTB device. Support rxonly and txonly for NTB device. Support to set forwarding mode as file-trans, txonly, rxonly or iofwd. Support to show/clear port stats and throughput. Signed-off-by: Xiaoyun Li --- doc

[dpdk-dev] [PATCH v4 0/4] enable FIFO for NTB

2019-09-08 Thread Xiaoyun Li
: * 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

[dpdk-dev] [PATCH v4 3/4] raw/ntb: add enqueue and dequeue functions

2019-09-08 Thread Xiaoyun Li
Introduce enqueue and dequeue functions to support packet based processing. And enable write-combining for ntb driver since it can improve the performance a lot. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 28 drivers/raw/ntb/ntb.c | 242

[dpdk-dev] [PATCH v3 3/4] raw/ntb: add enqueue and dequeue functions

2019-09-06 Thread Xiaoyun Li
Introduce enqueue and dequeue functions to support packet based processing. And enable write-combining for ntb driver since it can improve the performance a lot. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 28 drivers/raw/ntb/ntb.c | 242

[dpdk-dev] [PATCH v3 4/4] examples/ntb: support more functions for NTB

2019-09-06 Thread Xiaoyun Li
Support to transmit files between two systems. Support iofwd between one ethdev and NTB device. Support rxonly and txonly for NTB device. Support to set forwarding mode as file-trans, txonly, rxonly or iofwd. Support to show/clear port stats and throughput. Signed-off-by: Xiaoyun Li --- doc

[dpdk-dev] [PATCH v3 0/4] enable FIFO for NTB

2019-09-06 Thread Xiaoyun Li
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 | 67 +- doc

[dpdk-dev] [PATCH v3 2/4] raw/ntb: add xstats support

2019-09-06 Thread Xiaoyun Li
Add xstats support for ntb rawdev. Support tx-packets, tx-bytes, tx-errors and rx-packets, rx-bytes, rx-missed. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb/ntb.c | 132 -- drivers/raw/ntb/ntb.h | 11 2 files changed, 125 insertions(+), 18

[dpdk-dev] [PATCH v3 1/4] raw/ntb: setup ntb queue

2019-09-06 Thread Xiaoyun Li
Setup and init ntb txq and rxq. And negotiate queue information with the peer. If queue size and number of queues are not consistent on both sides, return error. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 39 +- doc/guides/rel_notes/release_19_11.rst | 4

[dpdk-dev] [PATCH v2 4/4] examples/ntb: support more functions for NTB

2019-09-05 Thread Xiaoyun Li
Support to transmit files between two systems. Support iofwd between one ethdev and NTB device. Support rxonly and txonly for NTB device. Support to set forwarding mode as file-trans, txonly, rxonly or iofwd. Support to show/clear port stats and throughput. Signed-off-by: Xiaoyun Li --- doc

[dpdk-dev] [PATCH v2 3/4] raw/ntb: add enqueue and dequeue functions

2019-09-05 Thread Xiaoyun Li
Introduce enqueue and dequeue functions to support packet based processing. And enable write-combining for ntb driver since it can improve the performance a lot. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 28 drivers/raw/ntb/ntb.c | 242

[dpdk-dev] [PATCH v2 2/4] raw/ntb: add xstats support

2019-09-05 Thread Xiaoyun Li
Add xstats support for ntb rawdev. Support tx-packets, tx-bytes, tx-errors and rx-packets, rx-bytes, rx-missed. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb/ntb.c | 135 -- drivers/raw/ntb/ntb.h | 11 2 files changed, 128 insertions(+), 18

[dpdk-dev] [PATCH v2 1/4] raw/ntb: setup ntb queue

2019-09-05 Thread Xiaoyun Li
Setup and init ntb txq and rxq. And negotiate queue information with the peer. If queue size and number of queues are not consistent on both sides, return error. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 39 +- doc/guides/rel_notes/release_19_11.rst | 4

[dpdk-dev] [PATCH v2 0/4] enable FIFO for NTB

2019-09-05 Thread Xiaoyun Li
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. Xiaoyun Li (4): raw/ntb: setup ntb queue raw/ntb: add xstats support raw/ntb: add enqueue and dequeue

[dpdk-dev] [PATCH 2/4] raw/ntb: add xstats support

2019-09-04 Thread Xiaoyun Li
Add xstats support for ntb rawdev. Support tx-packets, tx-bytes, tx-errors and rx-packets, rx-bytes, rx-missed. Signed-off-by: Xiaoyun Li --- drivers/raw/ntb/ntb.c | 135 -- drivers/raw/ntb/ntb.h | 11 2 files changed, 128 insertions(+), 18

[dpdk-dev] [PATCH 1/4] raw/ntb: setup ntb queue

2019-09-04 Thread Xiaoyun Li
Setup and init ntb txq and rxq. And negotiate queue information with the peer. If queue size and number of queues are not consistent on both sides, return error. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 39 +- doc/guides/rel_notes/release_19_11.rst | 4

[dpdk-dev] [PATCH 4/4] examples/ntb: support more functions for NTB

2019-09-04 Thread Xiaoyun Li
Support to transmit files between two systems. Support iofwd between one ethdev and NTB device. Support rxonly and txonly for NTB device. Support to set forwarding mode as file-trans, txonly, rxonly or iofwd. Support to show/clear port stats and throughput. Signed-off-by: Xiaoyun Li --- doc

[dpdk-dev] [PATCH 0/4] enable FIFO for NTB

2019-09-04 Thread Xiaoyun Li
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. Xiaoyun Li (4): raw/ntb: setup ntb queue raw/ntb: add xstats support raw/ntb: add enqueue and dequeue

[dpdk-dev] [PATCH 3/4] raw/ntb: add enqueue and dequeue functions

2019-09-04 Thread Xiaoyun Li
Introduce enqueue and dequeue functions to support packet based processing. And enable write-combining for ntb driver since it can improve the performance a lot. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb.rst | 28 drivers/raw/ntb/ntb.c | 242

[dpdk-dev] [PATCH] examples/ntb: fix resource leaks

2019-08-13 Thread Xiaoyun Li
Resource file was not freed or pointed-to in fseek/ftell. This patch fixed this issue which is found by coverity scan. Coverity issue: 347277 Fixes: 440af660ff83 ("examples/ntb: fix error handling") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 2 ++ 1 fi

[dpdk-dev] [PATCH v2] examples/ntb: fix error handling

2019-08-04 Thread Xiaoyun Li
This patch adds return value checking for fseek function to fix error handling issue found by coverity scan. Coverity issue: 344996 Fixes: c5eebf85badc ("examples/ntb: add example for NTB") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 10 -- 1 fi

[dpdk-dev] [PATCH] examples/ntb: fix error handling

2019-08-04 Thread Xiaoyun Li
This patch adds return value checking for fseek function to fix error handling issue found by coverity scan. Coverity issue: 344996 Fixes: c5eebf85badc ("examples/ntb: add example for NTB") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 13 +++

[dpdk-dev] [PATCH] raw/ntb: fix null pointer dereference

2019-08-04 Thread Xiaoyun Li
This patch fixes null pointer dereference issues found by coverity scan. Coverity issue: 344981, 344991, 345000, 345002, 345006, 345024 Fixes: 277310027965 ("raw/ntb: introduce NTB raw device driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/raw/ntb/

[dpdk-dev] [PATCH v10 5/5] examples/ntb: enable an example for ntb

2019-07-01 Thread Xiaoyun Li
e functions and only support transmitting file no more than 4M. Signed-off-by: Xiaoyun Li --- MAINTAINERS | 4 + doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/ntb.rst| 47 drivers/raw/ntb_rawdev/ntb_rawdev.c | 28 ++

[dpdk-dev] [PATCH v10 4/5] raw/ntb: add handshake process

2019-07-01 Thread Xiaoyun Li
Add handshake process using doorbell so that two hosts can communicate to start and stop. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb_rawdev.rst | 5 + drivers/raw/ntb_rawdev/ntb_rawdev.c | 336 +++- 2 files changed, 340 insertions(+), 1 deletion(-) diff

[dpdk-dev] [PATCH v10 0/5] rawdev driver for ntb

2019-07-01 Thread Xiaoyun Li
about how to setup BIOS for skylake. * Fixed not return issue and not free issue in example. * Renamed ntb_devices to communication_devices to be more generic in usertools. * Polish the codes and docs. Xiaoyun Li (5): raw/ntb: introduce ntb rawdev driver usertools/dpdk-devbind.py: add support

[dpdk-dev] [PATCH v10 1/5] raw/ntb: introduce ntb rawdev driver

2019-07-01 Thread Xiaoyun Li
Introduce rawdev driver support for NTB (Non-transparent Bridge) which can help to connect two separate hosts with each other. Signed-off-by: Xiaoyun Li --- MAINTAINERS | 5 + config/common_base| 5 + doc/guides/rawdevs/index.rst

[dpdk-dev] [PATCH v10 2/5] usertools/dpdk-devbind.py: add support for ntb

2019-07-01 Thread Xiaoyun Li
In order to allow binding/unbinding of devices for use by the ntb_rawdev, we need to update the devbind script to add a new class of device, and add device ids for the specific HW instances. And only support Intel Skylake platform right now. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs

[dpdk-dev] [PATCH v10 3/5] raw/ntb: add intel ntb support

2019-07-01 Thread Xiaoyun Li
Add in the list of registers for the device. And enable ntb device ops for Intel Skylake platform. Signed-off-by: Xiaoyun Li --- doc/guides/rawdevs/ntb_rawdev.rst | 17 ++ drivers/raw/ntb_rawdev/Makefile | 1 + drivers/raw/ntb_rawdev/meson.build| 3 +- drivers/raw/ntb_rawdev

[dpdk-dev] [PATCH v10 1/5] raw/ntb: introduce ntb rawdev driver

2019-07-01 Thread Xiaoyun Li
Introduce rawdev driver support for NTB (Non-transparent Bridge) which can help to connect two separate hosts with each other. Signed-off-by: Xiaoyun Li --- MAINTAINERS | 5 + config/common_base| 5 + doc/guides/rawdevs/index.rst

  1   2   3   >