|
Revision tags: v18.11-rc1 |
|
| #
f79052fc |
| 25-Oct-2018 |
Tiwei Bie <tiwei.bie@intel.com> |
net/virtio: drop duplicated reset method
Drop the duplicated reset() method in virtio_pci_ops. Currently vtpci_reset() is implemented on set_status() and get_status() directly. The reset() method in
net/virtio: drop duplicated reset method
Drop the duplicated reset() method in virtio_pci_ops. Currently vtpci_reset() is implemented on set_status() and get_status() directly. The reset() method in virtio_pci_ops isn't used and its implementation in the legacy device isn't right.
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
| #
c9cce428 |
| 23-Oct-2018 |
Thomas Monjalon <thomas@monjalon.net> |
ethdev: remove deprecated attach/detach functions
The hotplug attach/detach features are implemented in EAL layer. There is a new ethdev iterator to retrieve ports from ethdev layer.
As announced e
ethdev: remove deprecated attach/detach functions
The hotplug attach/detach features are implemented in EAL layer. There is a new ethdev iterator to retrieve ports from ethdev layer.
As announced earlier, the (buggy) ethdev functions are now removed.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
| #
e16adf08 |
| 19-Oct-2018 |
Thomas Monjalon <thomas@monjalon.net> |
ethdev: free all common data when releasing port
This is a clean-up of common ethdev data freeing. All data freeing are moved to rte_eth_dev_release_port() and done only in case of primary process.
ethdev: free all common data when releasing port
This is a clean-up of common ethdev data freeing. All data freeing are moved to rte_eth_dev_release_port() and done only in case of primary process.
It is probably fixing some memory leaks for PMDs which were not freeing all data.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
|
Revision tags: v18.08, v18.08-rc3 |
|
| #
62758c76 |
| 30-Jul-2018 |
Tiwei Bie <tiwei.bie@intel.com> |
net/virtio-user: fix parameters string
Add the missing param "server" to param string. Also add the missing spaces after params.
Fixes: bd8f50a45d0f ("net/virtio-user: support server mode") Cc: sta
net/virtio-user: fix parameters string
Add the missing param "server" to param string. Also add the missing spaces after params.
Fixes: bd8f50a45d0f ("net/virtio-user: support server mode") Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
|
Revision tags: v18.08-rc2, v18.08-rc1 |
|
| #
57f81896 |
| 02-Jul-2018 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
net/virtio: remove simple Tx path
The simple Tx path does not comply with the Virtio specification. Now that VIRTIO_F_IN_ORDER feature is supported by the Virtio PMD, let's use this optimized path i
net/virtio: remove simple Tx path
The simple Tx path does not comply with the Virtio specification. Now that VIRTIO_F_IN_ORDER feature is supported by the Virtio PMD, let's use this optimized path instead.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
show more ...
|
| #
488ed97a |
| 02-Jul-2018 |
Marvin Liu <yong.liu@intel.com> |
net/virtio-user: add mrg-rxbuf and in-order vdev parameters
Add parameters for configuring VIRTIO_NET_F_MRG_RXBUF and VIRTIO_F_IN_ORDER feature bits. If feature is disabled, also update correspondin
net/virtio-user: add mrg-rxbuf and in-order vdev parameters
Add parameters for configuring VIRTIO_NET_F_MRG_RXBUF and VIRTIO_F_IN_ORDER feature bits. If feature is disabled, also update corresponding unsupported feature bit.
Signed-off-by: Marvin Liu <yong.liu@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
| #
7c66ff61 |
| 02-Jul-2018 |
Marvin Liu <yong.liu@intel.com> |
net/virtio-user: add unsupported features mask
This patch introduces unsupported features mask for virtio-user device. For virtio-user server mode, when reconnecting virtio-user will retrieve vhost
net/virtio-user: add unsupported features mask
This patch introduces unsupported features mask for virtio-user device. For virtio-user server mode, when reconnecting virtio-user will retrieve vhost device features as base and then unmask unsupported features.
Signed-off-by: Marvin Liu <yong.liu@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
| #
9f233f54 |
| 02-Jul-2018 |
Marvin Liu <yong.liu@intel.com> |
net/virtio: add in-order feature bit definition
If VIRTIO_F_IN_ORDER has been negotiated, driver will use descriptors in ring order: starting from offset 0 in the table, and wrapping around at the e
net/virtio: add in-order feature bit definition
If VIRTIO_F_IN_ORDER has been negotiated, driver will use descriptors in ring order: starting from offset 0 in the table, and wrapping around at the end of the table. Also introduce use_inorder_[rt]x flag for selection of IN_ORDER [RT]x handlers.
Signed-off-by: Marvin Liu <yong.liu@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
|
Revision tags: v18.05, v18.05-rc6, v18.05-rc5, v18.05-rc4, v18.05-rc3 |
|
| #
201a4165 |
| 11-May-2018 |
Zhiyong Yang <zhiyong.yang@intel.com> |
net/virtio-user: fix multiple queues fail in server mode
This patch fixes multiple queues failure when virtio-user works in server mode.
This patch adds feature negotiation in the processing of vir
net/virtio-user: fix multiple queues fail in server mode
This patch fixes multiple queues failure when virtio-user works in server mode.
This patch adds feature negotiation in the processing of virtio-user connection and enables multiple-queue pairs.
Fixes: bd8f50a45d0f ("net/virtio-user: support server mode") Cc: stable@dpdk.org
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com> Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
show more ...
|
| #
fbe90cdd |
| 10-May-2018 |
Thomas Monjalon <thomas@monjalon.net> |
ethdev: add probing finish function
A new hook function is added and called inside the PMDs at the end of the device probing: - in primary process, after allocating, init and config - in secondary
ethdev: add probing finish function
A new hook function is added and called inside the PMDs at the end of the device probing: - in primary process, after allocating, init and config - in secondary process, after attaching and local init
This new function is almost empty for now. It will be used later to add some post-initialization processing.
For the PMDs calling the helpers rte_eth_dev_create() or rte_eth_dev_pci_generic_probe(), the hook rte_eth_dev_probing_finish() is called from here, and not in the PMD itself.
Note that the helper rte_eth_dev_create() could be used more, especially for vdevs, avoiding some code duplication in PMDs.
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
|
Revision tags: v18.05-rc2, v18.05-rc1 |
|
| #
bd8f50a4 |
| 06-Apr-2018 |
Zhiyong Yang <zhiyong.yang@intel.com> |
net/virtio-user: support server mode
In a container environment if the vhost-user backend restarts, there's no way for it to reconnect to virtio-user. To address this, support for server mode is add
net/virtio-user: support server mode
In a container environment if the vhost-user backend restarts, there's no way for it to reconnect to virtio-user. To address this, support for server mode is added. In this mode the socket file is created by virtio- user, which the backend then connects to. This means that if the backend restarts, it can reconnect to virtio-user and continue communications.
With current implementation, LSC is enabled at virtio-user side to support to accept the coming connection.
Server mode virtio-user only supports to work with vhost-user.
Release note is updated in this patch.
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com> Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
show more ...
|
|
Revision tags: v18.02, v18.02-rc4, v18.02-rc3, v18.02-rc2, v18.02-rc1, v17.11 |
|
| #
f76ef453 |
| 14-Nov-2017 |
Sebastian Basierski <sebastianx.basierski@intel.com> |
net/virtio-user: check error on clearing non block flag
Report error message if clearing O_NONBLOCK flag will fail, then return from function.
Coverity issue: 143439 Fixes: ef53b6030039 ("net/virti
net/virtio-user: check error on clearing non block flag
Report error message if clearing O_NONBLOCK flag will fail, then return from function.
Coverity issue: 143439 Fixes: ef53b6030039 ("net/virtio-user: support LSC") Cc: stable@dpdk.org
Signed-off-by: Sebastian Basierski <sebastianx.basierski@intel.com> Acked-by: Jianfeng Tan <jianfeng.tan@intel.com> Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
show more ...
|
| #
5566a3e3 |
| 19-Dec-2017 |
Bruce Richardson <bruce.richardson@intel.com> |
drivers: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <bruce.richardson@in
drivers: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
|
Revision tags: v17.11-rc4, v17.11-rc3 |
|
| #
d4a586d2 |
| 07-Nov-2017 |
Jianfeng Tan <jianfeng.tan@intel.com> |
bus/vdev: move code from EAL into a new driver
Move the vdev bus from lib/librte_eal to drivers/bus.
As the crypto vdev helper function refers to data structure in rte_vdev.h, so we move those help
bus/vdev: move code from EAL into a new driver
Move the vdev bus from lib/librte_eal to drivers/bus.
As the crypto vdev helper function refers to data structure in rte_vdev.h, so we move those helper function into drivers/bus too.
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
show more ...
|
|
Revision tags: v17.11-rc2 |
|
| #
00a3d810 |
| 24-Oct-2017 |
Gaetan Rivet <gaetan.rivet@6wind.com> |
ethdev: remove detachable device flag
This flag is not necessary at the ether layer anymore. Buses are able to advertise their hotplug support. The ether layer can rely upon this capability instead
ethdev: remove detachable device flag
This flag is not necessary at the ether layer anymore. Buses are able to advertise their hotplug support. The ether layer can rely upon this capability instead of a special flag.
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com> Acked-by: John McNamara <john.mcnamara@intel.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
| #
2fd826a3 |
| 24-Oct-2017 |
Sebastian Basierski <sebastianx.basierski@intel.com> |
net/virtio: check error on setting non block flag
Report an error message if the flag O_NONBLOCK setting fails, then return from function.
Coverity issue: 143439 Fixes: ef53b6030039 ("net/virtio-us
net/virtio: check error on setting non block flag
Report an error message if the flag O_NONBLOCK setting fails, then return from function.
Coverity issue: 143439 Fixes: ef53b6030039 ("net/virtio-user: support LSC") Cc: stable@dpdk.org
Signed-off-by: Sebastian Basierski <sebastianx.basierski@intel.com> Acked-by: Jianfeng Tan <jianfeng.tan@intel.com> Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
show more ...
|
|
Revision tags: v17.11-rc1 |
|
| #
09649363 |
| 07-Sep-2017 |
Olivier Matz <olivier.matz@6wind.com> |
net/virtio: keep Rx handler whatever the Tx queue config
Split use_simple_rxtx into use_simple_rx and use_simple_tx, and ensure that only use_simple_tx is updated when txq flags forces to use the st
net/virtio: keep Rx handler whatever the Tx queue config
Split use_simple_rxtx into use_simple_rx and use_simple_tx, and ensure that only use_simple_tx is updated when txq flags forces to use the standard Tx handler.
This change is also useful for next commit (disable simple Rx path when Rx checksum is requested).
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
show more ...
|
|
Revision tags: v17.08, v17.08-rc4, v17.08-rc3, v17.08-rc2 |
|
| #
7d47868c |
| 11-Jul-2017 |
Stephen Hemminger <stephen@networkplumber.org> |
drivers/net: remove duplicate includes
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
|
|
Revision tags: v17.08-rc1 |
|
| #
c3b2fdfe |
| 23-Jun-2017 |
Yong Wang <wang.yong19@zte.com.cn> |
net/virtio-user: fix comment
Since "rte_eal_dev_init()" has been removed, the comment referred to it should be modified simultaneously.
Fixes: 9721b4d543a3 ("eal: remove unused device init function
net/virtio-user: fix comment
Since "rte_eal_dev_init()" has been removed, the comment referred to it should be modified simultaneously.
Fixes: 9721b4d543a3 ("eal: remove unused device init function")
Signed-off-by: Yong Wang <wang.yong19@zte.com.cn> Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
show more ...
|
| #
2a7b7d83 |
| 23-Jun-2017 |
Allain Legacy <allain.legacy@windriver.com> |
net/virtio-user: fix crash when detaching device
The rte_eth_dev.data pointer is set to a reference to a static table. Attempting to rte_free() it leads to a panic. For example, the following comma
net/virtio-user: fix crash when detaching device
The rte_eth_dev.data pointer is set to a reference to a static table. Attempting to rte_free() it leads to a panic. For example, the following commands result in a panic if run in testpmd
testpmd> port attach virtio_user0,path=/dev/vhost-net,iface=test0 testpmd> port stop 2 testpmd> port close 2 testpmd> port detach 2
Fixes: ce2eabdd43ec ("net/virtio-user: add virtual device") Cc: stable@dpdk.org
Signed-off-by: Allain Legacy <allain.legacy@windriver.com> Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
show more ...
|
|
Revision tags: v17.05, v17.05-rc4 |
|
| #
3dcfe039 |
| 04-May-2017 |
Thomas Monjalon <thomas@monjalon.net> |
pci: remove eal prefix
The PCI code will move to the bus drivers directory. Rename functions from rte_eal_pci_ to rte_pci_ to prepare the move of the driver out of EAL.
Signed-off-by: Thomas Monjal
pci: remove eal prefix
The PCI code will move to the bus drivers directory. Rename functions from rte_eal_pci_ to rte_pci_ to prepare the move of the driver out of EAL.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
|
Revision tags: v17.05-rc3, v17.05-rc2 |
|
| #
050fe6e9 |
| 11-Apr-2017 |
Jan Blunck <jblunck@infradead.org> |
drivers/net: use ethdev allocation helper for vdev
Signed-off-by: Jan Blunck <jblunck@infradead.org> Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com> Acked-by: Stephen Hemminger <stephen@network
drivers/net: use ethdev allocation helper for vdev
Signed-off-by: Jan Blunck <jblunck@infradead.org> Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
| #
5d2aa461 |
| 11-Apr-2017 |
Jan Blunck <jblunck@infradead.org> |
vdev: use generic vdev struct for probe and remove
This is a preparation to embed the generic rte_device into the rte_eth_dev also for virtual devices.
Signed-off-by: Jan Blunck <jblunck@infradead.
vdev: use generic vdev struct for probe and remove
This is a preparation to embed the generic rte_device into the rte_eth_dev also for virtual devices.
Signed-off-by: Jan Blunck <jblunck@infradead.org> Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
show more ...
|
|
Revision tags: v17.05-rc1 |
|
| #
727d83ca |
| 02-Mar-2017 |
Ami Sabo <amis@radware.com> |
net/virtio-user: fix multi-process attach
Secondary process doesn't properly attach to the rte_eth_device initialized by the primary process.
Accessing device from secondary process (e.g. via rte_e
net/virtio-user: fix multi-process attach
Secondary process doesn't properly attach to the rte_eth_device initialized by the primary process.
Accessing device from secondary process (e.g. via rte_eth_rx_burst), causes process to crash. because rte_eth_dev_data is not properly set.
The issue was flood by 'commit 7f95f78a8aea ("ethdev: clear data when allocating device")' which now clears rte_eth_dev_data entry. For pci devices the struct is initialized by rte_eth_dev_pci_probe ->eth_dev_attach_secondary(). However, for virtio-user virtio_user_pmd_probe() is called instead of rte_eth_dev_pci_probe().
The fix is to call rte_eth_dev_attach_secondary(), for secondary process, from virtio_user_pmd_probe.
Fixes: 7f95f78a8aea ("ethdev: clear data when allocating device") Cc: stable@dpdk.org
Signed-off-by: Ami Sabo <amis@radware.com>
show more ...
|
| #
ef53b603 |
| 31-Mar-2017 |
Jianfeng Tan <jianfeng.tan@intel.com> |
net/virtio-user: support LSC
So far, virtio-user with vhost-user as the backend can only support client mode. So when vhost user backend is down, i.e., unix socket connection is broken, the connecti
net/virtio-user: support LSC
So far, virtio-user with vhost-user as the backend can only support client mode. So when vhost user backend is down, i.e., unix socket connection is broken, the connection cannot be re-connected. We will forcely set the link state to be down.
Note: virtio-user with vhost-kernel as the backend still cannot support lsc now as we fail to find a way to monitor the backend, tap device, up/down events.
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com> Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
show more ...
|