[dpdk-dev] Ethernet API - multiple post-RX-burst callbacks' run-order is opposite to their add-order

2015-07-02 Thread Sanford, Robert
When one adds multiple post-RX-burst callbacks to a queue, their execution order is the opposite of the order in which they are added. For example, we add callback A( ), and then we add callback B( ). When we call rte_eth_rx_burst, after invoking the device's rx_pkt_burst function, it will

[dpdk-dev] [PATCH 2/3] doc: added guidelines on dpdk documentation

2015-07-02 Thread Thomas Monjalon
2015-07-02 14:50, John McNamara: > Added guidelines on the purpose and structure of the DPDK > documentation, how to build it and guidelines for creating it. > > Also added guidelines on how to format and submit a documentation patch. Good idea to have guidelines for doc. But I think the

[dpdk-dev] [PATCH] kni: allow per-net instances

2015-07-02 Thread Dex Chen
There is a global variable 'device_in_use' which is used to make sure only one instance is using /dev/kni device. If you were using LXC, you will find there is only one instance of KNI example could be run even differnt namespaces were created. In order to have /dev/kni used simultaneously in

[dpdk-dev] DPDK Hash library

2015-07-02 Thread De Lara Guarch, Pablo
Hi Jaffar, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Abdul, Jaffar > Sent: Thursday, July 02, 2015 6:38 PM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] DPDK Hash library > > HI Bruce, > > Thanks for your inputs. I am

[dpdk-dev] [PATCH 2/3] doc: added guidelines on dpdk documentation

2015-07-02 Thread Mcnamara, John
> -Original Message- > From: Mcnamara, John > Sent: Thursday, July 2, 2015 2:51 PM > To: dev at dpdk.org > Cc: Mcnamara, John > Subject: [PATCH 2/3] doc: added guidelines on dpdk documentation > > diff --git a/doc/guides/guidelines/documentation.rst >

[dpdk-dev] Intel bypass device 0x155C support?

2015-07-02 Thread Alexander Belyakov
Hello, I have got my hands on Intel? Ethernet Server Bypass Adapter X540-T2 (device_id 0x155C, copper). Unfortunately the only bypass device currently supported by DPDK is 0x155D (fiber). Does anyone know about the plans of adding 0x155C support? Thank you, Alexander Belyakov

[dpdk-dev] [PATCH v2] mempool: improve cache search

2015-07-02 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zoltan Kiss > Sent: Wednesday, July 01, 2015 10:04 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] mempool: improve cache search > > The current way has a few problems: > > - if cache->len < n, we

[dpdk-dev] DPDK Hash library

2015-07-02 Thread Abdul, Jaffar
HI Thanks guys for helping me on this one! Your suggestions are very good and it is very helpful! Thanks Jaffar -Original Message- From: Matthew Hall [mailto:mh...@mhcomputing.net] Sent: Thursday, July 02, 2015 12:27 PM To: De Lara Guarch, Pablo Cc: Abdul, Jaffar; Richardson, Bruce;

[dpdk-dev] [PATCH 1/2] eal:Introduce rte_dma_wmb/rte_dma_rmb.

2015-07-02 Thread Ananyev, Konstantin
> -Original Message- > From: Ananyev, Konstantin > Sent: Thursday, July 02, 2015 4:52 PM > To: 'WangDong'; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH 1/2] eal:Introduce rte_dma_wmb/rte_dma_rmb. > > Hi Dong, > > > -Original Message- > > From: dev [mailto:dev-bounces at

[dpdk-dev] [PATCH 2/2] ixgbe:replace compiler memory barrier and rte_wmb with rte_dma_rmb and rte_dma_wmb.

2015-07-02 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of WangDong > Sent: Sunday, June 28, 2015 4:23 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 2/2] ixgbe:replace compiler memory barrier and > rte_wmb with rte_dma_rmb and rte_dma_wmb. > > --- >

[dpdk-dev] [PATCH v3 7/7] abi: announce mbuf addition for ieee1588 in DPDK 2.2

2015-07-02 Thread John McNamara
Add announcement of a dedicated additional field in the mbuf to support ieee1588 in DPDK 2.2. Signed-off-by: John McNamara --- doc/guides/rel_notes/abi.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index f00a6ee..51dacb2

[dpdk-dev] [PATCH v3 6/7] doc: document ieee1588 forwarding mode

2015-07-02 Thread John McNamara
Document the optional ieee1588 forwarding mode. Signed-off-by: John McNamara --- doc/guides/testpmd_app_ug/run_app.rst | 2 +- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/guides/testpmd_app_ug/run_app.rst

[dpdk-dev] [PATCH v3 5/7] app/testpmd: refactor ieee1588 forwarding

2015-07-02 Thread John McNamara
Refactor the ieee1588_fwd mode in testpmd to use the new ethdev APIs to enable and read IEEE1588 PTP timestamps. Signed-off-by: John McNamara --- app/test-pmd/ieee1588fwd.c | 466 +++-- 1 file changed, 27 insertions(+), 439 deletions(-) diff --git

[dpdk-dev] [PATCH v3 4/7] i40e: add support for ieee1588 timestamping

2015-07-02 Thread John McNamara
Add ixgbe support for new ethdev APIs to enable and read IEEE1588/ 802.1AS PTP timestamps. Signed-off-by: John McNamara --- drivers/net/i40e/i40e_ethdev.c | 143 + drivers/net/i40e/i40e_rxtx.c | 39 ++- 2 files changed, 181 insertions(+), 1

[dpdk-dev] [PATCH v3 3/7] ixgbe: add support for ieee1588 timestamping

2015-07-02 Thread John McNamara
Add ixgbe support for new ethdev APIs to enable and read IEEE1588 PTP timestamps. Signed-off-by: John McNamara --- drivers/net/ixgbe/ixgbe_ethdev.c | 122 +++ 1 file changed, 122 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c

[dpdk-dev] [PATCH v3 2/7] e1000: add support for ieee1588 timestamping

2015-07-02 Thread John McNamara
Add e1000/igb support for new ethdev APIs to enable and read IEEE1588 PTP timestamps. Signed-off-by: John McNamara --- drivers/net/e1000/igb_ethdev.c | 115 + 1 file changed, 115 insertions(+) diff --git a/drivers/net/e1000/igb_ethdev.c

[dpdk-dev] [PATCH v3 1/7] ethdev: add support for ieee1588 timestamping

2015-07-02 Thread John McNamara
Add ethdev API to enable and read IEEE1588/802.1AS PTP timestamps from devices that support it. The following functions are added: rte_eth_timesync_enable() rte_eth_timesync_disable() rte_eth_timesync_read_rx_timestamp() rte_eth_timesync_read_tx_timestamp() Signed-off-by: John

[dpdk-dev] [PATCH v3 0/7] ethdev: add support for ieee1588 timestamping

2015-07-02 Thread John McNamara
This patchset adds ethdev API to enable and read IEEE1588/802.1AS PTP timestamps from devices that support it. The following functions are added: rte_eth_timesync_enable() rte_eth_timesync_disable() rte_eth_timesync_read_rx_timestamp() rte_eth_timesync_read_tx_timestamp() The

[dpdk-dev] [PATCH 3/3] vhost: call api to unregister vhost driver

2015-07-02 Thread Xie, Huawei
On 7/2/2015 11:33 AM, Ouyang, Changchun wrote: > The commit will break vhost sample when it runs in second time: > 292959c71961acde0cda6e77e737bb0a4df1559c > > It should call api to unregister vhost driver when sample exit/quit, then > the socket file will be removed(by calling unlink), and thus

[dpdk-dev] [PATCH 1/2] eal:Introduce rte_dma_wmb/rte_dma_rmb.

2015-07-02 Thread Ananyev, Konstantin
Hi Dong, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of WangDong > Sent: Sunday, June 28, 2015 4:23 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/2] eal:Introduce rte_dma_wmb/rte_dma_rmb. > > These macro can be used to replace current PMD's

[dpdk-dev] [PATCH v6 2/2] ixgbe: release queue memory in close functions

2015-07-02 Thread Bernard Iremonger
add ixgbe_dev_free_queues() function and call it from close() functions. Signed-off-by: Bernard Iremonger --- drivers/net/ixgbe/ixgbe_ethdev.c |4 drivers/net/ixgbe/ixgbe_ethdev.h |2 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 19 +++ 3 files changed, 25 insertions(+),

[dpdk-dev] [PATCH v2] librte_ether: release memory in uninit function.

2015-07-02 Thread Bernard Iremonger
Changes in v2: do not free mac_addrs and hash_mac_addrs here. Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index e13fde5..7ae101a

[dpdk-dev] [PATCH v6 1/2] ixgbe: changes to support PCI Port Hotplug

2015-07-02 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit functions for rte_ixgbe_pmd and rte_ixgbevf_pmd. Signed-off-by: Bernard Iremonger --- drivers/net/ixgbe/ixgbe_ethdev.c | 98 -- drivers/net/ixgbe/ixgbe_ethdev.h |2 +

[dpdk-dev] [PATCH v6 0/2] PCI Port Hotplug

2015-07-02 Thread Bernard Iremonger
Changes in V6: Rebased to latest code. Remove release of queue memory form dev_uninit() functions. Add ixgbe_dev_free_queues() function and call it from close() functions. Changes in V5: Set nb_rx_queues and nb_tx_queues to 0 in uninit functions. Rebased to latest ixgbe code. Changes in V4:

[dpdk-dev] [PATCH v2] doc: fix minor sphinx build warning

2015-07-02 Thread John McNamara
Fix for a minor Sphinx build warning in the ABI guidelines docs: versioning.rst:126: WARNING: Bullet list ends without a blank line; unexpected unindent. Signed-off-by: John McNamara --- doc/guides/guidelines/versioning.rst | 6 +++--- 1 file changed, 3

[dpdk-dev] [PATCH v2 1/7] ethdev: add support for ieee1588 timestamping

2015-07-02 Thread Mcnamara, John
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, July 2, 2015 11:18 AM > To: Mcnamara, John > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/7] ethdev: add support for ieee1588 > timestamping > > No, you cannot add new symbols

[dpdk-dev] [PATCH v6 0/2] PCI Port Hotplug

2015-07-02 Thread Ananyev, Konstantin
> -Original Message- > From: Iremonger, Bernard > Sent: Thursday, July 02, 2015 3:37 PM > To: dev at dpdk.org > Cc: Zhang, Helin; Qiu, Michael; Ananyev, Konstantin; Iremonger, Bernard > Subject: [PATCH v6 0/2] PCI Port Hotplug > > Changes in V6: > Rebased to latest code. > Remove

[dpdk-dev] [PATCH 0/4 v5] bnx2x: poll mode driver

2015-07-02 Thread Thomas Monjalon
2015-06-26 00:57, Harish Patil: > > >From: Stephen Hemminger > > > >Changes since last time: > > 1. Support pci_config on BSD. Although since BSD probably doesn't > >have same filesystem (/lib/firmware) the driver won't work. > > 2. Change location of driver to match new filesystem

[dpdk-dev] [PATCH 3/3] doc: moved doxygen section to the doc guidelines

2015-07-02 Thread John McNamara
Moved and refactored the Doxygen guidelines from the Coding Style doc to the Documentation Guidelines doc. Replaced the existing section with a link. Signed-off-by: John McNamara --- doc/guides/guidelines/coding_style.rst | 126 ++--- 1 file changed, 7 insertions(+),

[dpdk-dev] [PATCH 2/3] doc: added guidelines on dpdk documentation

2015-07-02 Thread John McNamara
Added guidelines on the purpose and structure of the DPDK documentation, how to build it and guidelines for creating it. Also added guidelines on how to format and submit a documentation patch. Signed-off-by: John McNamara --- doc/guides/guidelines/documentation.rst | 1005

[dpdk-dev] [PATCH 1/3] doc: set the default literal block format

2015-07-02 Thread John McNamara
Set the default literal block format for Sphinx docs to 'none' instead of the implicit default of 'python'. This means that default :: blocks won't have any highlighting applied. Explicit highlighting via the code-block:: directive is already available and in use in the docs. Signed-off-by: John

[dpdk-dev] [PATCH 0/3] doc: added guidelines on dpdk documentation

2015-07-02 Thread John McNamara
This patchset: * Adds guidelines on the purpose and structure of the DPDK documentation, how to build it and guidelines for creating it and adding to it. * Also adds guidelines on how to format and submit a documentation patch. * Moves and refactores the Doxygen guidelines from the Coding

[dpdk-dev] [PATCH v4 3/4] bond mode 4: allow external state machine

2015-07-02 Thread Declan Doherty
On 26/05/15 16:41, Eric Kinzie wrote: > From: Eric Kinzie > >Provide functions to allow an external 802.3ad state machine to transmit >and recieve LACPDUs and to set the collection/distribution flags on >slave interfaces. > >Size of struct rte_eth_bond_8023ad_conf changed.

[dpdk-dev] [PATCH] doc: fix minor sphinx build warning

2015-07-02 Thread Thomas Monjalon
2015-07-02 12:52, John McNamara: > Also added a RST label to the start of the doc to allow it > to be linked to from other docs. We don't really need to have a label at the top of the doc. It can be linked with :doc: role: dpdk.org/browse/dpdk/commit/?id=7cc2bdedd3812998078 But it could

[dpdk-dev] 100% cpu of VM (OS windows 7)

2015-07-02 Thread Wei Li
If using linux bridge, there is no problem also. ping from host to guest, when ovs call "eventfd_write((int)vq->callfd, 1)", guest crash and cpu usagerate of qemu is 100% #0 rte_vhost_enqueue_burst (dev=0x7fe97900, queue_id=0, pkts=0x7fff12521870, count=1) at

[dpdk-dev] [PATCH] mk: print target when reporting build complete

2015-07-02 Thread Thomas Monjalon
2015-07-02 11:35, Bruce Richardson: > When a target is finished building, it reports just "Build complete". > When building multiple targets simultaneously, e.g. > make install T=x86_64-native-linuxapp-* > and one target fails, it's not always obvious which of the builds > failed. To help

[dpdk-dev] [PATCH v3 02/11] ip_pipeline: added config checks

2015-07-02 Thread Thomas Monjalon
2015-07-02 10:28, Gajdzica, MaciejX T: > For me it compiles. Could you provide build log? OK. I think the problem is seen with GCC 5 (I use 5.1.0): /home/thomas/projects/dpdk/dpdk/examples/ip_pipeline/app.h:587:49: error: array subscript is above array bounds [-Werror=array-bounds] struct

[dpdk-dev] DPDK Hash library

2015-07-02 Thread Abdul, Jaffar
HI Bruce, Thanks for your inputs. I am wondering why Cuckoo hash is pushing the entry into new bucket why not add a new entry in the same bucket ? Do we see this is better or faster compared to creating one more new entry in the same bucket Thanks Jaffar -Original Message- From:

[dpdk-dev] [PATCH] doc: fix minor sphinx build warning

2015-07-02 Thread Mcnamara, John
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, July 2, 2015 1:18 PM > To: Mcnamara, John > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] doc: fix minor sphinx build warning > > But it could be useful in case new versioning

[dpdk-dev] [PATCH] doc: fix minor sphinx build warning

2015-07-02 Thread John McNamara
Fix for a minor Sphinx build warning in the ABI guidelines docs: versioning.rst:126: WARNING: Bullet list ends without a blank line; unexpected unindent. Also added a RST label to the start of the doc to allow it to be linked to from other docs. Signed-off-by: John

[dpdk-dev] [PATCH 0/4] ethdev: patches

2015-07-02 Thread Thomas Monjalon
2015-06-26 17:01, Stephen Hemminger: > The recent work on ethtool like API exposed some of the stylistic > ugliness and waste in the current rte_ethdev code. > > Stephen Hemminger (4): > rte_ethdev: remove impossible condition > rte_ethdev: fix comment spelling > rte_ethdev: fix code style

[dpdk-dev] [PATCH v7 00/12] Clean up pci uio implementations

2015-07-02 Thread Bruce Richardson
On Tue, Jun 30, 2015 at 05:24:16PM +0900, Tetsuya Mukawa wrote: > Currently Linux implementation and BSD implementation have almost same > code about pci uio. This patch series cleans up it. > Overall, patchset looks a good idea. I've made some comments on some of the individual patches. Quick

[dpdk-dev] DPDK Hash library

2015-07-02 Thread Matthew Hall
On Thu, Jul 02, 2015 at 05:55:20PM +, De Lara Guarch, Pablo wrote: > You are probably talking about extendable buckets here. > The downsize of that approach is that you have to allocate memory on the fly, > whereas with the cuckoo hash implementation, the entry can be stored in an >

[dpdk-dev] [PATCH] fm10k: fix an error message when adding default VLAN

2015-07-02 Thread Qiu, Michael
On 6/26/2015 10:37 AM, He, Shaopeng wrote: > The default MAC address is directly copied to Device Ethernet > Link address array in the device initialize phase, which > bypasses fm10k MAC address number check mechanism, and will > cause an error message when adding default VLAN. Fix it by > moving

[dpdk-dev] [PATCH v2 1/7] ethdev: add support for ieee1588 timestamping

2015-07-02 Thread Thomas Monjalon
2015-06-29 14:42, John McNamara: > --- a/lib/librte_ether/rte_ether_version.map > +++ b/lib/librte_ether/rte_ether_version.map > @@ -98,6 +98,10 @@ DPDK_2.0 { > rte_eth_stats; > rte_eth_stats_get; > rte_eth_stats_reset; > + rte_eth_timesync_disable; > +

[dpdk-dev] [PATCH v3 02/11] ip_pipeline: added config checks

2015-07-02 Thread Thomas Monjalon
2015-06-29 16:38, Maciej Gajdzica: > From: Jasvinder Singh > > After loading configuration from a file, data integrity is checked. > > Signed-off-by: Jasvinder Singh > --- > examples/ip_pipeline/Makefile |1 + > examples/ip_pipeline/config_check.c | 396 >

[dpdk-dev] [PATCH v7 09/12] eal: Consolidate pci_map/unmap_resource() of linuxapp and bsdapp

2015-07-02 Thread Bruce Richardson
On Tue, Jun 30, 2015 at 05:24:25PM +0900, Tetsuya Mukawa wrote: > From: "Tetsuya.Mukawa" > > The patch consolidates below functions, and implemented in common > eal code. > - pci_map_resource() > - pci_unmap_resource() > > Signed-off-by: Tetsuya Mukawa > --- >

[dpdk-dev] [PATCH v2] ixgbe: reset hardware stat when initialize

2015-07-02 Thread Qiu, Michael
Hi, all Any comments on this patch? Thanks, Michael On 6/22/2015 8:47 PM, Iremonger, Bernard wrote: >> -Original Message- >> From: Qiu, Michael >> Sent: Thursday, June 11, 2015 8:30 AM >> To: dev at dpdk.org >> Cc: Iremonger, Bernard; thomas.monjalon at 6wind.com; Qiu, Michael >>

[dpdk-dev] [PATCH v7 06/12] eal: Add pci_uio_alloc_resource()

2015-07-02 Thread Bruce Richardson
On Tue, Jun 30, 2015 at 05:24:22PM +0900, Tetsuya Mukawa wrote: > From: "Tetsuya.Mukawa" > > This patch adds a new function called pci_uio_alloc_resource(). > The function hides how to prepare uio resource in linuxapp and bsdapp. > With the function, pci_uio_map_resource() will be more

[dpdk-dev] [PATCH] mk: print target when reporting build complete

2015-07-02 Thread Bruce Richardson
When a target is finished building, it reports just "Build complete". When building multiple targets simultaneously, e.g. make install T=x86_64-native-linuxapp-* and one target fails, it's not always obvious which of the builds failed. To help this, we add the actual target that is

[dpdk-dev] [PATCH 3/3] vhost: call api to unregister vhost driver

2015-07-02 Thread Ouyang Changchun
The commit will break vhost sample when it runs in second time: 292959c71961acde0cda6e77e737bb0a4df1559c It should call api to unregister vhost driver when sample exit/quit, then the socket file will be removed(by calling unlink), and thus make vhost sample work correctly in second time startup.

[dpdk-dev] [PATCH 2/3] vhost: fix the comments and log

2015-07-02 Thread Ouyang Changchun
It fixes the wrong log info when fails to unregister vhost driver. Signed-off-by: Changchun Ouyang --- examples/vhost/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 7863dcf..72c4773 100644 ---

[dpdk-dev] [PATCH 1/3] vhost: add log if fails to bind a socket

2015-07-02 Thread Ouyang Changchun
It adds more readable log info if a socket fails to bind to local device file name. Signed-off-by: Changchun Ouyang --- lib/librte_vhost/vhost_user/vhost-net-user.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/librte_vhost/vhost_user/vhost-net-user.c

[dpdk-dev] [PATCH 0/3] Fix vhost startup issue

2015-07-02 Thread Ouyang Changchun
The commit breaks vhost sample when it runs in second time: 292959c71961acde0cda6e77e737bb0a4df1559c It should call api to unregister vhost driver when sample exit/quit, then the socket file will be removed(by calling unlink), and thus make vhost sample work correctly in second time startup.

[dpdk-dev] [PATCH v8 03/18] mbuf: add definitions of unified packet types

2015-07-02 Thread Olivier MATZ
Hi Helin, On 07/02/2015 03:30 AM, Zhang, Helin wrote: > Hi Oliver > > Thanks for your helps! > >> -Original Message- >> From: Olivier MATZ [mailto:olivier.matz at 6wind.com] >> Sent: Tuesday, June 30, 2015 4:44 PM >> To: Zhang, Helin; dev at dpdk.org >> Cc: Cao, Waterman; Liang, Cunming;

[dpdk-dev] DPDK Hash library

2015-07-02 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Thursday, July 2, 2015 10:36 AM > To: Abdul, Jaffar > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] DPDK Hash library > > On Wed, Jul 01, 2015 at 07:56:28PM -0400, Abdul, Jaffar

[dpdk-dev] [PATCH v7 05/12] eal: Fix uio mapping differences between linuxapp and bsdapp

2015-07-02 Thread Bruce Richardson
On Tue, Jun 30, 2015 at 05:24:21PM +0900, Tetsuya Mukawa wrote: > From: "Tetsuya.Mukawa" > > This patch fixes below. > - bsdapp > - Use map_id in pci_uio_map_resource(). > - Fix interface of pci_map_resource(). > - Move path variable of mapped_pci_resource structure to pci_map. > - linuxapp >

[dpdk-dev] [PATCH v8 01/18] mbuf: redefine packet_type in rte_mbuf

2015-07-02 Thread Thomas Monjalon
2015-06-23 09:50, Helin Zhang: > In order to unify the packet type, the field of 'packet_type' in > 'struct rte_mbuf' needs to be extended from 16 to 32 bits. > Accordingly, some fields in 'struct rte_mbuf' are re-organized to > support this change for Vector PMD. As 'struct rte_kni_mbuf' for >

[dpdk-dev] [PATCH v7 03/12] eal: Fix memory leaks and needless increment of pci_map_addr

2015-07-02 Thread Bruce Richardson
On Tue, Jun 30, 2015 at 05:24:19PM +0900, Tetsuya Mukawa wrote: > From: "Tetsuya.Mukawa" > > This patch fixes following memory leaks. > - When open() is failed, uio_res and fds won't be freed in > pci_uio_map_resource(). > - When pci_map_resource() is failed but path is allocated correctly, >

[dpdk-dev] DPDK Hash library

2015-07-02 Thread Bruce Richardson
On Wed, Jul 01, 2015 at 07:56:28PM -0400, Abdul, Jaffar wrote: > Hi, > > I am wondering how can I use the hash library if I don't know the number of > entries in the bucket (number of entries in the bucket can grow dynamically) > I am trying to use the DPDK hash library for MAC table where I

[dpdk-dev] [PATCH v3 02/11] ip_pipeline: added config checks

2015-07-02 Thread Gajdzica, MaciejX T
Hi Thomas For me it compiles. Could you provide build log? Best Regards Maciek > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, July 02, 2015 12:15 PM > To: Gajdzica, MaciejX T; Singh, Jasvinder > Cc: dev at dpdk.org > Subject: Re:

[dpdk-dev] Using rte_ring_mp_xyz() across EAL and non-EAL threads ?

2015-07-02 Thread Bruce Richardson
On Wed, Jul 01, 2015 at 10:50:49AM -0700, Gopakumar Choorakkot Edakkunni wrote: > rte_ring_create() needs a socket-id though and seems to be allocating > core-specific memory pools for the ring ? But my non-EAL app thread is > not bound to any core, so now I am wondering if that will work. > >

[dpdk-dev] How to set pool mirror on Intel 82599ES

2015-07-02 Thread Zhou, Tianlin
Dear all, The issue was resolved. I want to see packet receive on host, but failed. Should launch VM with VF PCI passthrough, then we can see traffic in VM VF interface. -Tianlin From: Zhou, Tianlin Sent: Wednesday, July 01, 2015 6:02 PM To: dev at dpdk.org Subject: [dpdk-dev] How to set pool

[dpdk-dev] [PATCH 2/3] vhost: fix the comments and log

2015-07-02 Thread Xie, Huawei
On 7/2/2015 11:33 AM, Ouyang, Changchun wrote: > It fixes the wrong log info when fails to unregister vhost driver. As commented elsewhere, fails in unregistering, not fails to unregister. :).

[dpdk-dev] [PATCH 1/3] vhost: add log if fails to bind a socket

2015-07-02 Thread Xie, Huawei
On 7/2/2015 11:33 AM, Ouyang, Changchun wrote: > It adds more readable log info if a socket fails to bind to local device file > name. fails in binding, not fail to bind, :). >

[dpdk-dev] DPDK Hash library

2015-07-02 Thread Matthew Hall
On Jul 2, 2015, at 4:20 AM, Dumitrescu, Cristian wrote: > I am wondering how can I use the hash library if I don't know the number > of entries in the bucket (number of entries in the bucket can grow > dynamically) > I am trying to use the DPDK hash library for MAC table where I can't give > the

[dpdk-dev] [PATCH 1/3] vhost: add log if fails to bind a socket

2015-07-02 Thread Xie, Huawei
On 7/2/2015 11:33 AM, Ouyang, Changchun wrote: > It adds more readable log info if a socket fails to bind to local device file > name. local socket file, not device file. :). > > Signed-off-by: Changchun Ouyang > --- > lib/librte_vhost/vhost_user/vhost-net-user.c | 5 - > 1 file changed, 4

[dpdk-dev] [PATCH 2/3] vhost: fix the comments and log

2015-07-02 Thread Xie, Huawei
On 7/2/2015 11:33 AM, Ouyang, Changchun wrote: > It fixes the wrong log info when fails to unregister vhost driver. > > Signed-off-by: Changchun Ouyang > --- > examples/vhost/main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/examples/vhost/main.c

[dpdk-dev] [PATCH] virtio: fix the vq size issue

2015-07-02 Thread Xie, Huawei
On 7/2/2015 10:16 AM, Ouyang, Changchun wrote: > >> -Original Message- >> From: Xie, Huawei >> Sent: Thursday, July 2, 2015 10:02 AM >> To: Ouyang, Changchun; dev at dpdk.org; Thomas Monjalon >> Subject: Re: [dpdk-dev] [PATCH] virtio: fix the vq size issue >> >> On 7/2/2015 8:29 AM,

[dpdk-dev] [PATCH v8 00/18] unified packet type

2015-07-02 Thread Liu, Yong
Tested-by: Yong Liu - Tested Commit: 7e1fa1de8a536c68f6af76cf8d222a9e948c93ba - OS: Fedora20 3.15.5 - GCC: gcc version 4.8.3 20140911 - CPU: Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz - NIC: Intel Corporation XL710 10-Gigabit SFI/SFP+ [8086:1572] - NIC: Intel Corporation 82599ES 10-Gigabit

[dpdk-dev] OVDK userspace vhost : Issue with VIRTIO_RING_F_INDIRECT_DESC capability

2015-07-02 Thread Gray, Mark D
Cross posting to OVDK list. On a side point, Have you looked at the DPDK enabled build in upstream OVS? > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of sai kiran > Sent: Wednesday, July 1, 2015 1:02 PM > To: dev at dpdk.org > Subject: [dpdk-dev] OVDK

[dpdk-dev] [PATCH] fm10k: fix an error message when adding default VLAN

2015-07-02 Thread He, Shaopeng
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, July 01, 2015 9:12 PM > To: He, Shaopeng > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] fm10k: fix an error message when adding > default VLAN > > 2015-06-26 10:37,

[dpdk-dev] [PATCH] doc/sample_app_ug:add a VXLAN sample guide

2015-07-02 Thread Liu, Jijiang
> -Original Message- > From: Liu, Yong > Sent: Thursday, July 2, 2015 11:47 AM > To: Liu, Jijiang; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH] doc/sample_app_ug:add a VXLAN sample guide > > Hi Jijiang, > After build out dpdk doc, vxlan sample section not included in the contents

[dpdk-dev] [PATCH] doc/sample_app_ug:add a VXLAN sample guide

2015-07-02 Thread Liu, Yong
Hi Jijiang, After build out dpdk doc, vxlan sample section not included in the contents of "Sample Applications User Guide". And in chapter "Running the Sample Code", vhost cuse command look like no difference from vhost use command. We may need to inform user that the difference between cuse

[dpdk-dev] UIO RTE_INTR_MODE_NONE issue.

2015-07-02 Thread Prathap Thammanna
Hi: If INTX fails, igb_uio falls back to running without IRQ ( refer to the implementation in igbuio_pci_probe). On QEMU 0.12.0, the INTX seems to have broken, and the intr_mode falls to RTE_INTR_MODE_NONE However this sets the udev->info.irq = 0; Setting of udev->info.irq to '0' does not

[dpdk-dev] [PATCH] virtio: fix the vq size issue

2015-07-02 Thread Ouyang, Changchun
> -Original Message- > From: Xie, Huawei > Sent: Thursday, July 2, 2015 10:02 AM > To: Ouyang, Changchun; dev at dpdk.org; Thomas Monjalon > Subject: Re: [dpdk-dev] [PATCH] virtio: fix the vq size issue > > On 7/2/2015 8:29 AM, Ouyang, Changchun wrote: > > Hi huawei, > > > >>

[dpdk-dev] [PATCH] virtio: fix the vq size issue

2015-07-02 Thread Xie, Huawei
On 7/2/2015 8:29 AM, Ouyang, Changchun wrote: > Hi huawei, > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Xie, Huawei >> Sent: Wednesday, July 1, 2015 11:53 PM >> To: dev at dpdk.org; Thomas Monjalon >> Subject: Re: [dpdk-dev] [PATCH] virtio: fix the vq

[dpdk-dev] [PATCH v8 03/18] mbuf: add definitions of unified packet types

2015-07-02 Thread Zhang, Helin
Hi Oliver Thanks for your helps! > -Original Message- > From: Olivier MATZ [mailto:olivier.matz at 6wind.com] > Sent: Tuesday, June 30, 2015 4:44 PM > To: Zhang, Helin; dev at dpdk.org > Cc: Cao, Waterman; Liang, Cunming; Liu, Jijiang; Ananyev, Konstantin; > Richardson, > Bruce;

[dpdk-dev] [PATCH v2 0/7] ethdev: add support for ieee1588 timestamping

2015-07-02 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of John McNamara > Sent: Monday, June 29, 2015 9:42 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 0/7] ethdev: add support for ieee1588 > timestamping > > This patchset adds ethdev API to enable

[dpdk-dev] [PATCH] virtio: fix the vq size issue

2015-07-02 Thread Ouyang, Changchun
Hi huawei, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Xie, Huawei > Sent: Wednesday, July 1, 2015 11:53 PM > To: dev at dpdk.org; Thomas Monjalon > Subject: Re: [dpdk-dev] [PATCH] virtio: fix the vq size issue > > On 7/1/2015 3:49 PM, Ouyang Changchun

[dpdk-dev] [PATCH] MAINTAINERS: claim EAL of IBM POWER

2015-07-02 Thread Thomas Monjalon
2015-06-29 11:08, Chao Zhu: > Signed-off-by: Chao Zhu [...] > +IBM POWER > +M: Chao Zhu > F: lib/librte_eal/common/include/arch/ppc_64/ Applied, thanks Chao to take care of this arch. When you report a bug or send a POWER related patch, please add Chao to the recipient list.

[dpdk-dev] [PATCH v3] cfgfile: fix unitialised buffer

2015-07-02 Thread Thomas Monjalon
2015-06-29 19:47, Dumitrescu, Cristian: > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Daniel Mrzyglod > > Nature of the problem was not initialised buffer[256], there were > > probability > > that operation system will provide previously used memory and on special > > condition > >

[dpdk-dev] [PATCH v4] Add unit test for thash library

2015-07-02 Thread Thomas Monjalon
2015-07-01 16:30, Bruce Richardson: > On Tue, Jun 30, 2015 at 07:41:13PM -0400, Vladimir Medvedkin wrote: > > Add unit test for thash library > > > > v4 changes > > - Reflect rte_thash.h changes > > > > v3 changes > > - Fix checkpatch errors > > > > v2 changes > > - fix typo > > - remove

[dpdk-dev] [PATCH v6] Add toeplitz hash algorithm used by RSS

2015-07-02 Thread Thomas Monjalon
2015-07-01 16:29, Bruce Richardson: > On Tue, Jun 30, 2015 at 07:40:20PM -0400, Vladimir Medvedkin wrote: > > Software implementation of the Toeplitz hash function used by RSS. > > Can be used either for packet distribution on single queue NIC > > or for simulating of RSS computation on specific

[dpdk-dev] [PATCH] hash: add missing symbol in version map

2015-07-02 Thread Thomas Monjalon
2015-07-01 08:39, Gonzalez Monroy, Sergio: > On 30/06/2015 19:37, Pablo de Lara wrote: > > rte_hash_hash is a public function but was not in > > rte_hash_version.map > > > > Signed-off-by: Pablo de Lara > Acked-by: Sergio Gonzalez Monroy Applied, thanks

[dpdk-dev] [PATCH] cxgbe: fix compilation using icc

2015-07-02 Thread Thomas Monjalon
2015-07-01 16:11, Bruce Richardson: > When compiling the cxgbe driver with icc, multiple errors about using > enums as integers appear across a number of files, including in the base > code and in the DPDK-specific driver code. > > .../drivers/net/cxgbe/cxgbe_main.c(386): error #188: enumerated