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
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
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
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_
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
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
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
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
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
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
+
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
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
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
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
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 +--
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
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
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
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 +
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
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
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/
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
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
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
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
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
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:
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_
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
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
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(-
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
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
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
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/
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_
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 337 matches
Mail list logo