#
c2ab5162 |
| 10-Dec-2014 |
Ouyang Changchun <changchun.ouyang@intel.com> |
examples/vhost: fix hard forward of jumbo frames
Search the right segment to increase its data length, rather than wrongly early return and exit the tx function, which leads to drop all jumbo frame
examples/vhost: fix hard forward of jumbo frames
Search the right segment to increase its data length, rather than wrongly early return and exit the tx function, which leads to drop all jumbo frame packets when vm2vm is in hard forward mode.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
show more ...
|
#
8bd6c395 |
| 09-Dec-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: increase maximum queue number
Increase MAX_QUEUES from 256 to 512.
In vhost example, MAX_QUEUES macro should be the maximum possible queue number of the port. Theoretically we shoul
examples/vhost: increase maximum queue number
Increase MAX_QUEUES from 256 to 512.
In vhost example, MAX_QUEUES macro should be the maximum possible queue number of the port. Theoretically we should only set up the queues that are used, i.e., first rx queue of each pool, or at most queues from 0 to MAX_QUEUES. Before we revise the implementation and are certain all NICs support this well, add a remind message to user.
Signed-off-by: Huawei Xie <huawei.xie@intel.com>
show more ...
|
#
db4014f2 |
| 12-Nov-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: use factorized default Rx/Tx configuration
Refer to Pablo's commit (81f7ecd934372fc): "use factorized default Rx/Tx configuration
For apps that were using default rte_eth_rx
examples/vhost: use factorized default Rx/Tx configuration
Refer to Pablo's commit (81f7ecd934372fc): "use factorized default Rx/Tx configuration
For apps that were using default rte_eth_rxconf and rte_eth_txconf structures, these have been removed and now they are obtained by calling rte_eth_dev_info_get, just before setting up RX/TX queues."
Move zero copy's deferred start set up ahead.
Signed-off-by: Huawei Xie <huawei.xie@intel.com>
show more ...
|
#
84b02d16 |
| 12-Nov-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: support new VMDQ API for i40e
In Niantic, if VMDQ mode is set, all queues are allocated to VMDQ in DPDK. In I40E, only configured part of continous queues are allocated to VMDQ. The
examples/vhost: support new VMDQ API for i40e
In Niantic, if VMDQ mode is set, all queues are allocated to VMDQ in DPDK. In I40E, only configured part of continous queues are allocated to VMDQ. The rte_eth_dev_info structure is extended to provide VMDQ queue base, queue number, and VMDQ pool base information. This patch support the new VMDQ API in vhost example.
FIXME in PMD: * added mac address will be flushed at rte_eth_dev_start. * we don't support selectively setting up queues well.
Test report: http://dpdk.org/ml/archives/dev/2014-December/009427.html
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Jing Chen <jing.d.chen@intel.com> Tested-by: Jingguo Fu <jingguox.fu@intel.com>
show more ...
|
#
fdf20fa7 |
| 19-Nov-2014 |
Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> |
add prefix to cache line macros
CACHE_LINE_SIZE is a macro defined in machine/param.h in FreeBSD and conflicts with DPDK macro version. Adding RTE_ prefix to avoid conflicts. CACHE_LINE_MASK and CAC
add prefix to cache line macros
CACHE_LINE_SIZE is a macro defined in machine/param.h in FreeBSD and conflicts with DPDK macro version. Adding RTE_ prefix to avoid conflicts. CACHE_LINE_MASK and CACHE_LINE_ROUNDUP are also prefixed.
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> [Thomas: updated on HEAD, including PPC]
show more ...
|
#
98a16481 |
| 26-Sep-2014 |
David Marchand <david.marchand@6wind.com> |
examples: no more bare metal environment
Signed-off-by: David Marchand <david.marchand@6wind.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.
examples: no more bare metal environment
Signed-off-by: David Marchand <david.marchand@6wind.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
show more ...
|
#
90924caf |
| 08-Nov-2014 |
Ouyang Changchun <changchun.ouyang@intel.com> |
vhost: enable promiscuous and multicast
This is to enable user space vhost receiving and forwarding broadcast and multicast packets: Use new option in command line to enable promisc mode; Enable 2 b
vhost: enable promiscuous and multicast
This is to enable user space vhost receiving and forwarding broadcast and multicast packets: Use new option in command line to enable promisc mode; Enable 2 bits in VMDQ RX mode: ETH_VMDQ_ACCEPT_BROADCAST and ETH_VMDQ_ACCEPT_MULTICAST.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
show more ...
|
#
6630bc42 |
| 05-Nov-2014 |
Ouyang Changchun <changchun.ouyang@intel.com> |
examples/vhost: check offset with vlan
This patch checks the packet length offset value, and checks if the extra bytes inside buffer cross page boundary.
Signed-off-by: Changchun Ouyang <changchun.
examples/vhost: check offset with vlan
This patch checks the packet length offset value, and checks if the extra bytes inside buffer cross page boundary.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
72ec8d77 |
| 05-Nov-2014 |
Ouyang Changchun <changchun.ouyang@intel.com> |
examples/vhost: rework duplicated code
Extract a function to replace duplicated codes in one copy and zero copy TX function.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: K
examples/vhost: rework duplicated code
Extract a function to replace duplicated codes in one copy and zero copy TX function.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
e44fb8a4 |
| 05-Nov-2014 |
Ouyang Changchun <changchun.ouyang@intel.com> |
examples/vhost: fix packet length
As HW vlan strip will reduce the packet length by minus length of vlan tag, so it need restore the packet length by plus it.
Signed-off-by: Changchun Ouyang <chang
examples/vhost: fix packet length
As HW vlan strip will reduce the packet length by minus length of vlan tag, so it need restore the packet length by plus it.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Acked-by: Huawei Xie <huawei.xie@intel.com>
show more ...
|
#
94cae385 |
| 30-Oct-2014 |
Ouyang Changchun <changchun.ouyang@intel.com> |
examples/vhost: allow mergeable packets with vector ixgbe
Since the commit 33e79bed3edc2bcf59 has fixed the issue in vector PMD, and then it can receive jumbo frame by scatter-gather mode, so remove
examples/vhost: allow mergeable packets with vector ixgbe
Since the commit 33e79bed3edc2bcf59 has fixed the issue in vector PMD, and then it can receive jumbo frame by scatter-gather mode, so remove this check.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Huawei Xie <huawei.xie@intel.com>
show more ...
|
#
a981294b |
| 20-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: minor fixes
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
|
#
364dddcd |
| 20-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: add branch hints
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
|
#
b5967c1f |
| 23-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: disable guest notifications
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
|
#
28deb020 |
| 23-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: mergeable buffer option
Mergeable feature doesn't work with latest mbuf change. Disabling IXGBE_INC_VECTOR is a temporary workaround.
Signed-off-by: Huawei Xie <huawei.xie@intel.com
examples/vhost: mergeable buffer option
Mergeable feature doesn't work with latest mbuf change. Disabling IXGBE_INC_VECTOR is a temporary workaround.
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
show more ...
|
#
4d50b6ac |
| 20-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: adapt Tx routing to lib
The packet passed to virtio_tx_route has been allocated mbuf, so there is no need to allocate mbuf for it. Use vlan offload to transmit vlan tagged packet.
S
examples/vhost: adapt Tx routing to lib
The packet passed to virtio_tx_route has been allocated mbuf, so there is no need to allocate mbuf for it. Use vlan offload to transmit vlan tagged packet.
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com> [Thomas: remove useless mbuf pool]
show more ...
|
#
be800696 |
| 20-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: use burst enqueue and dequeue from lib
In switch_worker and virtio_tx_local, rte_vhost_enqueue_burst is called to push host packets to guest VM. Before enqueue packets to guest VM, v
examples/vhost: use burst enqueue and dequeue from lib
In switch_worker and virtio_tx_local, rte_vhost_enqueue_burst is called to push host packets to guest VM. Before enqueue packets to guest VM, vhost example uses configure-able retry logic to wait for enough vring entries. In switch_worker, rte_vhost_dequeue_burst is called to get packets from guest VM, then virtio device will be bound to a queue in VMDQ for the first transmitted packet.
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
show more ...
|
#
5cf27144 |
| 23-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: register with lib
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
|
#
9915bb1f |
| 20-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: hpa regions for zero copy
check_hpa_regions, fill_hpa_memory_regions and hpa memory region data structure are added back from old virtio-net.c.
Add hpa (host physical address) regio
examples/vhost: hpa regions for zero copy
check_hpa_regions, fill_hpa_memory_regions and hpa memory region data structure are added back from old virtio-net.c.
Add hpa (host physical address) region generation/destroy logic. gpa<->hpa memory translation regions are generated at new_device, when a virtio device is ready for packet processing.
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
show more ...
|
#
e571e6b4 |
| 20-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: add vhost dev struct
Define vhost_dev data structure. Change reference to virtio_dev to vhost_dev. The vhost example use vdev data structure for switching related logic and container
examples/vhost: add vhost dev struct
Define vhost_dev data structure. Change reference to virtio_dev to vhost_dev. The vhost example use vdev data structure for switching related logic and container for virtio_dev.
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
show more ...
|
#
d476ed5d |
| 20-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: remove functions implemented in lib
Those functions are integrated into the user space vhost library: virtio_dev_rx, virtio_dev_merge_rx, virtio_dev_tx, virtio_dev_merge_tx, copy_fro
examples/vhost: remove functions implemented in lib
Those functions are integrated into the user space vhost library: virtio_dev_rx, virtio_dev_merge_rx, virtio_dev_tx, virtio_dev_merge_tx, copy_from_mbuf_to_ring, gpa_to_vva.
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
show more ...
|
#
d19533e8 |
| 20-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
examples/vhost: copy old vhost example
This patch copies two files main.c/main.h from most recent vhost example (before transforming into a library) as the base for new vhost example.
Signed-off-by
examples/vhost: copy old vhost example
This patch copies two files main.c/main.h from most recent vhost example (before transforming into a library) as the base for new vhost example.
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
show more ...
|
#
5c7a80ae |
| 08-Oct-2014 |
Huawei Xie <huawei.xie@intel.com> |
vhost: move from examples to dedicated library
Those files will be refactored in subsequent patches to form user space vhost library. Makefile and main.h are removed. main.c is renamed to vhost_rxtx
vhost: move from examples to dedicated library
Those files will be refactored in subsequent patches to form user space vhost library. Makefile and main.h are removed. main.c is renamed to vhost_rxtx.c and will provide vring enqueue/dequeue API. virtio-net.h is renamed to rte_virtio_net.h which is the API header file.
Signed-off-by: Huawei Xie <huawei.xie@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com> [Thomas: remove from examples Makefile and merge file renaming]
show more ...
|
#
3111eae2 |
| 26-Sep-2014 |
Ouyang Changchun <changchun.ouyang@intel.com> |
ethdev: rename flag for queue start and stop
Rename start_?x_per_q to ?x_deferred_start and add comments.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Thomas Monjalon <tho
ethdev: rename flag for queue start and stop
Rename start_?x_per_q to ?x_deferred_start and add comments.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
68fa37e0 |
| 26-Sep-2014 |
Thomas Monjalon <thomas.monjalon@6wind.com> |
examples: do not probe pci twice
Since commit a155d430119 ("support link bonding device initialization"), rte_eal_pci_probe() is called in rte_eal_init(). So it doesn't have to be called by applicat
examples: do not probe pci twice
Since commit a155d430119 ("support link bonding device initialization"), rte_eal_pci_probe() is called in rte_eal_init(). So it doesn't have to be called by application anymore. It has been fixed for testpmd in commit 2950a769315, and this patch remove it from other applications.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: David Marchand <david.marchand@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
show more ...
|