[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-10-05 Thread Michael S. Tsirkin
On Mon, Oct 05, 2015 at 01:08:52PM +, Xie, Huawei wrote: > On 9/30/2015 5:36 AM, Michael S. Tsirkin wrote: > > On Tue, Sep 29, 2015 at 05:50:00PM +, shesha Sreenivasamurthy (shesha) > > wrote: > >> Sure. Then, is there any real reason why the backing files should not be > >> unlinked ? > >

[dpdk-dev] [PATCH 1/6] cxgbe: Optimize forwarding performance for 40G

2015-10-05 Thread Rahul Lakkireddy
On Monday, October 10/05/15, 2015 at 07:09:27 -0700, Ananyev, Konstantin wrote: > Hi Rahul, [...] > > > > This additional check seems redundant for single segment > > > > packets since rte_pktmbuf_free_seg also performs rte_mbuf_sanity_check. > > > > > > > > Several PMDs already prefer to use rte

[dpdk-dev] Question about specifying constant time interval when using rte_get_timer_cycles().

2015-10-05 Thread 최익성
Dear DPDK experts. I have a question about specifying constant time interval when using rte_get_timer_cycles(); Would you let me know how can I specify constant time 30 seconds of DRAIN_TIME? I will really appreciate if let me know. uint64_t now, old, DRAIN_TIME ; DRAIN_TIME = ? // 30 sec

[dpdk-dev] [PATCH 3/3] mlx5: RETA query/update support

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro ConnectX-4 is able to use indirection tables size of power of two, but with the current API it is impossible to predict its size, so to simplify, for any query/update RETA command, the indirection table is modified to use the maximum value. A port stop/start must be done t

[dpdk-dev] [PATCH 2/3] ethdev: change RETA type in rte_eth_rss_reta_entry64

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro Several NICs can handle 512 entries in their RETA table, an 8 bit field is not large enough for them. Signed-off-by: Nelio Laranjeiro --- lib/librte_ether/rte_ethdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib

[dpdk-dev] [PATCH 1/3] cmdline: increase command line buffer

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro For RETA query/update with a table of 512 entries, buffers are too small to handle the request. Signed-off-by: Nelio Laranjeiro --- lib/librte_cmdline/cmdline_parse.h| 2 +- lib/librte_cmdline/cmdline_parse_string.h | 2 +- lib/librte_cmdline/cmdline_rdline.h

[dpdk-dev] [PATCH 0/3] Add RETA configuration to mlx5

2015-10-05 Thread Adrien Mazarguil
mlx5 devices support indirection tables of variable size up to 512 entries, which requires a larger configuration structure (requiring a change in the ABI). This patchset can be considered as a first RFC step because the current API is not very practical due to the following limitations: - Config

[dpdk-dev] [PATCH 3/3] mlx5: handle interrupts

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro Add interrupts handler for port status notification. Signed-off-by: Nelio Laranjeiro Signed-off-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 3 + drivers/net/mlx5/mlx5.h | 7 ++ drivers/net/mlx5/mlx5_defs.h| 3 + drivers/net/mlx5/mlx5_eth

[dpdk-dev] [PATCH 2/3] mlx4: handle interrupts

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro Add interrupts handler for port status notification. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.c | 166 drivers/net/mlx4/mlx4.h | 3 + 2 files changed, 169 insertions(+) diff --git a/drivers/net/mlx4/mlx

[dpdk-dev] [PATCH 1/3] eal: new interrupt handler type

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro Add RTE_INTR_HANDLE_EXT handler type for PMDs that do not support VFIO or UIO. Those are expected to manage the file descriptor themselves. Signed-off-by: Nelio Laranjeiro --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 34 -- .../linuxapp/e

[dpdk-dev] [PATCH 0/3] Add link status notification support to Mellanox PMDs

2015-10-05 Thread Adrien Mazarguil
Mellanox PMDs (mlx4 and mlx5) support link status notification with libibverbs through a file descriptor, in a manner reminiscent of UIO/VFIO. It still requires a new "external" interrupt handler type since contrary to other types, this file descriptor must not be processed by EAL. Nelio Laranjei

[dpdk-dev] [PATCH 17/17] doc: update mlx5 documentation

2015-10-05 Thread Adrien Mazarguil
Add new features related to Mellanox OFED 3.1 support. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/mlx5.rst | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index fdb621c..2d68914 100644 --- a/doc/guides/n

[dpdk-dev] [PATCH 16/17] mlx5: fix compilation error with GCC < 4.6

2015-10-05 Thread Adrien Mazarguil
From: Yaacov Hazan Seen with GCC < 4.6: error: unknown field ?tcp_udp? specified in initializer error: extra brace group at end of initializer Static initialization of anonymous structs/unions is a C11 feature properly supported only since GCC 4.6. Work around compilation errors with older v

[dpdk-dev] [PATCH 15/17] mlx5: enable multi packet send WR in TX CQ

2015-10-05 Thread Adrien Mazarguil
For adapters that support it, this flag improves performance outside of VF context. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx5/Makefile | 5 + drivers/net/mlx5/mlx5_txq.c | 7 +++ 2 files changed, 12 insertions(+) diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Mak

[dpdk-dev] [PATCH 14/17] mlx5: use experimental flows in hash RX queues

2015-10-05 Thread Adrien Mazarguil
This is done because normal flows cannot support IPv6 at the moment. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_mac.c| 18 +- drivers/net/mlx5/mlx5_rxmode.c | 18 +- drivers/net/mlx5/mlx5_rxq.c| 14 +++---

[dpdk-dev] [PATCH 13/17] mlx5: remove normal MAC flows when enabling promiscuous mode

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro Normal MAC flows are not necessary when promiscuous mode is enabled. Removing them frees up hardware resources. Signed-off-by: Nelio Laranjeiro Signed-off-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_rxmode.c | 15 +-- 1 file changed, 13 insertions(+), 2 d

[dpdk-dev] [PATCH 12/17] app/testpmd: fix missing initialization in the RSS hash show command

2015-10-05 Thread Adrien Mazarguil
The "show port X rss-hash" command sometimes displays garbage instead of the expected RSS hash key because the maximum key length is undefined. When the requested key is too large to fit in the buffer, rte_eth_dev_rss_hash_conf_get() does not update it. Signed-off-by: Adrien Mazarguil Signed-off-

[dpdk-dev] [PATCH 11/17] app/testpmd: add missing type to RSS hash commands

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro DPDK uses a structure to get or set a new hash key (see eth_rte_rss_hash_conf). rss_hf field from this structure is used in rss_hash_get_conf to retrieve the hash key and in rss_hash_update uses it to verify the key exists before trying to update it. Signed-off-by: Nelio

[dpdk-dev] [PATCH 10/17] mlx5: use one RSS hash key per flow type

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro DPDK expects to have an RSS hash key per flow type (IPv4, IPv6, UDPv4, etc.), to handle this the PMD must keep a table of hash keys to be able to reconfigure the queues at each start/stop call. Signed-off-by: Nelio Laranjeiro Signed-off-by: Adrien Mazarguil --- drivers/

[dpdk-dev] [PATCH 09/17] mlx5: add RSS hash update/get

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro First implementation of rss_hash_update and rss_hash_conf_get, those functions still lack in functionality but are usable to change the RSS hash key. For now, the PMD does not handle an indirection table for each kind of flow (IPv4, IPv6, etc.), the same RSS hash key is us

[dpdk-dev] [PATCH 08/17] mlx5: use alternate method to configure promiscuous mode

2015-10-05 Thread Adrien Mazarguil
From: Olga Shern Promiscuous mode was historically enabled by adding a specific flow with type IBV_FLOW_ATTR_ALL_DEFAULT to each hash RX queue, but this method is deprecated. It is now simply enabled by omitting destination MAC addresses from basic flow specifications. Signed-off-by: Olga Shern

[dpdk-dev] [PATCH 07/17] mlx5: define specific flow steering rules for each hash RX QP

2015-10-05 Thread Adrien Mazarguil
From: Olga Shern All hash RX QPs currently use the same flow steering rule (L2 MAC filtering) regardless of their type (TCP, UDP, IPv4, IPv6), which prevents them from being dispatched properly. This is fixed by adding flow information to the hash RX queue initialization data and generating speci

[dpdk-dev] [PATCH 06/17] mlx5: adapt indirection table size depending on RX queues number

2015-10-05 Thread Adrien Mazarguil
From: Nelio Laranjeiro Use the maximum size of the indirection table when the number of requested RX queues is not a power of two, this help to improve RSS balancing. A message informs users that balancing is not optimal in such cases. Signed-off-by: Nelio Laranjeiro Signed-off-by: Adrien Maza

[dpdk-dev] [PATCH 05/17] mlx5: use separate indirection table for default hash RX queue

2015-10-05 Thread Adrien Mazarguil
From: Olga Shern The default hash RX queue handles packets that are not matched by more specific types and requires its own indirection table of size 1 to work properly. This commit implements support for multiple indirection tables by grouping their layout and properties in a static initializat

[dpdk-dev] [PATCH 04/17] mlx5: restore allmulti and promisc modes after device restart

2015-10-05 Thread Adrien Mazarguil
These modes are otherwise lost when device is stopped. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.h | 2 ++ drivers/net/mlx5/mlx5_rxmode.c | 12 drivers/net/mlx5/mlx5_trigger.c | 4 ++-- 3 files changed, 8 insertions(+), 10

[dpdk-dev] [PATCH 03/17] mlx5: refactor RX code for the new Verbs RSS API

2015-10-05 Thread Adrien Mazarguil
The new Verbs RSS API is lower-level than the previous one and much more flexible but requires RX queues to use Work Queues (WQs) internally instead of Queue Pairs (QPs), which are grouped in an indirection table used by a new kind of hash RX QPs. Hash RX QPs and the indirection table together rep

[dpdk-dev] [PATCH 02/17] mlx5: get rid of the WR structure in RX queue elements

2015-10-05 Thread Adrien Mazarguil
Removing this structure reduces the size of SG and non-SG RX queue elements significantly to improve performance. An nice side effect is that the mbuf pointer is now fully stored in struct rxq_elt instead of relying on the WR ID data offset hack. Signed-off-by: Adrien Mazarguil Signed-off-by: Ol

[dpdk-dev] [PATCH 01/17] mlx5: use fast Verbs interface for scattered RX operation

2015-10-05 Thread Adrien Mazarguil
This commit updates mlx5_rx_burst_sp() to use the fast verbs interface for posting RX buffers just like mlx5_rx_burst(). Doing so avoids a loop in libmlx5 and an indirect function call through libibverbs. Note: recv_sg_list() is not implemented in the QP burst API, this commit is only to prepare t

[dpdk-dev] [PATCH 00/17] Enhance mlx5 with Mellanox OFED 3.1

2015-10-05 Thread Adrien Mazarguil
Mellanox OFED 3.1 [1] comes with improved APIs that Mellanox ConnectX-4 (mlx5) adapters can take advantage of, such as: - Separate post and doorbell operations on all queues. - Lightweight RX queues called Work Queues (WQs). - Low-level RSS indirection table and hash key configuration. This patch

[dpdk-dev] [PATCH 13/13] doc: add mlx5 documentation and release notes for version 2.2

2015-10-05 Thread Adrien Mazarguil
Signed-off-by: Adrien Mazarguil --- doc/guides/nics/mlx5.rst | 308 +++ doc/guides/rel_notes/release_2_2.rst | 8 + 2 files changed, 316 insertions(+) create mode 100644 doc/guides/nics/mlx5.rst diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nic

[dpdk-dev] [PATCH 12/13] mlx5: add checksum offloading support

2015-10-05 Thread Adrien Mazarguil
This is the same implementation as mlx4. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_rxq.c | 14 +++ drivers/net/mlx5/mlx5_rxtx.c | 94 +++ drivers/net/mlx5/mlx5_rxtx.h | 2 + drivers/net/mlx5/mlx5_ut

[dpdk-dev] [PATCH 11/13] mlx5: add VLAN filtering

2015-10-05 Thread Adrien Mazarguil
All MAC RX flows must be updated with VLAN information when configuring a VLAN filter. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/Makefile| 1 + drivers/net/mlx5/mlx5.c | 1 + drivers/net/mlx5/mlx5.h | 4 ++ drivers/net/mlx5/mlx5_vla

[dpdk-dev] [PATCH 10/13] mlx5: add flow control device operations

2015-10-05 Thread Adrien Mazarguil
Like most other device control operations, those are handled by the related kernel network device through syscalls. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c| 2 + drivers/net/mlx5/mlx5.h| 2 + drivers/net/mlx5/mlx5_ethdev.c |

[dpdk-dev] [PATCH 09/13] mlx5: add link update device operation

2015-10-05 Thread Adrien Mazarguil
Link information is retrieved using ethtool ioctls. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c| 1 + drivers/net/mlx5/mlx5.h| 1 + drivers/net/mlx5/mlx5_ethdev.c | 71 ++ 3 files changed,

[dpdk-dev] [PATCH 08/13] mlx5: add promiscuous and allmulticast RX modes

2015-10-05 Thread Adrien Mazarguil
These modes require special non-MAC flows. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/Makefile | 1 + drivers/net/mlx5/mlx5.c | 4 + drivers/net/mlx5/mlx5.h | 11 ++ drivers/net/mlx5/mlx5_ethdev.c | 4 + drivers/net/mlx5/ml

[dpdk-dev] [PATCH 07/13] mlx5: add software counters and related callbacks

2015-10-05 Thread Adrien Mazarguil
Hardware counters are not supported yet. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/Makefile | 1 + drivers/net/mlx5/mlx5.c | 2 + drivers/net/mlx5/mlx5.h | 5 ++ drivers/net/mlx5/mlx5_defs.h | 8 +++ drivers/net/mlx5/mlx5_rxq.c

[dpdk-dev] [PATCH 06/13] mlx5: add MTU configuration support

2015-10-05 Thread Adrien Mazarguil
Depending on the MTU and whether jumbo frames are enabled, RX queues may switch between SG and non-SG modes for better performance. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c| 1 + drivers/net/mlx5/mlx5.h| 1 + drivers/net/mlx

[dpdk-dev] [PATCH 05/13] mlx5: add support for scattered RX and TX buffers

2015-10-05 Thread Adrien Mazarguil
A dedicated RX callback is added to handle scattered buffers. For better performance, it is only used when jumbo frames are enabled and MTU is larger than a single mbuf. On the TX path, scattered buffers are also handled in a separate function. When there are more than MLX5_PMD_SGE_WR_N segments i

[dpdk-dev] [PATCH 04/13] mlx5: add device configure/start/stop

2015-10-05 Thread Adrien Mazarguil
This commit adds the remaining missing callbacks to make mlx5 usable. Like mlx4, device start and stop are implemented on top of MAC RX flows. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro Signed-off-by: Francesco Santoro Signed-off-by: Didier Pallard --- drivers/net/mlx5/Ma

[dpdk-dev] [PATCH 03/13] mlx5: add MAC handling

2015-10-05 Thread Adrien Mazarguil
This commit adds support for MAC flow steering rules mandatory for the RX path as well as the related callbacks to add/remove MAC addresses. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro Signed-off-by: Didier Pallard --- drivers/net/mlx5/mlx5.c | 4 +- drivers/net/mlx5/

[dpdk-dev] [PATCH 02/13] mlx5: add non-scattered TX and RX support

2015-10-05 Thread Adrien Mazarguil
RSS implementation with parent/child QPs comes from mlx4 and is temporary. Signed-off-by: Adrien Mazarguil Signed-off-by: Nelio Laranjeiro --- config/common_bsdapp | 3 + config/common_linuxapp| 3 + drivers/net/mlx5/Makefile | 15 + drivers/net/mlx5/mlx5.c | 40

[dpdk-dev] [PATCH 01/13] mlx5: new poll-mode driver for Mellanox ConnectX-4 adapters

2015-10-05 Thread Adrien Mazarguil
In its current state, this driver implements the bare minimum to initialize itself and Mellanox ConnectX-4 adapters without doing anything else (no RX/TX for instance). It is disabled by default since it is based on the mlx4 driver and also depends on libibverbs. Signed-off-by: Adrien Mazarguil S

[dpdk-dev] [PATCH 00/13] Mellanox ConnectX-4 PMD (mlx5)

2015-10-05 Thread Adrien Mazarguil
This PMD adds basic support for Mellanox ConnectX-4 (mlx5) families of 10/25/40/50/100 Gb/s adapters through the Verbs framework. Its design is very similar to that of mlx4 from which most of its code is borrowed without the mistake of putting it all in a single huge file. It is disabled by defau

[dpdk-dev] [PATCH 3/3] mlx4: do not expose broadcast address in MAC list

2015-10-05 Thread Adrien Mazarguil
From: Didier Pallard Use the last array entry to store the broadcast address and keep it hidden by not reporting the entire array size. This is done to prevent DPDK applications from attempting to modify or remove it. Signed-off-by: Didier Pallard --- drivers/net/mlx4/mlx4.c | 19 +++-

[dpdk-dev] [PATCH 2/3] mlx4: fill if_index field in dev_info structure

2015-10-05 Thread Adrien Mazarguil
From: Francesco Santoro Allows applications to retrieve the name of the related netdevice. Signed-off-by: Francesco Santoro --- drivers/net/mlx4/mlx4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index e1ca577..9614471 100644 --- a/d

[dpdk-dev] [PATCH 1/3] mlx4: fix missing ol_flags in scattered RX function

2015-10-05 Thread Adrien Mazarguil
They were dropped by mistake in the commit below. Fixes: ab351fe1c95c ("mbuf: remove packet type from offload flags") Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 2f49ed5..

[dpdk-dev] DPDK install behavior Question

2015-10-05 Thread Panu Matilainen
On 10/02/2015 07:32 PM, Arevalo, Mario Alfredo C wrote: > Hi, > > Working with the patchset to include new features to make install, > some questions I missed to ask before: > > for example if you use only "make install": > > "T" variable is going to get "*" value and the > makefiles are going to b

[dpdk-dev] [PATCH 1/6] cxgbe: Optimize forwarding performance for 40G

2015-10-05 Thread Rahul Lakkireddy
Hi Konstantin, On Monday, October 10/05/15, 2015 at 04:46:40 -0700, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Rahul Lakkireddy > > Sent: Monday, October 05, 2015 11:06 AM > > To: Aaron Conole > > Cc: dev at dpdk.org;

[dpdk-dev] [PATCH 1/6] cxgbe: Optimize forwarding performance for 40G

2015-10-05 Thread Rahul Lakkireddy
Hi Aaron, On Friday, October 10/02/15, 2015 at 14:48:28 -0700, Aaron Conole wrote: > Hi Rahul, > > Rahul Lakkireddy writes: > > > Update sge initialization with respect to free-list manager configuration > > and ingress arbiter. Also update refill logic to refill mbufs only after > > a certain

[dpdk-dev] [PATCH v4 7/7] mk: Add rule for installing runtime files

2015-10-05 Thread Mario Carrillo
Add hierarchy-file support to the DPDK libraries, modules, binary files, nic bind file, cpu layout file and documentation. When invoking "make install-fhs" (filesystem hierarchy standard) runtime files will be by default installed in: $(DESTDIR)/$(BIN_DIR) where BIN_DIR=/usr/bin (binary files, ni

[dpdk-dev] [PATCH v4 6/7] mk: Add rule for installing sdk files

2015-10-05 Thread Mario Carrillo
Add hierarchy-file support to the DPDK makefiles, scripts, examples, tools, config files and headers. When invoking "make install-sdk" makefiles, scripts, examples, tools, config files will be installed in: $(DESTDIR)/$(SDK_DIR) and headers will be installed in: $(DESTDIR)/$(INCLUDE_DIR) Where SD

[dpdk-dev] [PATCH v4 5/7] mk: Add rule for installing documentation

2015-10-05 Thread Mario Carrillo
Add hierarchy-file support to the DPDK documentation. When invoking "make install-doc" documentation files will be installed in: $(DESTDIR)/$(DOC_DIR) where DOC_DIR=$(DESTDIR)/usr/share/doc/dpdk by default. You can override DOC_DIR var. This hierarchy is based on: http://www.freedesktop.org/softw

[dpdk-dev] [PATCH v4 4/7] mk: Add rule for installing modules

2015-10-05 Thread Mario Carrillo
Add hierarchy-file support to the DPDK modules. When invoking "make install-mod" modules will be installed in: $(DESTDIR)/$(KERNEL_DIR) If RTE_EXEC_ENV=linuxapp then KERNEL_DIR=/lib/modules/$(uname -r)/extra/drivers/dpdk else KERNEL_DIR=/boot/modules by default. You can override KERNEL_DIR var.

[dpdk-dev] [PATCH v4 3/7] mk: Add rule for installing libraries

2015-10-05 Thread Mario Carrillo
Add hierarchy-file support to the DPDK libraries. When invoking "make install-lib" libraries will be installed in: $(DESTDIR)/$(LIB_DIR) If architecture is 64 bits then LIB_DIR=/usr/lib64 else LIB_DIR=/usr/lib by default. You can override LIB_DIR var. This hierarchy is based on: http://www.freed

[dpdk-dev] [PATCH v4 2/7] mk: Add rule for installing app files

2015-10-05 Thread Mario Carrillo
Add hierarchy-file support to the DPDK app files, nic bind file and cpu layout file. When invoking "make install-bin" app files will be installed in: $(DESTDIR)/$(BIN_DIR) where BIN_DIR=/usr/bin by default. You can override BIN_DIR var. This hierarchy is based on: http://www.freedesktop.org/softw

[dpdk-dev] [PATCH v4 1/7] mk: Add rule for installing headers

2015-10-05 Thread Mario Carrillo
Add hierarchy-file support to the DPDK headers. When invoking "make install-headers" headers will be installed in: $(DESTDIR)/$(INCLUDE_DIR) where INCLUDE_DIR=/usr/include/dpdk by default. You can override INCLUDE_DIR var. This hierarchy is based on: http://www.freedesktop.org/software/systemd/ma

[dpdk-dev] [PATCH v4 0/7] Add instalation rules for dpdk files.

2015-10-05 Thread Mario Carrillo
DPDK package lacks of a mechanism to install libraries, headers applications, kernel modules and sdk files to a file system tree. This patch set allows to install files according to the next proposal: http://www.freedesktop.org/software/systemd/man/file-hierarchy.html however this patch set does n

[dpdk-dev] Question about specifying constant time interval when using rte_get_timer_cycles().

2015-10-05 Thread Bruce Richardson
On Mon, Oct 05, 2015 at 07:59:27PM +0900, ??? wrote: > Dear DPDK experts. > > I have a question about specifying constant time interval when using > rte_get_timer_cycles(); > > Would you let me know how can I specify constant time 30 seconds of > DRAIN_TIME? > > I will really appreciate if

[dpdk-dev] [PATCH 1/6] cxgbe: Optimize forwarding performance for 40G

2015-10-05 Thread Ananyev, Konstantin
Hi Rahul, > -Original Message- > From: Rahul Lakkireddy [mailto:rahul.lakkireddy at chelsio.com] > Sent: Monday, October 05, 2015 1:42 PM > To: Ananyev, Konstantin > Cc: Aaron Conole; dev at dpdk.org; Felix Marti; Kumar A S; Nirranjan > Kirubaharan > Subject: Re: [dpdk-dev] [PATCH 1/6] cx

[dpdk-dev] Regarding MMIO

2015-10-05 Thread Xie, Huawei
On 10/5/2015 12:41 PM, Venkateswara Rao Dokku wrote: > Thanks for the response Stephen. > > Are you referring to Virt-IO 0.9 in specific here in the response or for > any Virt-IO versions in general? > > On Thu, Oct 1, 2015 at 8:12 PM, Stephen Hemminger < > stephen at networkplumber.org> wrote: > >

[dpdk-dev] [PATCH v2] ip_pipeline: add flow id parameter to flow classification

2015-10-05 Thread Dumitrescu, Cristian
> -Original Message- > From: Singh, Jasvinder > Sent: Monday, October 5, 2015 12:14 PM > To: dev at dpdk.org > Cc: Dumitrescu, Cristian > Subject: [PATCH v2] ip_pipeline: add flow id parameter to flow classification > > This patch adds flow id field to the flow > classification table ent

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-10-05 Thread Xie, Huawei
On 9/30/2015 5:36 AM, Michael S. Tsirkin wrote: > On Tue, Sep 29, 2015 at 05:50:00PM +, shesha Sreenivasamurthy (shesha) > wrote: >> Sure. Then, is there any real reason why the backing files should not be >> unlinked ? > AFAIK qemu unlinks them already. Sorry, i didn't make it clear. Let us t

[dpdk-dev] Unable to bind igb_uio or uio_pci_generic 82540EM Gigabit Ethernet Controller

2015-10-05 Thread K Rahul
Hello, We are using Intel 82540EM Gigabit Ethernet Controller NIC card to capture packets from multicaste ip address. As given in dpdk tutorial, we need to bind an NIC before using it with dpdk application. The script 'dpdk_nic_bind.py' helps in binding the NIC to dpdk driver, but we are unabl

[dpdk-dev] [PATCH v2] ip_pipeline: add flow id parameter to flow classification

2015-10-05 Thread Jasvinder Singh
This patch adds flow id field to the flow classification table entries and adds table action handlers to read flow id from table entry and write it into the packet meta-data. The flow_id (32-bit) parameter is also added to CLI commands flow add, flow delete, etc. *v2 fixed bug: flow table entry si

[dpdk-dev] [PATCH] devargs: add blacklisting by linux interface name

2015-10-05 Thread Charles (Chas) Williams
On Fri, 2015-10-02 at 16:44 +, Richardson, Bruce wrote: > I'm not sure about that, to be honest. However, I'd rather not have > too many cmd line options to be maintained in the code. > > Does you proposed blacklisting patch work with non-pci devices as well > as with PCI ones as now? I refa

[dpdk-dev] [PATCH 1/6] cxgbe: Optimize forwarding performance for 40G

2015-10-05 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Rahul Lakkireddy > Sent: Monday, October 05, 2015 11:06 AM > To: Aaron Conole > Cc: dev at dpdk.org; Felix Marti; Kumar A S; Nirranjan Kirubaharan > Subject: Re: [dpdk-dev] [PATCH 1/6] cxgbe: Optimize forwardin

[dpdk-dev] [PATCH v2 20/20] vmxnet3: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index a70be5c..2beee3e 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/v

[dpdk-dev] [PATCH v2 19/20] virtio: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..20059a0 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/v

[dpdk-dev] [PATCH v2 18/20] mlx4: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/mlx4/mlx4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 2f49ed5..e7b38da 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -4973,6 +4973,9 @@ mlx4_pci_devinit(st

[dpdk-dev] [PATCH v2 17/20] enic: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/enic/enic_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index e385560..95baa8a 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -597,6

[dpdk-dev] [PATCH v2 16/20] cxgbe: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/cxgbe/cxgbe_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c index 478051a..f081879 100644 --- a/drivers/net/cxgbe/cxgbe_ethdev.c +++ b/drivers/net/cxgbe/cxgbe_ethde

[dpdk-dev] [PATCH v2 15/20] bnx2x: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/bnx2x/bnx2x_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c index 09b5920..fbcd5f4 100644 --- a/drivers/net/bnx2x/bnx2x_ethdev.c +++ b/drivers/net/bnx2x/bnx2x_ethde

[dpdk-dev] [PATCH v2 14/20] fm10k: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/fm10k/fm10k_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index a69c990..12be227 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev

[dpdk-dev] [PATCH v2 13/20] i40e: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 3 +++ drivers/net/i40e/i40e_ethdev_vf.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 2dd9fdc..bd81d4e 100644 --- a/drivers/net/i40e/i40e_ethdev

[dpdk-dev] [PATCH v2 12/20] e1000: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/e1000/em_ethdev.c | 3 +++ drivers/net/e1000/igb_ethdev.c | 5 + 2 files changed, 8 insertions(+) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 912f5dd..aa1bf48 100644 --- a/drivers/net/e1000/em_ethdev.c +++

[dpdk-dev] [PATCH v2 11/20] ixgbe: copy pci device info to eth_dev data

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ec2918c..08b5cbb 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethd

[dpdk-dev] [PATCH v2 10/20] mpipe: remove pci device driver

2015-10-05 Thread Bernard Iremonger
From: David Hunt initialise dev_flags, kdrv, driver, drv_name and numa_node in eth_dev data. Signed-off-by: David Hunt Signed-off-by: Bernard Iremonger --- drivers/net/mpipe/mpipe_tilegx.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/mpipe/mpipe_til

[dpdk-dev] [PATCH v2 09/20] xenvirt: remove pci device driver

2015-10-05 Thread Bernard Iremonger
From: David Hunt Initialise dev_flags, driver, kdrv, drv_name and numa_node in eth_dev data. Signed-off-by: David Hunt Signed-off-by: Bernard Iremonger --- drivers/net/xenvirt/rte_eth_xenvirt.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/net/xenv

[dpdk-dev] [PATCH v2 08/20] af_packet: remove pci device driver

2015-10-05 Thread Bernard Iremonger
From: David Hunt initialise dev_flags, driver, kdrv, drv_name and numa_node fileds in eth_dev data. Signed-off-by: David Hunt Signed-off-by: Bernard Iremonger --- drivers/net/af_packet/rte_eth_af_packet.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git

[dpdk-dev] [PATCH v2 07/20] pcap: remove pci device driver

2015-10-05 Thread Bernard Iremonger
remove rte_pcap_pmd and pci_dev. initialise dev_flags, driver, drv_name, kdrv and numa_node fields in eth_dev data Signed-off-by: Bernard Iremonger --- drivers/net/pcap/rte_eth_pcap.c | 31 +-- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/drivers/ne

[dpdk-dev] [PATCH v2 06/20] bonding: remove pci device driver

2015-10-05 Thread Bernard Iremonger
remove pci_dev, pci_drv, rte_bond_pmd and pci_id_table. initialise dev_flags, kdrv, driver, drv_name and numa_node fields in eth_dev data. handle numa_node for vdevs handle RTE_ETH_DEV_INTR_LSC for vdevs rename valid_bonded_device to check_for_bonded_device Signed-off-by: Bernard Iremonger ---

[dpdk-dev] [PATCH v2 05/20] ring: remove pci device driver

2015-10-05 Thread Bernard Iremonger
remove rte_ring_pmd and pci_dev. initialise dev_flags, driver, drv_name, kdrv and numa_node fields in eth_dev data. Signed-off-by: Bernard Iremonger --- drivers/net/ring/rte_eth_ring.c | 37 - 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/dri

[dpdk-dev] [PATCH v2 04/20] null: remove pci device driver

2015-10-05 Thread Bernard Iremonger
remove rte_null_pmd and pci_dev. initialise dev_flags, driver, drv_name, kdrv and numa_node fields in eth_dev data Signed-off-by: Bernard Iremonger --- drivers/net/null/rte_eth_null.c | 28 +++- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/drivers/net/n

[dpdk-dev] [PATCH v2 03/20] librte_ether: add function rte_eth_copy_dev_info()

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c | 1 + lib/librte_ether/rte_ethdev.h | 14 ++ lib/librte_ether/rte_ether_version.map | 7 +++ 3 files changed, 22 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte

[dpdk-dev] [PATCH v2 02/20] librte_ether: add fields from rte_pci_driver to rte_eth_dev_data

2015-10-05 Thread Bernard Iremonger
add dev_flags to rte_eth_dev_data, add macros for dev_flags. add kdrv to rte_eth_dev_data. add numa_node to rte_eth_dev_data. add drv_name to rte_eth_dev_data. use dev_type to distinguish between vdev's and pdev's. remove pci_dev branches. Signed-off-by: Bernard Iremonger --- lib/librte_ether/rt

[dpdk-dev] [PATCH v2 01/20] librte_eal: add RTE_KDRV_NONE for vdevs

2015-10-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- lib/librte_eal/common/include/rte_pci.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 83e3c28..334c12e 100644 --- a/lib/librte_eal/common/include/r

[dpdk-dev] [PATCH v2 00/20] remove pci driver from vdevs

2015-10-05 Thread Bernard Iremonger
There is a dummy pci driver in the vdev PMD's at present. This patch set removes the pci driver from the vdev PMD's. Changes have been made to librte_ether to handle vdevs and pdevs in the same way. The following vdev PMD's have had the pci driver removed: null ring bonding pcap af_packet xenvir

[dpdk-dev] [PATCH v2] devargs: add blacklisting by linux interface name

2015-10-05 Thread Chas Williams
If a system is using deterministic interface names, it may be easier in some cases to use the interface name to blacklist an interface. Signed-off-by: Chas Williams <3chas3 at gmail.com> --- app/test/test_devargs.c | 2 ++ lib/librte_eal/common/eal_common_devargs.c | 9

[dpdk-dev] [RFC PATCH v1] rte: LCore heartbeat example

2015-10-05 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Tuesday, September 15, 2015 2:11 PM > To: Horton, Remy > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH v1] rte: LCore heartbeat example > > Hi, > > 2015-09-15 13:16, Remy Hort

[dpdk-dev] testpmd (v2.1.0) bug: no support for flex-bytes-offset :-(

2015-10-05 Thread Navneet Rao
Can you please fix this when you get a chance? (and/or if somebody has a patch - can you please forward) Thanks -Navneet

[dpdk-dev] [PATCH 0/3] Support for Netronome´s NFP-6xxx card

2015-10-05 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Alejandro.Lucero > Sent: Friday, October 2, 2015 12:26 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 0/3] Support for Netronome?s NFP-6xxx card > > From: "Alejandro.Lucero" > > Alejandro.Lucero (3): >

[dpdk-dev] [PATCH v3 4/8] mk: Add rule for installing modules

2015-10-05 Thread Panu Matilainen
On 10/02/2015 07:26 PM, Arevalo, Mario Alfredo C wrote: > Hi, Panu, perfect thank you for your feedback, I going to change that > path by /lib/modules/$(uname -r)/extra/ in my patch. Hi, That's not quite what I suggested: > The default install path for the kernel modules should be somewhe

[dpdk-dev] Regarding MMIO

2015-10-05 Thread Venkateswara Rao Dokku
Thanks for the response Stephen. Are you referring to Virt-IO 0.9 in specific here in the response or for any Virt-IO versions in general? On Thu, Oct 1, 2015 at 8:12 PM, Stephen Hemminger < stephen at networkplumber.org> wrote: > On Thu, 1 Oct 2015 09:51:42 +0530 > Venkateswara Rao Dokku wrote

[dpdk-dev] [PATCH] eal: fix C++ build (struct member: virtual)

2015-10-05 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Christoph Gysin > Sent: Tuesday, September 29, 2015 7:53 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] eal: fix C++ build (struct member: virtual) > > 'virtual' is a keyword and can't be used if the c

[dpdk-dev] [PATCH] ip_pipeline: modify action handler in passthrough pipeline

2015-10-05 Thread Dumitrescu, Cristian
> -Original Message- > From: Singh, Jasvinder > Sent: Saturday, October 3, 2015 12:20 PM > To: dev at dpdk.org > Cc: Dumitrescu, Cristian > Subject: [PATCH] ip_pipeline: modify action handler in passthrough pipeline > > > Signed-off-by: Jasvinder Singh > --- Acked-by: Cristian Dumitre

[dpdk-dev] [PATCH v5 3/4] ethdev: redesign link speed config API

2015-10-05 Thread Neil Horman
On Sun, Oct 04, 2015 at 11:12:46PM +0200, Marc Sune wrote: > This patch redesigns the API to set the link speed/s configure > for an ethernet port. Specifically: > > - it allows to define a set of advertised speeds for > auto-negociation. > - it allows to disable link auto-negociation (single fi