[dpdk-dev] KNI mac address

2015-06-18 Thread Vijayakumar Muthuvel Manickam
Hi, I see that KNI interfaces get assigned random mac addresses each time I do "ifconfig up" on the interface. Reason for this is mac address returned by "random_ether_addr()" is assigned to the interface in kni_net_open() for all NIC types except igb and ixgbe that have ethtool support. I would

[dpdk-dev] clang build failing in v2.0.0 from poisoned symbols

2015-06-18 Thread Matthew Hall
On Thu, Jun 18, 2015 at 08:37:46PM -0700, Matthew Hall wrote: > dpdk/lib/librte_mbuf/rte_mbuf.h:68:20: error: poisoning existing macro > [-Werror] Hi all, I finally figured out what happened. My older DPDK build configuration file had defined the poisoned macros to try to enable the features

[dpdk-dev] RTE TIMER LIBRARY

2015-06-18 Thread Yeddula, Avinash
Hello Dpdk-team, I have few very basic questions. In the DPDK timer sample application, the periodic timer0's callback function is not called unless "rte_timer_manage()" is called. I understand rte_timer_manage() function looks at all the expired timers in the core and runs them. Here are my

[dpdk-dev] clang build failing in v2.0.0 from poisoned symbols

2015-06-18 Thread Matthew Hall
Hi all, I am getting some odd behavior compiling the DPDK v2.0.0 tag with clang: /* deprecated options */ #pragma GCC poison RTE_MBUF_SCATTER_GATHER #pragma GCC poison RTE_MBUF_REFCNT In file included from dpdk/lib/librte_mbuf/rte_mbuf.c:58: dpdk/lib/librte_mbuf/rte_mbuf.h:68:20: error:

[dpdk-dev] [PATCH] vfio: Fix overflow while assigning vfio BAR region offset and size

2015-06-18 Thread Rahul Lakkireddy
Hi Thomas, On Wed, Jun 17, 2015 at 14:09:35 +0200, Thomas Monjalon wrote: > Hi Rahul, > > 2015-06-16 19:46, Rahul Lakkireddy: > > After the commit-id 90a1633b2 (eal/linux: allow to map BARs with MSI-X > > tables), > > Please show this information before the Signed-off-by lines: > Fixes:

[dpdk-dev] [PATCH v2] kni: ignore double calls to rte_kni_init()

2015-06-18 Thread Marc Sune
Prevent double initialization of the KNI subsytem. v2: added warning trace Signed-off-by: Marc Sune --- lib/librte_kni/rte_kni.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c index c5a0089..08155db 100644 ---

[dpdk-dev] [PATCHv2 0/8] acl: various fixes and cleanups

2015-06-18 Thread Thomas Monjalon
2015-06-08 11:41, Konstantin Ananyev: > Several fixes and code cleanups for the librte_acl. > New test-cases for acl UT. > > Konstantin Ananyev (8): > acl: fix invalid rule wildness calculation for bitmask field type > acl: code cleanup - use global EAL macro, instead of creating a local >

[dpdk-dev] [PATCH v3 9/9] doc: add cxgbe PMD documentation under doc/guides/nics/cxgbe.rst

2015-06-18 Thread Rahul Lakkireddy
Adds cxgbe poll mode driver documentation under the usual doc/guides/nics/ directory with the rest of the drivers. The documentation covers cxgbe implementation details, features and limitations, prerequisites, configuration, and a sample application usage. Signed-off-by: Rahul Lakkireddy

[dpdk-dev] [PATCH v3 8/9] cxgbe: add flow control functions for cxgbe PMD.

2015-06-18 Thread Rahul Lakkireddy
Adds flow control related eth_dev_ops for cxgbe poll mode driver. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- v3: - No changes. v2: - This patch is a subset of patch 2/5 submitted in v1. drivers/net/cxgbe/cxgbe_ethdev.c | 54 1

[dpdk-dev] [PATCH v3 7/9] cxgbe: add link related functions for cxgbe PMD.

2015-06-18 Thread Rahul Lakkireddy
Adds link update, promiscuous and multicast related eth_dev_ops for cxgbe poll mode driver. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- v3: - No changes. v2: - This patch is a subset of patch 2/5 submitted in v1. - Update cxgbe_dev_link_update() to return correct value.

[dpdk-dev] [PATCH v3 6/9] cxgbe: add port statistics for cxgbe PMD.

2015-06-18 Thread Rahul Lakkireddy
Adds stats_get() and stats_reset() eth_dev_ops for cxgbe poll mode driver. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- v3: - No changes. v2: - This patch is a subset of patch 2/5 submitted in v1. drivers/net/cxgbe/cxgbe.h| 2 + drivers/net/cxgbe/cxgbe_ethdev.c |

[dpdk-dev] [PATCH v3 5/9] cxgbe: add device related operations for cxgbe PMD.

2015-06-18 Thread Rahul Lakkireddy
Adds dev_start(), dev_stop(), and dev_close() eth_dev_ops for cxgbe poll mode driver. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- v3: - No changes. v2: - This patch is a subset of patch 2/5 submitted in v1. - Few changes related to tx bug fixes. drivers/net/cxgbe/cxgbe.h

[dpdk-dev] [PATCH v3 3/9] cxgbe: add device configuration and RX support for cxgbe PMD.

2015-06-18 Thread Rahul Lakkireddy
Adds RX support for the cxgbe poll mode driver. This patch: 1. Adds rx queue related eth_dev_ops. 2. Adds RSS support. 3. Adds dev_configure() and dev_infos_get() eth_dev_ops. 4. Adds rx_pkt_burst for receiving packets. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- v3: - No

[dpdk-dev] [PATCH v3 2/9] cxgbe: add cxgbe poll mode driver.

2015-06-18 Thread Rahul Lakkireddy
Adds cxgbe poll mode driver for DPDK under drivers/net/cxgbe directory. This patch: 1. Adds the Makefile to compile cxgbe pmd. 2. Registers and initializes the cxgbe pmd driver. Enable cxgbe PMD for compilation and linking with changes to: 1. config/common_linuxapp to add macros for cxgbe pmd.

[dpdk-dev] [PATCH v3 1/9] cxgbe: add hardware specific api for all supported Chelsio T5 series adapters.

2015-06-18 Thread Rahul Lakkireddy
Adds hardware specific api for all the Chelsio T5 adapters under drivers/net/cxgbe/base directory. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- v3: - No changes v2: - Move files to new directory under drivers/net/cxgbe/base and update commit log. - Few bug fixes related

[dpdk-dev] [PATCH v2 1/2] Added ETH_SPEED_CAP bitmap in rte_eth_dev_info

2015-06-18 Thread Thomas Monjalon
2015-06-18 17:06, Marc Sune: > On 18/06/15 16:43, Morten Br?rup wrote: > > Regarding the PHY speed ABI: > > > > 1. The Ethernet PHY ABI for speed, duplex, etc. should be common throughout > > the entire DPDK. It might be confusing if some structures/functions use a > > bitmask to indicate PHY

[dpdk-dev] [PATCH v4] doc: guidelines for library statistics

2015-06-18 Thread Thomas Monjalon
We need a conclusion here. It seems the policy proposed by Cristian is the best consensus. If nobody nack in this thread with a counter-proposal, it will be adopted on Monday. 2015-06-18 16:38, Morten Br?rup: > The suggested solution with only one single flag per library prevents > implementing

[dpdk-dev] [PATCH v2 1/2] Added ETH_SPEED_CAP bitmap in rte_eth_dev_info

2015-06-18 Thread Marc Sune
On 18/06/15 16:43, Morten Br?rup wrote: > Regarding the PHY speed ABI: > > > > 1. The Ethernet PHY ABI for speed, duplex, etc. should be common throughout > the entire DPDK. It might be confusing if some structures/functions use a > bitmask to indicate PHY speed/duplex/personality/etc. and

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-18 Thread O'Driscoll, Tim
> -Original Message- > From: announce [mailto:announce-bounces at dpdk.org] On Behalf Of Thomas > Monjalon > Sent: Wednesday, June 17, 2015 12:30 AM > To: announce at dpdk.org > Subject: [dpdk-announce] important design choices - statistics - ABI > > Hi all, > > During the development

[dpdk-dev] [PATCH v2 1/2] Added ETH_SPEED_CAP bitmap in rte_eth_dev_info

2015-06-18 Thread Morten Brørup
Regarding the PHY speed ABI: 1. The Ethernet PHY ABI for speed, duplex, etc. should be common throughout the entire DPDK. It might be confusing if some structures/functions use a bitmask to indicate PHY speed/duplex/personality/etc. and other structures/functions use a combination of an

[dpdk-dev] [PATCH v3 0/4] port: add ethdev_writer and ring_writer nodrop ports

2015-06-18 Thread Thomas Monjalon
> > When nodrop writer port fails to send data, it retries until reach maximum > > number of retries. Also added new tx_bulk implementation for ring writer > > port. > > > > Changes in v2: > > - added missing signoffs > > > > Changes in v3: > > - removed second implementation of tx_bulk

[dpdk-dev] [PATCH 2/2 v2] fm10k: Add hotplug support for fm10k

2015-06-18 Thread Iremonger, Bernard
> -Original Message- > From: Qiu, Michael > Sent: Wednesday, June 17, 2015 9:45 AM > To: dev at dpdk.org > Cc: Chen, Jing D; Iremonger, Bernard; He, Shaopeng; Qiu, Michael > Subject: [PATCH 2/2 v2] fm10k: Add hotplug support for fm10k > > Add hotplug support for fm10k. > > Signed-off-by:

[dpdk-dev] [PATCH v4] doc: guidelines for library statistics

2015-06-18 Thread Morten Brørup
The suggested solution with only one single flag per library prevents implementing statistics with varying granularity for different purposes. E.g. a library could have one set of statistics counters for ordinary SNMP purposes, and another set of statistics counters for debugging/optimization

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-18 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Wednesday, June 17, 2015 12:17 PM > To: Matthew Hall > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [dpdk-announce] important design choices - > statistics - ABI > > On Tue, Jun 16,

[dpdk-dev] [PATCH 1/2 v2] fm10k: Free queues when close port

2015-06-18 Thread Iremonger, Bernard
> -Original Message- > From: Qiu, Michael > Sent: Wednesday, June 17, 2015 8:59 AM > To: dev at dpdk.org > Cc: Chen, Jing D; Iremonger, Bernard; He, Shaopeng; Qiu, Michael > Subject: [PATCH 1/2 v2] fm10k: Free queues when close port > > When close a port, lots of memory should be

[dpdk-dev] [PATCH v3 3/3] fm10k: update VLAN offload features

2015-06-18 Thread Shaopeng He
Fm10k PF/VF does not support QinQ; VLAN strip and filter are always on for PF/VF ports. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c

[dpdk-dev] [PATCH v3 2/3] fm10k: add MAC filter

2015-06-18 Thread Shaopeng He
MAC filter function was newly added, each PF and VF can have up to 64 MAC addresses. VF filter needs support from PF host, which is not available now. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 3 +- drivers/net/fm10k/fm10k_ethdev.c | 91

[dpdk-dev] [PATCH v3 1/3] fm10k: update VLAN filter

2015-06-18 Thread Shaopeng He
VLAN filter was updated to add/delete one static entry in MAC table for each combination of VLAN and MAC address. More sanity checks were added. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 23 ++ drivers/net/fm10k/fm10k_ethdev.c | 65

[dpdk-dev] [PATCH v3 0/3] fm10k: update MAC/VLAN filter and VLAN offload features

2015-06-18 Thread Shaopeng He
v3 changes: - add more result check for MAC table mailbox operation for VLAN filter - remove two extra indentation tabs v2 changes: - add result check when updating MAC address table for VLAN filter - move VLAN Table updating to the end of VLAN filter process - release mailbox lock

[dpdk-dev] [PATCH] doc: fix doxygen warnings for QoS API

2015-06-18 Thread Thomas Monjalon
> > This patch fix doxygen warnings when generating documentation > > for qos_meter and qos_sched > > > > Signed-off-by: Michal Jastrzebski > > Acked-by: Cristian Dumitrescu Applied, thanks

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Bruce Richardson
On Thu, Jun 18, 2015 at 02:56:52PM +0100, Walukiewicz, Miroslaw wrote: > Yes, really I need a high performance function - it is especially useful on > TX path. > > Which queue query function are you talking here to be enhanced? > There are already functions for querying the RX queue - so as to

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Bruce Richardson
On Thu, Jun 18, 2015 at 02:18:43PM +0100, Konstantin Ananyev wrote: > Add the ability for the upper layer to query RX/TX queue information. > Right now supported for: > ixgbe, i40e, e1000 PMDs. > > Konstantin Ananyev (5): > ethdev: add new API to retrieve RX/TX queue information > i40e: add

[dpdk-dev] [PATCH v2 0/6] cfgfile: config file parsing extension

2015-06-18 Thread Thomas Monjalon
2015-06-17 16:48, Maciej Gajdzica: > Added new implementation of section parsing in config file. Refactored > existing code by spliting it to smaller functions. Changed section > allocation scheme and added new features - variable length entry value > and line continue character '\'. > > Pawel

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Bruce Richardson
On Thu, Jun 18, 2015 at 01:30:33PM +, Walukiewicz, Miroslaw wrote: > Konstantin, > > Is there a possibility to read information about available space in NIC queue > for TX. > > It is quite easy to compute (or even available directly) and very useful > especially for application sending

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Walukiewicz, Miroslaw
> -Original Message- > From: Ananyev, Konstantin > Sent: Thursday, June 18, 2015 4:17 PM > To: Walukiewicz, Miroslaw; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX > queue information > > Hi Mirek, > > > -Original Message- > >

[dpdk-dev] [PATCH v2 6/6] cfgfile: added new implementation of section parsing

2015-06-18 Thread Thomas Monjalon
2015-06-17 16:48, Maciej Gajdzica: > + char *start = _skip_spaceses(str); Why not use a function with "char *" parameter instead of a macro?

[dpdk-dev] [PATCH v2 5/6] cfgfile: fixed calling free for each section in rte_cfgfile_close

2015-06-18 Thread Thomas Monjalon
2015-06-17 16:48, Maciej Gajdzica: > From: Pawel Wodkowski > > Signed-off-by: Pawel Wodkowski What is fixed exactly? What was the problem? > @@ -60,6 +60,15 @@ struct rte_cfgfile { > * for new entries do we add in */ > #define CFG_ALLOC_ENTRY_BATCH 16 > > +/* Helpers */ > + > +#define

[dpdk-dev] [PATCH] pmd_ring: return new port id on ethdev creation

2015-06-18 Thread Bruce Richardson
The rte_eth_from_rings API allowed the creation of an ethdev port at runtime using rte_rings as the underlying storage. However, the return value from this function was either 0 or -1, and these values were never actually documented in the API documentation. Unfortunately, the programmers guide

[dpdk-dev] [PATCHv2 5/5] testpmd: add new command to display RX/TX queue information

2015-06-18 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 48 app/test-pmd/config.c | 67 ++ app/test-pmd/testpmd.h | 2 ++ 3 files changed, 117 insertions(+) diff --git a/app/test-pmd/cmdline.c

[dpdk-dev] [PATCHv2 4/5] e1000: add support for eth_(rxq|txq)_info_get

2015-06-18 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/e1000/e1000_ethdev.h | 12 drivers/net/e1000/em_ethdev.c| 2 ++ drivers/net/e1000/em_rxtx.c | 38 ++ drivers/net/e1000/igb_ethdev.c | 4 drivers/net/e1000/igb_rxtx.c | 36

[dpdk-dev] [PATCHv2 3/5] ixgbe: add support for eth_(rxq|txq)_info_get

2015-06-18 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 drivers/net/ixgbe/ixgbe_ethdev.h | 6 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 42 3 files changed, 52 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c

[dpdk-dev] [PATCHv2 2/5] i40e: add support for eth_(rxq|txq)_info_get

2015-06-18 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c | 2 ++ drivers/net/i40e/i40e_ethdev.h | 5 + drivers/net/i40e/i40e_rxtx.c | 42 ++ 3 files changed, 49 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCHv2 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Konstantin Ananyev
Add the ability for the upper layer to query RX/TX queue information. Add new structures: struct rte_eth_rxq_info struct rte_eth_txq_info new functions: rte_eth_rx_queue_info_get rte_eth_tx_queue_info_get into rte_etdev API. Left extra free space in the queue info structures, so extra fields

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Konstantin Ananyev
Add the ability for the upper layer to query RX/TX queue information. Right now supported for: ixgbe, i40e, e1000 PMDs. Konstantin Ananyev (5): ethdev: add new API to retrieve RX/TX queue information i40e: add support for eth_(rxq|txq)_info_get ixgbe: add support for eth_(rxq|txq)_info_get

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Ananyev, Konstantin
Hi Mirek, > -Original Message- > From: Walukiewicz, Miroslaw > Sent: Thursday, June 18, 2015 2:31 PM > To: Ananyev, Konstantin; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX > queue information > > Konstantin, > > Is there a possibility

[dpdk-dev] [RFC PATCHv3 7/7] doc: Add Getting Started Guide for OSv

2015-06-18 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Takuya ASADA > Sent: Monday, April 6, 2015 7:58 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [RFC PATCHv3 7/7] doc: Add Getting Started Guide for > OSv > > Described how to build DPDK for OSv, using

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Walukiewicz, Miroslaw
Yes, really I need a high performance function - it is especially useful on TX path. Which queue query function are you talking here to be enhanced? Mirek > -Original Message- > From: Richardson, Bruce > Sent: Thursday, June 18, 2015 3:39 PM > To: Walukiewicz, Miroslaw > Cc: Ananyev,

[dpdk-dev] [PATCH v3 9/9] doc: add cxgbe PMD documentation under doc/guides/nics/cxgbe.rst

2015-06-18 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Rahul Lakkireddy > Sent: Thursday, June 18, 2015 1:17 PM > To: dev at dpdk.org > Cc: Felix Marti; Kumar Sanghvi; Nirranjan Kirubaharan > Subject: [dpdk-dev] [PATCH v3 9/9] doc: add cxgbe PMD documentation under

[dpdk-dev] [PATCH v3 0/9] Chelsio Terminator 5 (T5) 10G/40G Poll Mode Driver

2015-06-18 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Rahul Lakkireddy > Sent: Thursday, June 18, 2015 1:17 PM > To: dev at dpdk.org > Cc: Felix Marti; Kumar Sanghvi; Nirranjan Kirubaharan > Subject: [dpdk-dev] [PATCH v3 0/9] Chelsio Terminator 5 (T5) 10G/40G

[dpdk-dev] [PATCH v5] e1000: igb and em1000 PCI Port Hotplug changes

2015-06-18 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit functions for rte_em_pmd, rte_igb_pmd and rte_igbvf_pmd. Changes in V5: Moved adapter stopped boolean to struct e1000_adapter. Rebase to latest code. Changes in V4: Release rx and tx queues in

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Walukiewicz, Miroslaw
Konstantin, Is there a possibility to read information about available space in NIC queue for TX. It is quite easy to compute (or even available directly) and very useful especially for application sending multi-descriptor packets like TCP TSO. Now there is no access to such information

[dpdk-dev] [PATCH] ivshmem: fix segmentation fault in corner case

2015-06-18 Thread Sergio Gonzalez Monroy
Depending on the configured segments it is possible to hit a segmentation fault as a result of decrementing an unsigned index with value 0. To avoid it, exit the loop if the index has value 0. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_ivshmem/rte_ivshmem.c | 2 ++ 1 file changed, 2

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-18 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Matthew Hall > Sent: Wednesday, June 17, 2015 5:37 AM > To: dev at dpdk.org > Subject: Re: [dpdk-dev] [dpdk-announce] important design choices - > statistics - ABI > > On Wed, Jun 17, 2015 at 01:29:47AM

[dpdk-dev] [PATCH v2 6/6] cfgfile: added new implementation of section parsing

2015-06-18 Thread Gajdzica, MaciejX T
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, June 18, 2015 2:37 PM > To: Wodkowski, PawelX > Cc: dev at dpdk.org; Gajdzica, MaciejX T > Subject: Re: [dpdk-dev] [PATCH v2 6/6] cfgfile: added new implementation of > section parsing > >

[dpdk-dev] [PATCH v2 5/6] cfgfile: fixed calling free for each section in rte_cfgfile_close

2015-06-18 Thread Gajdzica, MaciejX T
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, June 18, 2015 2:30 PM > To: Wodkowski, PawelX > Cc: dev at dpdk.org; Gajdzica, MaciejX T > Subject: Re: [dpdk-dev] [PATCH v2 5/6] cfgfile: fixed calling free for each > section > in

[dpdk-dev] EAL PCI dev problem when using .a file to compile app

2015-06-18 Thread Umar Farooq
Hi I am trying to write an application "abc" using DPDK 2.0.0 that calls rte_eal_init to test if EAL is setup correctly. I have run "helloworld" and "l2fwd" applications and they run fine on my setup. A new thing that i am trying is to create a libdpdk.a file using build target

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-18 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Morten Br?rup > Sent: Wednesday, June 17, 2015 10:54 AM > To: Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [dpdk-announce] important design choices - > statistics - ABI > > Dear Thomas, >

[dpdk-dev] [PATCH v7 0/4] User-space Ethtool

2015-06-18 Thread Wang, Liang-min
>I agree with having a more complete API, but have some nits to pick. >Could the API be more abstract to reduce ABI issues in future? Which API? Are you referring to the APIs over ethdev level, or something else? More abstract on input/output data structure definition or else? Could you be more

[dpdk-dev] [PATCH v2 02/11] cxgbe: add cxgbe poll mode driver.

2015-06-18 Thread Rahul Lakkireddy
Hi Thomas, On Wed, Jun 17, 2015 at 14:30:55 +0200, Thomas Monjalon wrote: > It doesn't build as a shared library. > Please add EXPORT_MAP and LIBABIVER to the Makefile. Will fix this in v3. > It would be easier to test if build config was merged in this patch, > with the Makefile. > > Please

[dpdk-dev] dpdk 32-bit compilation on BSD

2015-06-18 Thread Mohit Saxena
Hi all, Does any one tried to compile the 32 bit version of DPDK on BSD? -- Thanks & Regards, Mohit Prakash Saxena Citrix R & D India Pvt. Ltd. Mb: +91 90368 98569 <#UNIQUE_ID_SafeHtmlFilter_> Email: mohit.saxena at citrix.com

[dpdk-dev] EAL PCI dev problem when using .a file to compile app

2015-06-18 Thread Bruce Richardson
On Thu, Jun 18, 2015 at 01:07:33PM +0500, Umar Farooq wrote: > Hi > > I am trying to write an application "abc" using DPDK 2.0.0 that calls > rte_eal_init to test if EAL is setup correctly. I have run "helloworld" and > "l2fwd" applications and they run fine on my setup. > > A new thing that i

[dpdk-dev] dpdk 32-bit compilation on BSD

2015-06-18 Thread Bruce Richardson
On Thu, Jun 18, 2015 at 11:58:02AM +0530, Mohit Saxena wrote: > Hi all, > > Does any one tried to compile the 32 bit version of DPDK on BSD? > No. For FreeBSD we only currently have a 64-bit target. However, if you do manage to get it to work, patches are always welcome. :-) Regards, /Bruce >

[dpdk-dev] [PATCH v4 01/13] port: added structures for port stats and config option

2015-06-18 Thread Gajdzica, MaciejX T
Self NACK - missing CONFIG_ prefix in config file defines. The same issue is present in table stats patchset. Will resend new version today. > -Original Message- > From: Jastrzebski, MichalX K > Sent: Monday, June 08, 2015 5:00 PM > To: dev at dpdk.org > Cc: Gajdzica, MaciejX T >

[dpdk-dev] [PATCH v2 1/3] spinlock: add support for HTM lock elision for x86

2015-06-18 Thread Bruce Richardson
On Wed, Jun 17, 2015 at 11:29:49PM +0200, Thomas Monjalon wrote: > 2015-06-16 10:16, Roman Dementiev: > > --- a/lib/librte_eal/common/include/arch/x86/rte_spinlock.h > > +++ b/lib/librte_eal/common/include/arch/x86/rte_spinlock.h > > @@ -39,6 +39,13 @@ extern "C" { > > #endif > > > > #include

[dpdk-dev] [PATCH v3 2/9] lib_vhost: Support multiple queues in virtio dev

2015-06-18 Thread Flavio Leitner
On Mon, Jun 15, 2015 at 03:56:39PM +0800, Ouyang Changchun wrote: > Each virtio device could have multiple queues, say 2 or 4, at most 8. > Enabling this feature allows virtio device/port on guest has the ability to > use different vCPU to receive/transmit packets from/to each queue. > > In

[dpdk-dev] [PATCH v3 2/9] lib_vhost: Support multiple queues in virtio dev

2015-06-18 Thread Flavio Leitner
On Mon, Jun 15, 2015 at 03:56:39PM +0800, Ouyang Changchun wrote: > Each virtio device could have multiple queues, say 2 or 4, at most 8. > Enabling this feature allows virtio device/port on guest has the ability to > use different vCPU to receive/transmit packets from/to each queue. > > In

[dpdk-dev] [PATCH] vhost: provide vhost API to unregister vhost unix domain socket

2015-06-18 Thread Tetsuya Mukawa
On 2015/06/17 20:05, Xie, Huawei wrote: > On 6/17/2015 12:17 PM, Tetsuya Mukawa wrote: >> On 2015/06/02 10:50, Huawei Xie wrote: >>> rte_vhost_driver_unregister will remove the listenfd from event list, and >>> then close it. >>> >>> Signed-off-by: Huawei Xie >>> Signed-off-by: Peng Sun >>> ---

[dpdk-dev] [PATCH v4 10/10] examples/tep_termination:add the configuration for encapsulation and the decapsulation

2015-06-18 Thread Jijiang Liu
The two flags are enabled by default. Sometimes we want to know the performance influence of the encapsulation and decapsulation operations, and I think we should add the two configuration options. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 40

[dpdk-dev] [PATCH v4 09/10] examples/tep_termination:add bad Rx checksum statistics of inner IP and L4

2015-06-18 Thread Jijiang Liu
The number of packets with bad RX IP and L4 checksum in inner header is recorded. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 10 +- examples/tep_termination/main.h|4 examples/tep_termination/vxlan_setup.c | 10 ++

[dpdk-dev] [PATCH v4 08/10] examples/tep_termination:add TSO offload configuration

2015-06-18 Thread Jijiang Liu
If the 'tso-segsz' is not 0, it means TSO offload is enabled. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 19 +++ examples/tep_termination/vxlan.c |7 +++ examples/tep_termination/vxlan.h |2 ++

[dpdk-dev] [PATCH v4 07/10] examples/tep_termination:add Tx checksum offload configuration for inner header

2015-06-18 Thread Jijiang Liu
For UDP tunneling packet, the inner Tx checksum offload means inner IPv4 and inner L4(TCP/UDP/SCTP). Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c | 19 + examples/tep_termination/vxlan.c | 81 ++

[dpdk-dev] [PATCH v4 06/10] examples/tep_termination:add tunnel filter type configuration

2015-06-18 Thread Jijiang Liu
The following filter types are supported for VXLAN: 1> Inner MAC and tenent ID 2> Inner MAC and tenent ID, and Outer MAC 3> Inner MAC and tenent ID Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 22 ++ examples/tep_termination/vxlan_setup.c | 67

[dpdk-dev] [PATCH v4 05/10] examples/tep_termination:add UDP port configuration for UDP tunneling packet

2015-06-18 Thread Jijiang Liu
The port number of UDP tunneling packet is configurable, which has 16 entries in total for i40e. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 19 +++ examples/tep_termination/vxlan_setup.c | 13 - examples/tep_termination/vxlan_setup.h

[dpdk-dev] [PATCH v4 04/10] examples/tep_termination:implement VXLAN packet processing

2015-06-18 Thread Jijiang Liu
To implement the following functions: 1> VXLAN port configuration 2> VXLAN tunnel setup 3> VXLAN tunnel destroying 4> VXLAN packet processing for Rx side 5> VXLAN packet processing for Tx side Signed-off-by: Jijiang Liu Signed-off-by: Thomas Long --- examples/tep_termination/Makefile

[dpdk-dev] [PATCH v4 03/10] examples/tep_termination:add the pluggable structures for VXLAN packet processing

2015-06-18 Thread Jijiang Liu
We are trying to create a framework for tunneling packet processing, so some common APIs are added here, which includes 1> tunnel port configuration 2> tunnel setup 3> tunnel destroying 4> tunneling packet processing for Rx side 5> tunneling packet processing for Tx side 6> tunnel parameter

[dpdk-dev] [PATCH v4 02/10] examples/tep_termination:define the basic VXLAN port information

2015-06-18 Thread Jijiang Liu
Some basic VXLAN definations are added in this file, which includes VXLAN port information and VXLAN device structures. Signed-off-by: Jijiang Liu Signed-off-by: Thomas Long --- examples/tep_termination/main.c |1 + examples/tep_termination/vxlan.h | 60

[dpdk-dev] [PATCH v4 01/10] examples/tep_termination:initialize the VXLAN sample

2015-06-18 Thread Jijiang Liu
This sample uses the basic virtio devices management function from the vHost example, which includes virtio device creation, destroying and maintenance. Signed-off-by: Jijiang Liu --- examples/Makefile |1 + examples/tep_termination/Makefile | 55 ++

[dpdk-dev] [PATCH v4 00/10] Add a VXLAN sample

2015-06-18 Thread Jijiang Liu
This VXLAN sample simulates a VXLAN Tunnel Endpoint (VTEP) termination in DPDK, which is used to demonstrate the offload and filtering capabilities of i40 NIC for VXLAN packet. And this sample uses the basic virtio devices management function from vHost example, and the US-vHost interface and

[dpdk-dev] [ovs-dev] dpdkvhostuser fail to alloc memory when receive packet from other host

2015-06-18 Thread Du, Fan
>-Original Message- >From: gowrishankar [mailto:gowrishankar.m at linux.vnet.ibm.com] >Sent: Wednesday, June 17, 2015 7:54 PM >To: Du, Fan >Cc: Loftus, Ciara; dev at dpdk.org; dev at openvswitch.org >Subject: Re: [ovs-dev] dpdkvhostuser fail to alloc memory when receive packet >from

[dpdk-dev] [PATCH v3 0/3] fm10k: update MAC/VLAN filter and VLAN offload features

2015-06-18 Thread Chen, Jing D
> -Original Message- > From: He, Shaopeng > Sent: Thursday, June 18, 2015 3:21 PM > To: dev at dpdk.org > Cc: Chen, Jing D; Qiu, Michael; He, Shaopeng > Subject: [PATCH v3 0/3] fm10k: update MAC/VLAN filter and VLAN offload > features > > v3 changes: > - add more result check for MAC

[dpdk-dev] [PATCH 1/2 v2] fm10k: Free queues when close port

2015-06-18 Thread Chen, Jing D
> -Original Message- > From: Qiu, Michael > Sent: Wednesday, June 17, 2015 3:59 PM > To: dev at dpdk.org > Cc: Chen, Jing D; Iremonger, Bernard; He, Shaopeng; Qiu, Michael > Subject: [PATCH 1/2 v2] fm10k: Free queues when close port > > When close a port, lots of memory should be

[dpdk-dev] [PATCH v4 1/5] vhost: eventfd_link: moving ioctl to a function

2015-06-18 Thread Xie, Huawei
Two opens here, the trivial one is i think it is not good practice to explicitly inline non performance critical functions in c file, even if it will be done by compiler anyway. The critical one i have concern is whether it will introduce inconsistency if we call fd_install on a fd that is just

[dpdk-dev] [PATCH v2] vhost: provide vhost API to unregister vhost unix domain socket

2015-06-18 Thread Xie, Huawei
On 6/18/2015 5:02 AM, Thomas Monjalon wrote: > 2015-06-05 11:26, Huawei Xie: >> rte_vhost_driver_unregister will remove the listenfd from event list, and >> then close it. >> >> Signed-off-by: Huawei Xie >> Signed-off-by: Peng Sun >> --- >> lib/librte_vhost/rte_virtio_net.h| 3 ++

[dpdk-dev] [PATCH v2 1/3] spinlock: add support for HTM lock elision for x86

2015-06-18 Thread Thomas Monjalon
2015-06-16 10:16, Roman Dementiev: > --- a/lib/librte_eal/common/include/arch/x86/rte_spinlock.h > +++ b/lib/librte_eal/common/include/arch/x86/rte_spinlock.h > @@ -39,6 +39,13 @@ extern "C" { > #endif > > #include "generic/rte_spinlock.h" > +#include "rte_rtm.h" > +#include "rte_cpuflags.h" >