[dpdk-dev] [PATCH v6 0/7] rte_hash_crc reworked to be platform-independent

2015-02-01 Thread Neil Horman
On Mon, Feb 02, 2015 at 09:07:45AM +0600, Yerden Zhumabekov wrote: > > 01.02.2015 20:13, Neil Horman ?: > > On Thu, Jan 29, 2015 at 02:48:11PM +0600, Yerden Zhumabekov wrote: > >> This is a rework of my previous patches improving performance of > >> rte_hash_crc. > >> > >> Summary of

[dpdk-dev] [PATCH v1] librte_vhost: Add an abstraction to hide vhost-user and cuse devices.

2015-02-01 Thread Tetsuya Mukawa
This patch should be put on "lib/librte_vhost: vhost-user support" patch series written by Xie, Huawei. There are 2 type of vhost devices. One is cuse, the other is vhost-user. So far, one of them we can use. To use the other, DPDK is needed to be recompiled. The patch introduces

[dpdk-dev] Does virtio-net PMD require specific QEMU virtio-net parameters?

2015-02-01 Thread Tetsuya Mukawa
Hi, I cannot invoke virtio-net PMD at least on Ubuntu12 and Ubuntu14 QEMU guest. This behavior might be seen on other users environment also, so I report it. . Here is error log. $ ./testpmd -c f -n 1 -- -i snip Configuring Port0 (socket0) Fail to configuring port 0 tx queues. EAL:

[dpdk-dev] [PATCH] vhost: notify guest to fill buffer when there is no buffer

2015-02-01 Thread Linhaifeng
Hi,xie & xu I found that the new code had try to notify guest after send each packet after 2bbb811. So this bug not exist now. static inline uint32_t __attribute__((always_inline)) virtio_dev_merge_rx(struct virtio_net *dev, uint16_t queue_id, struct rte_mbuf **pkts, uint32_t count) {

[dpdk-dev] [PATCH 03/18] fm10k: Add empty fm10k files

2015-02-01 Thread David Marchand
On Fri, Jan 30, 2015 at 6:07 AM, Chen Jing D(Mark) wrote: > From: Jeff Shaw > > Define macros and basic data structure. > Define rte_log wrapper functions. > This comment applies to the logs macro (and the rest of the patchset). - don't use a build option for logs to be displayed, especially

[dpdk-dev] [PATCH v6] testpmd: Add port hotplug support

2015-02-01 Thread Tetsuya Mukawa
The patch introduces following commands. - port attach [ident] - port detach [port_id] - attach: attaching a port - detach: detaching a port - ident: pci address of physical device. Or device name and paramerters of virtual device. (ex. :02:00.0, eth_pcap0,iface=eth0) -

[dpdk-dev] [PATCH v6] librte_pmd_pcap: Add port hotplug support

2015-02-01 Thread Tetsuya Mukawa
This patch adds finalization code to free resources allocated by the PMD. v6: - Fix a paramter of rte_eth_dev_free(). v4: - Change function name. Signed-off-by: Tetsuya Mukawa --- lib/librte_pmd_pcap/rte_eth_pcap.c | 40 ++ 1 file changed, 40 insertions(+)

[dpdk-dev] [PATCH v6 13/13] eal: Enable port hotplug framework in Linux

2015-02-01 Thread Tetsuya Mukawa
The patch enables CONFIG_RTE_LIBRTE_EAL_HOTPLUG in Linux configuration. Signed-off-by: Tetsuya Mukawa --- config/common_linuxapp | 5 + 1 file changed, 5 insertions(+) diff --git a/config/common_linuxapp b/config/common_linuxapp index 2f9643b..27d05be 100644 --- a/config/common_linuxapp

[dpdk-dev] [PATCH v6 12/13] eal/pci: Add rte_eal_dev_attach/detach() functions

2015-02-01 Thread Tetsuya Mukawa
These functions are used for attaching or detaching a port. When rte_eal_dev_attach() is called, the function tries to realize the device name as pci address. If this is done successfully, rte_eal_dev_attach() will attach physical device port. If not, attaches virtual devive port. When

[dpdk-dev] [PATCH v6 11/13] ethdev: Add one dev_type paramerter to rte_eth_dev_allocate

2015-02-01 Thread Tetsuya Mukawa
This new parameter is needed to keep device type like physical or virtual. Port detaching processes are different between physical and virtual. This paramerter lets detaching function know a device type of the port. v4: - Fix comments of rte_eth_dev_type. Signed-off-by: Tetsuya Mukawa ---

[dpdk-dev] [PATCH v6 09/13] eal/pci: Add a function to remove the entry of devargs list

2015-02-01 Thread Tetsuya Mukawa
The function removes the specified devargs entry from devargs_list. Also the patch adds sanity checking to rte_eal_devargs_add(). v5: - Change function definition of rte_eal_devargs_remove(). v4: - Fix sanity check code. Signed-off-by: Tetsuya Mukawa ---

[dpdk-dev] [PATCH v6 08/13] eal/linux/pci: Add functions for unmapping igb_uio resources

2015-02-01 Thread Tetsuya Mukawa
The patch adds functions for unmapping igb_uio resources. The patch is only for Linux and igb_uio environment. VFIO and BSD are not supported. v5: - Fix pci_unmap_device() to check pt_driver. v4: - Add paramerter checking. - Add header file to determine if hotplug can be enabled. Signed-off-by:

[dpdk-dev] [PATCH v6 07/13] ethdev: Add functions that will be used by port hotplug functions

2015-02-01 Thread Tetsuya Mukawa
The patch adds following functions. - rte_eth_dev_save() The function is used for saving current rte_eth_dev structures. - rte_eth_dev_get_changed_port() The function receives the rte_eth_dev structures, then compare these with current values to know which port is actually attached or

[dpdk-dev] [PATCH v6 05/13] ethdev: Add rte_eth_dev_free to free specified device

2015-02-01 Thread Tetsuya Mukawa
This patch adds rte_eth_dev_free(). The function is used for changing a attached status of the device that has specified name. v6: - Use rte_eth_dev structure as the paramter of rte_eth_dev_free(). v4: - Add paramerter checking. Signed-off-by: Tetsuya Mukawa --- lib/librte_ether/rte_ethdev.c |

[dpdk-dev] [PATCH v6 04/13] eal/pci: Consolidate pci address comparison APIs

2015-02-01 Thread Tetsuya Mukawa
This patch replaces pci_addr_comparison() and memcmp() of pci addresses by eal_compare_pci_addr(). v5: - Fix pci_scan_one to handle pt_driver correctly. v4: - Fix calculation method of eal_compare_pci_addr(). - Add parameter checking. Signed-off-by: Tetsuya Mukawa ---

[dpdk-dev] [PATCH v6 03/13] eal/pci, ethdev: Remove assumption that port will not be detached

2015-02-01 Thread Tetsuya Mukawa
To remove assumption, do like followings. This patch adds "RTE_PCI_DRV_DETACHABLE" to drv_flags of rte_pci_driver structure. The flags indicates the driver can detach devices at runtime. Also remove assumption that port will not be detached. To remove the assumption. - Add 'attached' member to

[dpdk-dev] [PATCH v6 02/13] eal_pci: pci memory map work with driver type

2015-02-01 Thread Tetsuya Mukawa
From: Michael Qiu With the driver type flag in struct rte_pci_dev, we do not need to always map uio devices with vfio related function when vfio enabled. Signed-off-by: Michael Qiu Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/linuxapp/eal/eal_pci.c | 30

[dpdk-dev] [PATCH v6 01/13] eal_pci: Add flag to hold kernel driver type

2015-02-01 Thread Tetsuya Mukawa
From: Michael Qiu Currently, dpdk has no ability to know which type of driver( vfio-pci/igb_uio/uio_pci_generic) the device used. It only can check whether vfio is enabled or not staticly. It really useful to have the flag, becasue different type need to handle

[dpdk-dev] [PATCH v6 00/13] Port Hotplug Framework

2015-02-01 Thread Tetsuya Mukawa
This patch series adds a dynamic port hotplug framework to DPDK. With the patches, DPDK apps can attach or detach ports at runtime. The basic concept of the port hotplug is like followings. - DPDK apps must have responsibility to manage ports. DPDK apps only know which ports are attached or

[dpdk-dev] [PATCH 7/7] rte_sched: rearrange data structures

2015-02-01 Thread Stephen Hemminger
From: Stephen Hemminger Rearrange internal data structures to eliminate holes. Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/librte_sched/rte_sched.c

[dpdk-dev] [PATCH 6/7] rte_sched: eliminate floating point in calculating byte clock

2015-02-01 Thread Stephen Hemminger
From: Stephen Hemminger The old code was doing a floating point divide for each rte_dequeue() which is very expensive. Change to using fixed point scaled math instead. This improved performance from 5Gbit/sec to 10 Gbit/sec Signed-off-by: Stephen Hemminger ---

[dpdk-dev] [PATCH 4/7] rte_sched: don't clear statistics when read

2015-02-01 Thread Stephen Hemminger
From: Stephen Hemminger Make rte_sched statistics API work like the ethernet statistics API. Don't auto-clear statistics. Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 30 ++ lib/librte_sched/rte_sched.h | 29

[dpdk-dev] [PATCH 2/7] rte_sched: use reserved field to allow more VLAN's

2015-02-01 Thread Stephen Hemminger
From: Stephen Hemminger The QoS subport is limited to 8 bits in original code. But customers demanded ability to support full number of VLAN's (4096) therefore use reserved field of mbuf for this field instead of packing inside other classify portions. Signed-off-by:

[dpdk-dev] [PATCH 1/7] rte_sched: make RED optional at runtime

2015-02-01 Thread Stephen Hemminger
From: Stephen Hemminger Want to be able to build with RTE_SCHED_RED enabled but allow disabling RED on a per-queue basis at runtime. RED is disabled unless min/max thresholds set. Signed-off-by: Stephen Hemmminger --- lib/librte_sched/rte_sched.c | 9 + 1 file

[dpdk-dev] [PATCH 4/7] rte_sched: don't clear statistics when read

2015-02-01 Thread Neil Horman
On Sun, Feb 01, 2015 at 10:03:48AM +, Stephen Hemminger wrote: > From: Stephen Hemminger > > Make rte_sched statistics API work like the ethernet statistics API. > Don't auto-clear statistics. > > Signed-off-by: Stephen Hemminger > --- > lib/librte_sched/rte_sched.c | 30

[dpdk-dev] [PATCH v6 0/7] rte_hash_crc reworked to be platform-independent

2015-02-01 Thread Neil Horman
On Thu, Jan 29, 2015 at 02:48:11PM +0600, Yerden Zhumabekov wrote: > This is a rework of my previous patches improving performance of rte_hash_crc. > > Summary of changes: > * software implementation of CRC32 introduced; > * in the runtime, algorithm can fall back to software version if CPU

[dpdk-dev] [RFC PATCH 4/4] doc: remove copyright footer

2015-02-01 Thread Thomas Monjalon
In order to be more vendor neutral, copyright should not be printed in the footer of every documentation pages. It should help to have documentation from other vendors. Copyright is still written in the source files. Sphinx notice is also removed to make the footer empty in the current theme.

[dpdk-dev] [RFC PATCH 3/4] doc: nics guide

2015-02-01 Thread Thomas Monjalon
Create nics guide by moving chapters about Intel NICS. Signed-off-by: Thomas Monjalon --- MAINTAINERS| 13 +- doc/guides/index.rst | 1 + .../driver_vm_emul_dev.rst => nics/e1000em.rst}| 0 doc/guides/{prog_guide =>

[dpdk-dev] [RFC PATCH 2/4] doc: move Xen guide out of programmers guide

2015-02-01 Thread Thomas Monjalon
Xen is an environment comparable to Linux and FreeBSD which have their own guide. Signed-off-by: Thomas Monjalon --- MAINTAINERS | 2 +- doc/guides/index.rst| 1 + doc/guides/prog_guide/index.rst

[dpdk-dev] [RFC PATCH 1/4] doc: fix file attributes

2015-02-01 Thread Thomas Monjalon
Signed-off-by: Thomas Monjalon --- doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst | 0 doc/guides/prog_guide/poll_mode_drv.rst| 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst mode

[dpdk-dev] [RFC PATCH 0/4] welcome doc for new nics and environments

2015-02-01 Thread Thomas Monjalon
Too many things are included in the programmers guide. I think it should cover only API and knowledge needed to make an application. That's why I suggest to move Xen and NICs doc outside. Then it will be easier to add doc for a new environment or a new NIC. Note that drivers or device-related libs