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
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
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
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
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
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
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
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
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
/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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
("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
("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
("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
("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
---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.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
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
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
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
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
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:
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
:
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 +++
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/
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 ++
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
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
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
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
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
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 - 100 of 288 matches
Mail list logo