[PATCH] maintainers: update for fm10k/ifc drivers

2024-01-31 Thread Xiao Wang
Remove my name from maintainers. Signed-off-by: Xiao Wang --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5fb3a73f84..b9d258e627 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -759,7 +759,6 @@ F: doc/guides/nics/intel_vf.rst F: doc/guides

[dpdk-dev] [PATCH] net: promote make rarp packet API as stable

2021-09-07 Thread Xiao Wang
rte_net_make_rarp_packet was introduced in version v18.02, there was no change in this public API since then, and it's still being used by vhost lib and virtio driver, so promote it as stable ABI. Signed-off-by: Xiao Wang --- lib/net/rte_arp.h | 4 lib/net/version.map | 2 +- 2

[dpdk-dev] [PATCH v5] vhost: check header for legacy dequeue offload

2021-06-21 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- v5: - Redefine the function parse_ethernet() to parse_headers(). (David) - Use mbuf helpers e.g. rte_pktmbuf_data_len() and rte_pktmbuf_mtod_offset(). (David) - Reset mbuf l2_len, l3_len and ol_flags when detecting anything invali

[dpdk-dev] [PATCH v4] vhost: check header for legacy dequeue offload

2021-06-15 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- v4: - Rebase on head of main branch. - Allow empty L4 payload in GSO. v3: - Check data_len before calling rte_pktmbuf_mtod. (David) v2: - Allow empty L4 payload for cksum offload. (Konstantin) --- lib/vhost/virtio_

[dpdk-dev] [PATCH v3] vhost: add header check in dequeue offload

2021-03-16 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- v3: - Check data_len before calling rte_pktmbuf_mtod. (David) v2: - Allow empty L4 payload for cksum offload. (Konstantin) --- lib/librte_vhost/virtio_net.c | 49 +-- 1 file changed, 43 insert

[dpdk-dev] [PATCH v2] vhost: add header check in dequeue offload

2021-03-15 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- v2: Allow empty L4 payload for cksum offload. --- lib/librte_vhost/virtio_net.c | 49 +-- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/li

[dpdk-dev] [PATCH] vhost: add header check in dequeue offload

2021-03-10 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- lib/librte_vhost/virtio_net.c | 49 +-- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 583bf379c6..0fba005

[dpdk-dev] [PATCH] vdpa/ifc: check return value for PCI config read

2021-03-09 Thread Xiao Wang
The return value of rte_pci_read_config should be checked. Coverity issue: 302860 Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/vdpa/ifc/base/ifcvf.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) di

[dpdk-dev] [PATCH] net/virtio-user: fix virtio net status management

2020-07-27 Thread Xiao Wang
tio-user: add new virtual PCI driver") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/virtio/virtio_user/virtio_user_dev.h | 1 + drivers/net/virtio/virtio_user_ethdev.c | 10 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/net/virtio

[dpdk-dev] [PATCH] net/ice: fix default RSS key configuration

2020-07-21 Thread Xiao Wang
e ops") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ice/ice_ethdev.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 3534d18..74d37c7 100644 --- a/drivers/net/ice/ice_ethdev.c +

[dpdk-dev] [PATCH 2/2] l3fwd-power: fix interrupt disable

2020-01-20 Thread Xiao Wang
sta...@dpdk.org Signed-off-by: Xiao Wang --- examples/l3fwd-power/main.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index ffcc7ecf4..e9b2cb5b3 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3f

[dpdk-dev] [PATCH 1/2] l3fwd-power: fix a typo

2020-01-20 Thread Xiao Wang
Fixes: aee3bc79cc34 ("examples/l3fwd-power: enable one-shot Rx interrupt and polling switch") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- examples/l3fwd-power/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l3fwd-power/main.c b/examples/l

[dpdk-dev] [PATCH 0/2] l3fwd-power fixes

2020-01-20 Thread Xiao Wang
The second patch will apply failed without the first patch applied, so make them a series. The first patch is just a typo fix. The second patch fixes the issue that the interrupts are turned off only on the Rx queues that has traffic arrived, rather than all the Rx queues a core has taken. Xiao

[dpdk-dev] [PATCH] net/af_xdp: use single-prod-and-cons ring

2020-01-07 Thread Xiao Wang
The ring is used only by af_xdp pmd itself, so no need to support multi-producer and multi-consumer mode. This patch changes the ring to single-producer and single-consumer mode, which could yield better performance for addr enqueue and dequeue. Signed-off-by: Xiao Wang --- drivers/net/af_xdp

[dpdk-dev] [PATCH] net/af_xdp: fix redundant check for NEED WAKEUP

2020-01-05 Thread Xiao Wang
Function kick_tx() has built-in detection on NEED_WAKEUP flag, so just call it directly, like elsewhere in the driver. Fixes: d8a210774e1d ("net/af_xdp: support unaligned umem chunks") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/af_xdp/rte_eth_af_xdp.c | 5 +--

[dpdk-dev] [PATCH] l3fwd-power: fix intr disable

2020-01-02 Thread Xiao Wang
Since all related queues' intr is turned on before epoll, we need to turn off all the queues' intr after wake up. Fixes: b736d64787fc ("examples/l3fwd-power: disable Rx interrupt when waking up") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- examples/l3f

[dpdk-dev] [PATCH 1/2] l3fwd-power: fix a typo

2020-01-02 Thread Xiao Wang
Fixes: aee3bc79cc34 ("examples/l3fwd-power: enable one-shot Rx interrupt and polling switch") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- examples/l3fwd-power/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l3fwd-power/main.c b/examples/l

[dpdk-dev] [PATCH] vhost: fix socket initial value

2020-01-02 Thread Xiao Wang
By default, a vhost socket is created without attaching VDPA device, this patch fixes the initial value of vdpa_dev_id. Fixes: b4953225cea4 ("vhost: add APIs for datapath configuration") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- lib/librte_vhost/socket.c | 1 + 1 file

[dpdk-dev] [PATCH] net/ifc: fix unchecked return value

2019-11-25 Thread Xiao Wang
It's possible that we fail to get the IOMMU group of ifcvf device, this patch adds a check on the return value. Coverity issue: 349894 Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 +

[dpdk-dev] [PATCH] net/fm10k: fix mbuf free in vector Rx

2019-10-25 Thread Xiao Wang
There's a corner case that all the Rx queue mbufs are allocated but none of them is used, this patch fixes mbuf free for this case. Fixes: b6719f8a04bb ("fm10k: release mbuf for vector Rx") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang Signed-off-by: Anna Lukin --- dr

[dpdk-dev] [PATCH] doc: fix address type description for IOAT rawdev

2019-10-17 Thread Xiao Wang
Align the description to what the code snippet shows. Fixes: 0a92e63fc4cd ("raw/ioat: add local API to perform copies") Signed-off-by: Xiao Wang --- doc/guides/rawdevs/ioat.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/rawdevs/ioat.rst b/doc/guid

[dpdk-dev] [PATCH] doc: fix unmatched double quotation mark

2019-10-16 Thread Xiao Wang
Fixes: ba7b86b1419b ("doc: add l2fwd-crypto sample app guide") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- doc/guides/sample_app_ug/l2_forward_crypto.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/sample_app_ug/l2_forward_crypto.rst b/

[dpdk-dev] [PATCH] crypto/virtio: alloc private data by NUMA affinity

2019-09-04 Thread Xiao Wang
It's better to allocate device private data on the same NUMA node with device, rather than with the main thread. This helps avoid cross-NUMA access for worker thread. Signed-off-by: Xiao Wang --- drivers/crypto/virtio/virtio_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[dpdk-dev] [PATCH] net/ifc: add devargs pointer check

2019-07-16 Thread Xiao Wang
We need to check devargs pointer before dereference it, if no devargs specified then this driver just skips the device. Fixes: 40ef35f4a504 ("net/ifc: detect if VDPA mode is specified") Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 3 +++ 1 file changed, 3 insertion

[dpdk-dev] [PATCH] net/fm10k: fix descriptor filling in vector Tx

2019-07-02 Thread Xiao Wang
ot;) Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_rxtx_vec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_rxtx_vec.c b/drivers/net/fm10k/fm10k_rxtx_vec.c index 96b46a2bd..788e2484a 100644 --- a/drivers/net/fm10k/f

[dpdk-dev] [PATCH] mempool: optimize copy in cache get

2019-05-21 Thread Xiao Wang
cache") Signed-off-by: Xiao Wang --- lib/librte_mempool/rte_mempool.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index 8053f7a04..975da8d22 100644 --- a/lib/librte_mempool/rte_mempool.h

[dpdk-dev] [PATCH] net/softnic: fix pipeline time calculation

2019-05-15 Thread Xiao Wang
When a new pipeline is added to a thread, the "time_next_min" value may need update, otherwise this pipeline won't get served timely. Fixes: 70709c78fda6 ("net/softnic: add command to enable/disable pipeline") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang

[dpdk-dev] [PATCH] net/fm10k: advertise supported RSS hash function

2019-05-06 Thread Xiao Wang
PMD should advertise supported RSS hash functions via dev_info.flow_type_rss_offloads variable [1], otherwise upper level check would fail on configuring RSS, leading to MQ RSS failure. [1] commit aa1a6d87f15d ("ethdev: force RSS offload rules again") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] net/ice: fix EEPROM range check

2019-05-04 Thread Xiao Wang
The last word should not cross shadow RAM boundary. Fixes: 68a1ab82ad74 ("net/ice: speed up to retrieve EEPROM") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ice/ice_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/ice_

[dpdk-dev] [PATCH] net/ice: minor code cleanups

2019-05-04 Thread Xiao Wang
This patch is a cleanup on comment, variable modifier, coding style. Signed-off-by: Xiao Wang --- drivers/net/ice/ice_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 1f06a2c80..706632424 100644

[dpdk-dev] [PATCH] net/fm10k: support Rx queue count API

2019-04-24 Thread Xiao Wang
Some application, e.g. the l3fwd-power sample uses rte_eth_rx_queue_count() API to get the get the number of used descriptors of a Rx queue. This patch adds fm10k implementation for this API. Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k.h| 3 +++ drivers/net/fm10k

[dpdk-dev] [PATCH 2/3] net/ifc: fix mediated vring initialization

2019-04-15 Thread Xiao Wang
The mediated vring's index should be set as initial value before enabling HW datapath. Fixes: 4bb531e152d3 ("net/ifc: support SW assisted VDPA live migration") Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-

[dpdk-dev] [PATCH 3/3] net/ifc: fix used ring update

2019-04-15 Thread Xiao Wang
The vring relay thread is created after HW datapath start and is canceled before HW datapath stop, so we need to take care of the ring update when the relay thread is not on duty. Fixes: 4bb531e152d3 ("net/ifc: support SW assisted VDPA live migration") Signed-off-by: Xiao Wang --- d

[dpdk-dev] [PATCH 0/3] net/ifc: SW relay improvement and fix

2019-04-15 Thread Xiao Wang
This patch set removes unnecessary relay on Tx queue and fixes 2 bugs to improve stability. Xiao Wang (3): net/ifc: do not relay for Tx queue net/ifc: fix mediated vring initialization net/ifc: fix used ring update drivers/net/ifc/ifcvf_vdpa.c | 104

[dpdk-dev] [PATCH 1/3] net/ifc: do not relay for Tx queue

2019-04-15 Thread Xiao Wang
Relay for Tx queue doesn't provide any benefit, since the packet buffer in Tx queue is read-only, there's no dirty page logging for Tx buffer. This change further reduces CPU usage and improves throughput. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_v

[dpdk-dev] [PATCH] net/fm10k: fix VLAN strip offload flag

2019-03-26 Thread Xiao Wang
Since the VLAN header is stripped from mbuf data, PKT_RX_VLAN_STRIPPED should be set in offload flag. Fixes: 6b59a3bc82b1 ("fm10k: fix VLAN in Rx mbuf") Fixes: 7092be8437bd ("fm10k: add vector Rx") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/fm10k/

[dpdk-dev] [PATCH] vhost: remove available ring relay helper

2019-01-23 Thread Xiao Wang
We don't need to relay available ring and check the desc, vdpa device can access the available ring in the guest directly. With this patch, we can achieve better throughput and lower CPU usage. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 27 --- lib/librte_

[dpdk-dev] [PATCH 1/2] vhost: introduce API to get vDPA device number

2019-01-23 Thread Xiao Wang
From: Xiaolong Ye It's used to get number of available registered vDPA devices. Signed-off-by: Xiaolong Ye Acked-by: Xiao Wang Reviewed-by: Maxime Coquelin --- lib/librte_vhost/rte_vdpa.h| 3 +++ lib/librte_vhost/rte_vhost_version.map | 1 + lib/librte_vhost/v

[dpdk-dev] [PATCH v5 09/10] net/ifc: support SW assisted VDPA live migration

2018-12-18 Thread Xiao Wang
ation when selecting the live migration support mode. Signed-off-by: Xiao Wang --- drivers/net/ifc/base/ifcvf.h | 1 + drivers/net/ifc/ifcvf_vdpa.c | 346 ++- 2 files changed, 344 insertions(+), 3 deletions(-) diff --git a/drivers/net/ifc/base/ifcv

[dpdk-dev] [PATCH v5 06/10] net/ifc: detect if VDPA mode is specified

2018-12-18 Thread Xiao Wang
If user wants the VF to be used in VDPA (vhost data path acceleration) mode, then the user can add a "vdpa=1" parameter for the device. So if driver does not find this option, it should quit and let the bus continue the probe. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --

[dpdk-dev] [PATCH v5 08/10] net/ifc: use lib API for used ring logging

2018-12-18 Thread Xiao Wang
Vhost lib has already provided a helper for used ring logging, driver could use it to reduce code. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- drivers/net/ifc/ifcvf_vdpa.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v5 10/10] doc: update ifc NIC document

2018-12-18 Thread Xiao Wang
Add the SW assisted VDPA live migration feature into NIC doc. Signed-off-by: Xiao Wang --- doc/guides/nics/ifc.rst| 12 +++- doc/guides/rel_notes/release_19_02.rst | 6 ++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/ifc.rst b/doc

[dpdk-dev] [PATCH v5 07/10] net/ifc: add devarg for LM mode

2018-12-18 Thread Xiao Wang
g. Without this parameter, device will do dirty page logging and there's no relay thread consuming CPU resource. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifc

[dpdk-dev] [PATCH v5 02/10] vhost: provide helper for host notifier ctrl

2018-12-18 Thread Xiao Wang
VDPA driver can decide if it needs to enable/disable the host notifier mapping, so exposing a API can allow flexibility. A later patch will base on this. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- drivers/net/ifc/ifcvf_vdpa.c | 3 +++ lib/librte_vhost/rte_vdpa.h

[dpdk-dev] [PATCH v5 04/10] net/ifc: dump debug message for error

2018-12-18 Thread Xiao Wang
Driver probe may fail for different causes, debug message is helpful for debugging issue. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- drivers/net/ifc/ifcvf_vdpa.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c

[dpdk-dev] [PATCH v5 05/10] net/ifc: store only registered device instance

2018-12-18 Thread Xiao Wang
If driver fails to register ifc VF device into vhost lib, then this device should not be stored. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") cc: sta...@dpdk.org Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file

[dpdk-dev] [PATCH v5 03/10] vhost: provide helpers for virtio ring relay

2018-12-18 Thread Xiao Wang
mediated ring to guest ring, and help to do dirty page logging for live migration. The later patch will leverage these two helpers. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- lib/librte_vhost/rte_vdpa.h| 39 +++ lib/librte_vhost/rte_vhost_version.map | 2 + lib

[dpdk-dev] [PATCH v5 01/10] vhost: remove unused internal API

2018-12-18 Thread Xiao Wang
vhost_detach_vdpa_device() is internally defined but not used, remove it in this patch. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- lib/librte_vhost/vhost.c | 13 - lib/librte_vhost/vhost.h | 1 - 2 files changed, 14 deletions(-) diff --git a/lib/librte_vhost

[dpdk-dev] [PATCH v5 00/10] support SW assisted VDPA live migration

2018-12-18 Thread Xiao Wang
otential new ring layout, e.g. packed ring. * Add parameter check for the new API. * Add memory barrier for ring idx update. * Remove the used ring logging in the relay. * Some comment fix and code cleaning according to Tiwei's comment. * Add release note update. Xiao Wang (10): vhost: rem

[dpdk-dev] [PATCH v4 10/10] doc: update ifc NIC document

2018-12-14 Thread Xiao Wang
Add the SW assisted VDPA live migration feature into NIC doc. Signed-off-by: Xiao Wang --- doc/guides/nics/ifc.rst| 8 doc/guides/rel_notes/release_19_02.rst | 6 ++ 2 files changed, 14 insertions(+) diff --git a/doc/guides/nics/ifc.rst b/doc/guides/nics/ifc.rst

[dpdk-dev] [PATCH v4 07/10] net/ifc: add devarg for LM mode

2018-12-14 Thread Xiao Wang
parameter, device will do dirty page logging and there's no relay thread consuming CPU resource. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c index c0e50

[dpdk-dev] [PATCH v4 06/10] net/ifc: detect if VDPA mode is specified

2018-12-14 Thread Xiao Wang
If user wants the VF to be used in VDPA (vhost data path acceleration) mode, then the user can add a "vdpa=1" parameter for the device. So if driver doesn't not find this option, it should quit and let the bus continue the probe. Signed-off-by: Xiao Wang --- drivers/net/ifc/Ma

[dpdk-dev] [PATCH v4 09/10] net/ifc: support SW assisted VDPA live migration

2018-12-14 Thread Xiao Wang
ation when selecting the live migration support mode. Signed-off-by: Xiao Wang --- drivers/net/ifc/base/ifcvf.h | 1 + drivers/net/ifc/ifcvf_vdpa.c | 346 ++- 2 files changed, 344 insertions(+), 3 deletions(-) diff --git a/drivers/net/ifc/base/ifcvf.h b/dr

[dpdk-dev] [PATCH v4 08/10] net/ifc: use lib API for used ring logging

2018-12-14 Thread Xiao Wang
Vhost lib has already provided a helper for used ring logging, driver could use it to reduce code. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers

[dpdk-dev] [PATCH v4 05/10] net/ifc: store only registered device instance

2018-12-14 Thread Xiao Wang
If driver fails to register ifc VF device into vhost lib, then this device should not be stored. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file changed, 4 insertions(+), 4

[dpdk-dev] [PATCH v4 03/10] vhost: provide helpers for virtio ring relay

2018-12-14 Thread Xiao Wang
mediate ring to guest ring, and helps to do dirty page logging for live migration. The next patch will leverage these two helpers. Signed-off-by: Xiao Wang --- lib/librte_vhost/rte_vdpa.h| 39 +++ lib/librte_vhost/rte_vhost_version.map | 2 + lib/librte_vhost/vdpa.c

[dpdk-dev] [PATCH v4 01/10] vhost: remove unused internal API

2018-12-14 Thread Xiao Wang
vhost_detach_vdpa_device() is internally defined but not used, remove it in this patch. Signed-off-by: Xiao Wang --- lib/librte_vhost/vhost.c | 13 - lib/librte_vhost/vhost.h | 1 - 2 files changed, 14 deletions(-) diff --git a/lib/librte_vhost/vhost.c b/lib/librte_vhost/vhost.c

[dpdk-dev] [PATCH v4 02/10] vhost: provide helper for host notifier ctrl

2018-12-14 Thread Xiao Wang
VDPA driver can decide if it needs to enable/disable the host notifier mapping, so exposing a API can allow flexibility. A later patch will base on this. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 3 +++ lib/librte_vhost/rte_vdpa.h| 18

[dpdk-dev] [PATCH v4 04/10] net/ifc: dump debug message for error

2018-12-14 Thread Xiao Wang
Driver probe may fail for different causes, debug message is helpful for debugging issue. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc

[dpdk-dev] [PATCH v4 00/10] support SW assisted VDPA live migration

2018-12-14 Thread Xiao Wang
.g. packed ring. * Add parameter check for the new API. * Add memory barrier for ring idx update. * Remove the used ring logging in the relay. * Some comment fix and code cleaning according to Tiwei's comment. * Add release note update. Xiao Wang (10): vhost: remove unused internal API vhost

[dpdk-dev] [PATCH v3 9/9] doc: update ifc NIC document

2018-12-13 Thread Xiao Wang
Add the SW assisted VDPA live migration feature into NIC doc. Signed-off-by: Xiao Wang --- v3: * Add commit message for the doc update patch. * More description on the device argument. v2: * Add release note. --- doc/guides/nics/ifc.rst| 8 doc/guides/rel_notes

[dpdk-dev] [PATCH v3 5/9] net/ifc: detect if VDPA mode is specified

2018-12-13 Thread Xiao Wang
If user wants the VF to be used in VDPA (vhost data path acceleration) mode, then the user can add a "vdpa=1" parameter for the device. So if driver doesn't not find this option, it should quit and let the bus continue the probe. Signed-off-by: Xiao Wang --- v3: * Add kvargs li

[dpdk-dev] [PATCH v3 4/9] net/ifc: store only registered device instance

2018-12-13 Thread Xiao Wang
If driver fails to register ifc VF device into vhost lib, then this device should not be stored. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file changed, 4 insertions(+), 4

[dpdk-dev] [PATCH v3 8/9] net/ifc: support SW assisted VDPA live migration

2018-12-13 Thread Xiao Wang
ation when selecting the live migration support mode. Signed-off-by: Xiao Wang --- v2: * Make the parameter parsing code shorter. --- drivers/net/ifc/base/ifcvf.h | 1 + drivers/net/ifc/ifcvf_vdpa.c | 346 ++- 2 files changed, 344 insertions(+), 3 dele

[dpdk-dev] [PATCH v3 6/9] net/ifc: add devarg for LM mode

2018-12-13 Thread Xiao Wang
parameter, device will do dirty page logging and there's no relay thread consuming CPU resource. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c index c0e50

[dpdk-dev] [PATCH v3 7/9] net/ifc: use lib API for used ring logging

2018-12-13 Thread Xiao Wang
Vhost lib has already provided a helper for used ring logging, driver could use it to reduce code. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers

[dpdk-dev] [PATCH v3 0/9] support SW assisted VDPA live migration

2018-12-13 Thread Xiao Wang
e. * Remove the used ring logging in the relay. * Some comment fix and code cleaning according to Tiwei's comment. * Add release note update. Xiao Wang (9): vhost: provide helper for host notifier ctrl vhost: provide helpers for virtio ring relay net/ifc: dump debug message for error

[dpdk-dev] [PATCH v3 2/9] vhost: provide helpers for virtio ring relay

2018-12-13 Thread Xiao Wang
mediate ring to guest ring, and helps to do dirty page logging for live migration. The next patch will leverage these two helpers. Signed-off-by: Xiao Wang --- v3: * Fix indent in relay code. * Fix the iova access mode issue of buffer check. * Rename the relay API to be more generic, and add more

[dpdk-dev] [PATCH v3 3/9] net/ifc: dump debug message for error

2018-12-13 Thread Xiao Wang
Driver probe may fail for different causes, debug message is helpful for debugging issue. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc

[dpdk-dev] [PATCH v3 1/9] vhost: provide helper for host notifier ctrl

2018-12-13 Thread Xiao Wang
VDPA driver can decide if it needs to enable/disable the host notifier mapping, so exposing a API can allow flexibility. A later patch will base on this. Signed-off-by: Xiao Wang --- v2: * Reword the vdpa host notifier control API comment. --- drivers/net/ifc/ifcvf_vdpa.c | 3

[dpdk-dev] [PATCH v2 7/9] net/ifc: use lib API for used ring logging

2018-12-12 Thread Xiao Wang
Vhost lib has already provided a helper for used ring logging, driver could use it to reduce code. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers

[dpdk-dev] [PATCH v2 8/9] net/ifc: support SW assisted VDPA live migration

2018-12-12 Thread Xiao Wang
ation when selecting the live migration support mode. Signed-off-by: Xiao Wang --- v2: * Make the parameter parsing code shorter. --- drivers/net/ifc/base/ifcvf.h | 1 + drivers/net/ifc/ifcvf_vdpa.c | 346 ++- 2 files changed, 344 insertions(+), 3 dele

[dpdk-dev] [PATCH v2 9/9] doc: update ifc NIC document

2018-12-12 Thread Xiao Wang
Signed-off-by: Xiao Wang --- v2: * Add release note. --- doc/guides/nics/ifc.rst| 7 +++ doc/guides/rel_notes/release_19_02.rst | 5 + 2 files changed, 12 insertions(+) diff --git a/doc/guides/nics/ifc.rst b/doc/guides/nics/ifc.rst index 48f9adf1d..858f35f74 100644 --- a

[dpdk-dev] [PATCH v2 3/9] net/ifc: dump debug message for error

2018-12-12 Thread Xiao Wang
Driver probe may fail for different causes, debug message is helpful for debugging issue. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc

[dpdk-dev] [PATCH v2 5/9] net/ifc: detect if VDPA mode is specified

2018-12-12 Thread Xiao Wang
If user wants the VF to be used in VDPA (vhost data path acceleration) mode, then the user can add a "vdpa=1" parameter for the device. So if driver doesn't not find this option, it should quit and let the bus continue the probe. Signed-off-by: Xiao Wang --- drivers/net/ifc/if

[dpdk-dev] [PATCH v2 4/9] net/ifc: store only registered device instance

2018-12-12 Thread Xiao Wang
If driver fails to register ifc VF device into vhost lib, then this device should not be stored. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file changed, 4 insertions(+), 4

[dpdk-dev] [PATCH v2 6/9] net/ifc: add devarg for LM mode

2018-12-12 Thread Xiao Wang
parameter, device will do dirty page logging and there's no relay thread consuming CPU resource. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c index c0e50

[dpdk-dev] [PATCH v2 2/9] vhost: provide helpers for virtio ring relay

2018-12-12 Thread Xiao Wang
mediate ring to guest ring, and helps to do dirty page logging for live migration. The next patch will leverage these two helpers. Signed-off-by: Xiao Wang --- v2: * Make the vring relay API parameter as "void *" to accomodate the future potential new ring layout, e.g. packed r

[dpdk-dev] [PATCH v2 1/9] vhost: provide helper for host notifier ctrl

2018-12-12 Thread Xiao Wang
VDPA driver can decide if it needs to enable/disable the host notifier mapping, so exposing a API can allow flexibility. A later patch will base on this. Signed-off-by: Xiao Wang --- v2: * Reword the vdpa host notifier control API comment. --- drivers/net/ifc/ifcvf_vdpa.c | 3

[dpdk-dev] [PATCH v2 0/9] support SW assisted VDPA live migration

2018-12-12 Thread Xiao Wang
pdate. * Remove the used ring logging in the relay. * Some comment fix and code cleaning according to Tiwei's comment. * Add release note update. Xiao Wang (9): vhost: provide helper for host notifier ctrl vhost: provide helpers for virtio ring relay net/ifc: dump debug message for er

[dpdk-dev] [PATCH 9/9] doc: update ifc NIC document

2018-11-28 Thread Xiao Wang
Signed-off-by: Xiao Wang --- doc/guides/nics/ifc.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/nics/ifc.rst b/doc/guides/nics/ifc.rst index 48f9adf1d..a16f2982f 100644 --- a/doc/guides/nics/ifc.rst +++ b/doc/guides/nics/ifc.rst @@ -39,6 +39,12 @@ the driver probe a

[dpdk-dev] [PATCH 8/9] net/ifc: support SW assisted VDPA live migration

2018-11-28 Thread Xiao Wang
ation when selecting the live migration support mode. Signed-off-by: Xiao Wang --- drivers/net/ifc/base/ifcvf.h | 1 + drivers/net/ifc/ifcvf_vdpa.c | 346 ++- 2 files changed, 344 insertions(+), 3 deletions(-) diff --git a/drivers/net/ifc/base/ifcvf.h b/dr

[dpdk-dev] [PATCH 7/9] net/ifc: use lib API for used ring logging

2018-11-28 Thread Xiao Wang
Vhost lib has already provided a helper for used ring logging, driver could use it to reduce code. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers

[dpdk-dev] [PATCH 4/9] net/ifc: store only registered device instance

2018-11-28 Thread Xiao Wang
If driver fails to register ifc VF device into vhost lib, then this device should not be stored. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file changed, 4 insertions(+), 4

[dpdk-dev] [PATCH 5/9] net/ifc: detect if VDPA mode is specified

2018-11-28 Thread Xiao Wang
If user wants the VF to be used in VDPA (vhost data path acceleration) mode, then the user can add a "vdpa=1" parameter for the device. So if driver doesn't not find this option, it should quit and let the bus continue the probe. Signed-off-by: Xiao Wang --- drivers/net/ifc/if

[dpdk-dev] [PATCH 6/9] net/ifc: add devarg for LM mode

2018-11-28 Thread Xiao Wang
parameter, device will do dirty page logging and there's no relay thread consuming CPU resource. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c

[dpdk-dev] [PATCH 1/9] vhost: provide helper for host notifier ctrl

2018-11-28 Thread Xiao Wang
VDPA driver can decide if it needs to enable/disable the EPT mapping, exposing a API can allow flexibility. A later patch will base on this. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 3 +++ lib/librte_vhost/rte_vdpa.h| 18 ++ lib

[dpdk-dev] [PATCH 3/9] net/ifc: dump debug message for error

2018-11-28 Thread Xiao Wang
Driver probe may fail for different causes, debug message is helpful for debugging issue. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc

[dpdk-dev] [PATCH 0/9] support SW assisted VDPA live migration

2018-11-28 Thread Xiao Wang
elect if the SW mode is used or not. Xiao Wang (9): vhost: provide helper for host notifier ctrl vhost: provide helpers for virtio ring relay net/ifc: dump debug message for error net/ifc: store only registered device instance net/ifc: detect if VDPA mode is specified net/ifc: add devar

[dpdk-dev] [PATCH 2/9] vhost: provide helpers for virtio ring relay

2018-11-28 Thread Xiao Wang
mediate ring to guest ring, and helps to do dirty page logging for live migration. The next patch will leverage these two helpers. Signed-off-by: Xiao Wang --- lib/librte_vhost/rte_vdpa.h| 38 lib/librte_vhost/rte_vhost_version.map | 2 + lib/librte_vhost/vdpa.c

[dpdk-dev] [PATCH] net/ifc: fix build with type virtio16

2018-10-07 Thread Xiao Wang
The typedef of "__virtio16" is introduced into Linux kernel in v3.19. To prevent build error on old kernel, this patch replaces the "__virtio" usage with "uint16_t". Fixes: d7fe5a2861e7 ("net/ifc: support live migration") Signed-off-by: Xiao Wang --- dri

[dpdk-dev] [PATCH] net/ifc: fix function name

2018-09-24 Thread Xiao Wang
The address translation from user virtual address to guest physical address should not be named as qva_to_gpa. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 14 +++--- 1 file changed, 7 insertions(+), 7

[dpdk-dev] [PATCH v2] net/ifc: do not notify before HW ready

2018-09-13 Thread Xiao Wang
kick relay happens before vdpa_ifcvf_start finishes, a null addr is accessed. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") Signed-off-by: Xiao Wang --- v2: * Add description for the fix in the commit log. --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file changed, 4 insert

[dpdk-dev] [PATCH] net/ifc: do not notify before HW ready

2018-09-10 Thread Xiao Wang
Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c index 3c5430dc0..7d3085d8d 10

[dpdk-dev] [PATCH] net/ifc: add live migration support

2018-09-10 Thread Xiao Wang
IFCVF can help to log dirty page in live migration stage, each queue's index can be read and configured to support VHOST_USER_GET_VRING_BASE and VHOST_USER_SET_VRING_BASE. Signed-off-by: Xiao Wang --- drivers/net/ifc/base/ifcvf.c | 33 +++- drivers/net/ifc/base/ifcvf.h

[dpdk-dev] [PATCH 2/2] net/ifc: add to meson build

2018-06-13 Thread Xiao Wang
Signed-off-by: Bruce Richardson Signed-off-by: Xiao Wang --- drivers/net/ifc/meson.build | 7 +++ drivers/net/meson.build | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 drivers/net/ifc/meson.build diff --git a/drivers/net/ifc/meson.build b/drivers/net/ifc

[dpdk-dev] [PATCH 1/2] net/ifc: make driver name consistent

2018-06-13 Thread Xiao Wang
Make the compiler switch name and document name consistent as ``ifc`` to avoid confusion. Also rename the map file to standard name for meson build in the process. Signed-off-by: Xiao Wang Signed-off-by: Bruce Richardson --- MAINTAINERS | 4

[dpdk-dev] [PATCH 0/2] add ifc driver to meson build

2018-06-13 Thread Xiao Wang
The first patch unifies the driver name in compiler flag, document. The second patch adds ifc driver to meson build. Xiao Wang (2): net/ifc: make driver name consistent net/ifc: add to meson build MAINTAINERS | 4 ++-- config/common_base

[dpdk-dev] [PATCH v2] doc: add note for MAX QUEUES macro in vhost sample

2018-05-24 Thread Xiao Wang
If the NIC has a queue number larger than 128, then we need to change the ``MAX_QUEUES`` to a larger number to make sure we allocate a big enough memory pool for device setup. Signed-off-by: Xiao Wang Acked-by: Maxime Coquelin Acked-by: Marko Kovacevic --- v2: - Fix unexpected indentation

[dpdk-dev] [PATCH] doc: add note for MAX QUEUES macro in vhost sample

2018-05-23 Thread Xiao Wang
If the NIC has a queue number larger than 128, then we need to change the ``MAX_QUEUES`` to a larger number to make sure we allocate a big enough memory pool for device setup. Signed-off-by: Xiao Wang --- doc/guides/sample_app_ug/vhost.rst | 10 ++ 1 file changed, 10 insertions(+) diff

  1   2   3   4   >