[dpdk-dev] [PATCH 2/2] ethtool: add new library to provide ethtool-alike APIs

2015-05-29 Thread Liang-Min Larry Wang
adding a new library based upon ethdev APIs to provide API's that bear the same functionality as ethtool_ops (linux/ethtool.h) and net_device_ops (linux/netdevice.h). Signed-off-by: Liang-Min Larry Wang --- MAINTAINERS| 4 + config/common_linuxapp

[dpdk-dev] [PATCH 1/2] ethdev: add api to set default mac address

2015-05-29 Thread Liang-Min Larry Wang
add a new api: rte_eth_dev_default_mac_addr_set to support changing default mac address of a NIC Signed-off-by: Liang-Min Larry Wang --- lib/librte_ether/rte_ethdev.c | 18 ++ lib/librte_ether/rte_ethdev.h | 14 ++

[dpdk-dev] [PATCH 0/2] User-space Ethtool

2015-05-29 Thread Liang-Min Larry Wang
This implementation is designed to provide a familar interface for applications that rely on kernel-space driver to support ethtool_op and net_device_op for device management. The initial implementation focuses on ops that can be implemented through existing netdev APIs. More ops will be

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

2015-05-29 Thread Thomas Monjalon
2015-05-27 11:15, Marc Sune: > On 27/05/15 06:02, Thomas Monjalon wrote: > > Why not starting with lower values? Some new drivers may be interested > > by lower speed. > > Ok, but which values? 1Mbps FD/HD? Even lower than that? > > If you have some NIC(s) in mind with lower values, please point

[dpdk-dev] [PATCH] i40e:fix an issue in i40e_dev_info_get

2015-05-29 Thread Thomas Monjalon
> > To get device VMDQ info when only i40e VMDQ feature is enabled. > > > > Signed-off-by: Jijiang Liu > Acked-by: Helin Zhang Applied, thanks

[dpdk-dev] [PATCH v2] Mem: Fixes small memory leak due to missing free.

2015-05-29 Thread Thomas Monjalon
2015-05-19 17:04, Erik Ziegenbalg: > From: eziegenb > > A function in cmdline.c has a return that does not free buf properly. > > Signed-off-by: Erik Ziegenbalg You forgot to add a changelog and the previous acked-by: Acked-by: Stephen Hemminger Acked-by: John McNamara > - if (ret < 0)

[dpdk-dev] [PATCH 0/2] Add missing includes to headers

2015-05-29 Thread Thomas Monjalon
2015-05-25 13:23, Bruce Richardson: > The convention in DPDK is that each header file should include > any other headers on which it depends. This patch set adds in > some missing header dependencies. > > Bruce Richardson (2): > eal: add missing include to rte_pci.h > kni: add missing

[dpdk-dev] [PATCH 1/2] ethdev: add api to set default mac address

2015-05-29 Thread Wang, Liang-min
>On Fri, 29 May 2015 09:15:08 -0400 >Liang-Min Larry Wang wrote: > >> } > > >> int >> +rte_eth_dev_default_mac_addr_set(uint8_t port_id, struct ether_addr >> +*addr) { >> +struct rte_eth_dev *dev; >> +const int index = 0; >> +const uint32_t pool = 0; >> + >> +if

[dpdk-dev] [PATCH 2/2] ethtool: add new library to provide ethtool-alike APIs

2015-05-29 Thread Wang, Liang-min
>On Fri, 29 May 2015 09:15:09 -0400 >Liang-Min Larry Wang wrote: > >> +drvinfo->n_stats = sizeof(struct rte_eth_stats) / sizeof(uint64_t); > >+drvinfo->testinfo_len = 0; > > >Providing a hook to access more functionality is good and compatiablity with >old API's is helpful. Too bad

[dpdk-dev] [PATCH v2] app/testpmd: compute checksum in icmpecho replies

2015-05-29 Thread Thomas Monjalon
2015-05-25 13:40, Olivier MATZ: > On 05/22/2015 07:03 PM, Adrien Mazarguil wrote: > > ICMP echo replies with invalid checksums may be dropped by network nodes or > > ignored by the ping utility. > > > > Signed-off-by: Adrien Mazarguil > > Acked-by: Ivan Boule > > Acked-by: Olivier Matz

[dpdk-dev] [PATCH 1/2] app/testpmd: use correct hardware address in ARP replies

2015-05-29 Thread Thomas Monjalon
2015-05-22 13:07, Adrien Mazarguil: > In the icmpecho forwarding mode, ARP replies from testpmd contain > invalid zero-filled MAC addresses. This is broken since the commit below. > > Fixes: 31db4d38de72 ("net: change arp header struct declaration") > > Signed-off-by: Adrien Mazarguil >

[dpdk-dev] Free up completed TX buffers

2015-05-29 Thread Zoltan Kiss
Hi, I've came across an another problem while sorting out the one fixed by my patch "ixgbe: fix checking for tx_free_thresh". Even when the threshold check is correct it can happen that the application run out of free buffers, and the only solution would be to get back the ones from the TX

[dpdk-dev] [PATCHv3] mempool: fix pages computation to determine number of objects

2015-05-29 Thread Thomas Monjalon
2015-05-27 09:40, Konstantin Ananyev: > v3: > - Fixed typo in the commit message. > > v2: > - As suggested in comments use slightly different approach for the fix. > > In rte_mempool_obj_iter(), when element boundary coincides with page boundary, > even if a single page is required per object, a

[dpdk-dev] [PATCH 1/2] mempool: fix returned value on 64 bit after counting objects

2015-05-29 Thread Thomas Monjalon
2015-05-27 00:43, Ananyev, Konstantin: > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Adrien Mazarguil > > rte_mempool_xmem_usage()'s return type is ssize_t which has the same > > architecture-dependent width as size_t but is signed. > > > > On 64-bit architectures, returning a

[dpdk-dev] [PATCH 11/11] ip_pipeline: added new implementation of flow classification pipeline

2015-05-29 Thread Maciej Gajdzica
Flow classification pipeline implementation is split to two files. pipeline_flow_classification.c file handles front-end functions (cli commands parsing) pipeline_flow_classification_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Maciej Gajdzica ---

[dpdk-dev] [PATCH 10/11] ip_pipeline: added new implementation of routing pipeline

2015-05-29 Thread Maciej Gajdzica
Routing pipeline implementation is split to two files. pipeline_routing.c file handles front-end functions (cli commands parsing) pipeline_routing_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile

[dpdk-dev] [PATCH 09/11] ip_pipeline: added new implementation of firewall pipeline

2015-05-29 Thread Maciej Gajdzica
Firewall pipeline implementation is split to two files. pipeline_firewall.c file handles front-end functions (cli commands parsing) pipeline_firewall_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Daniel Mrzyglod --- examples/ip_pipeline/Makefile

[dpdk-dev] [PATCH 08/11] ip_pipeline: added new implementation of passthrough pipeline

2015-05-29 Thread Maciej Gajdzica
Passthrough pipeline implementation is split to two files. pipeline_passthrough.c file handles front-end functions (cli commands parsing) pipeline_passthrough_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile

[dpdk-dev] [PATCH 07/11] ip_pipeline: moved config files to separate folder

2015-05-29 Thread Maciej Gajdzica
Created new folder for config(.cfg) and script(.sh) files. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/config/ip_pipeline.cfg |9 + examples/ip_pipeline/config/ip_pipeline.sh |1 + examples/ip_pipeline/ip_pipeline.cfg| 56 ---

[dpdk-dev] [PATCH 06/11] ip_pipeline: added application thread

2015-05-29 Thread Maciej Gajdzica
Application thread runs pipelines on assigned cores. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/main.c |6 +++ examples/ip_pipeline/thread.c | 105 + 3 files changed, 112 insertions(+) create

[dpdk-dev] [PATCH 05/11] ip_pipeline: added master pipeline

2015-05-29 Thread Maciej Gajdzica
Master pipeline is responsible for command line handling and communicationg with all other pipelines via message queues. Removed cmdline.c file, as its functionality will be split over multiple pipeline files. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile

[dpdk-dev] [PATCH 04/11] ip_pipeline: moved pipelines to separate folder

2015-05-29 Thread Maciej Gajdzica
Moved pipelines to separate folder, removed not needed pipelines and modified Makefile to match that change. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |9 +- examples/ip_pipeline/pipeline/pipeline_firewall.c | 313 +

[dpdk-dev] [PATCH 03/11] ip_pipeline: modified init to match new params struct

2015-05-29 Thread Maciej Gajdzica
After changes in config parser, app params struct is changed and requires modifications in initialization procedures. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |2 +- examples/ip_pipeline/init.c | 1498 +

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

2015-05-29 Thread Maciej Gajdzica
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 | 617 +++ examples/ip_pipeline/main.c |2 + 3 files changed, 620

[dpdk-dev] [PATCH 01/11] ip_pipeline: add parsing for config files with new syntax

2015-05-29 Thread Maciej Gajdzica
New syntax of config files is needed for ip_pipeline example enhancements. Some old files are temporarily disabled in the Makefile. It is part of a bigger change. Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile | 27 +- examples/ip_pipeline/app.h | 586

[dpdk-dev] [PATCH 00/11] ip_pipeline: ip_pipeline application enhancements

2015-05-29 Thread Maciej Gajdzica
This patchset enhances functionality of ip_pipeline application. New config file syntax is introduced, so parser is changed. Changed structure of the application. Now every global variable is stored in app_struct in app.h. Syntax of pipeline cli commands was changed. Implementation of cli commands

[dpdk-dev] [PATCH] rte_reorder: Allow sequence numbers > 0 as starting point

2015-05-29 Thread Gonzalez Monroy, Sergio
On 20/05/2015 12:02, Simon Kagstrom wrote: > We use sequence numbers from a generator which has potentially started > long before the receiver. Therefore, the first number will typically > be > 0. The rte_reorder code will not work in this case, since the > packet is seen as outside of the buffer.

[dpdk-dev] [PATCH v9 12/12] abi: fix v2.1 abi broken issue

2015-05-29 Thread Vincent JARDIN
On 29/05/2015 10:45, Cunming Liang wrote: > RTE_EAL_RX_INTR will be removed from v2.2. It's only used to avoid > ABI(unannounced) broken in v2.1. > The usrs should make sure understand the impact before turning on the feature. > There are two abi changes required in this interrupt patch set. >

[dpdk-dev] [PATCH 3/3] librte_cfgfile: rework

2015-05-29 Thread Maciej Gajdzica
From: Pawel Wodkowski This patch add following features: 1. Make entry variable length - remove 64 byte limit. 2. Add line continue character '\' to make multiline values possible. This patch also fixes following issues: 1. BUG: section were allocated as a block

[dpdk-dev] [PATCH 2/3] librte_compat: fix macro deffinition

2015-05-29 Thread Maciej Gajdzica
From: Pawel Wodkowski Signed-off-by: Pawel Wodkowski --- lib/librte_compat/rte_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h index 3a0fd2d..2a89b36 100644 ---

[dpdk-dev] [PATCH 1/3] librte_cfgfile: fix code formating in header file

2015-05-29 Thread Maciej Gajdzica
From: Pawel Wodkowski Signed-off-by: Pawel Wodkowski --- lib/librte_cfgfile/rte_cfgfile.h | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/lib/librte_cfgfile/rte_cfgfile.h b/lib/librte_cfgfile/rte_cfgfile.h index

[dpdk-dev] [PATCH 0/3] librte_cfgfile rework and extension

2015-05-29 Thread Maciej Gajdzica
From: Pawel Wodkowski This patchset provide extension to librte_cfgfile to overcome limit of 64 characters for entry value and add line continue feature. Pawel Wodkowski (3): librte_cfgfile: fix code formating in header file librte_compat: fix macro deffinition

[dpdk-dev] [PATCH v8 01/11] eal/linux: add interrupt vectors support in intr_handle

2015-05-29 Thread Liang, Cunming
Hi Neil, On 5/22/2015 1:58 AM, Neil Horman wrote: > On Thu, May 21, 2015 at 10:43:00AM -0700, Stephen Hemminger wrote: >> On Thu, 21 May 2015 06:32:02 -0400 >> Neil Horman wrote: >> >>> On Thu, May 21, 2015 at 04:55:53PM +0800, Cunming Liang wrote: The patch adds interrupt vectors support

[dpdk-dev] [PATCH v9 12/12] abi: fix v2.1 abi broken issue

2015-05-29 Thread Cunming Liang
RTE_EAL_RX_INTR will be removed from v2.2. It's only used to avoid ABI(unannounced) broken in v2.1. The usrs should make sure understand the impact before turning on the feature. There are two abi changes required in this interrupt patch set. They're 1) struct rte_intr_handle; 2) struct

[dpdk-dev] [PATCH v9 11/12] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch

2015-05-29 Thread Cunming Liang
Demonstrate how to handle per rx queue interrupt in a NAPI-like implementation in usersapce. PDK polling thread mainly works in polling mode and switch to interrupt mode only if there is no any packet received in recent polls. Usersapce interrupt notification generally takes a lot more cycles than

[dpdk-dev] [PATCH v9 10/12] igb: enable rx queue interrupts for PF

2015-05-29 Thread Cunming Liang
The patch does below for igb PF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v9 changes - move queue-vec mapping init from

[dpdk-dev] [PATCH v9 09/12] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-29 Thread Cunming Liang
The patch does below things for ixgbe PF and VF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Yong Liu Signed-off-by: Cunming Liang --- v9 changes -

[dpdk-dev] [PATCH v9 08/12] ethdev: add rx intr enable, disable and ctl functions

2015-05-29 Thread Cunming Liang
The patch adds two dev_ops functions to enable and disable rx queue interrupts. In addtion, it adds rte_eth_dev_rx_intr_ctl/rx_intr_q to support per port or per queue rx intr event set. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v9 changes - remove unnecessary check after

[dpdk-dev] [PATCH v9 07/12] eal/bsd: dummy for new intr definition

2015-05-29 Thread Cunming Liang
To make bsd compiling happy with new intr changes. Signed-off-by: Cunming Liang --- v8 changes - add stub for new function v7 changes - remove stub 'linux only' function from source file lib/librte_eal/bsdapp/eal/eal_interrupts.c | 19 ++

[dpdk-dev] [PATCH v9 06/12] eal/linux: standalone intr event fd create support

2015-05-29 Thread Cunming Liang
The patch exposes intr event fd create and release for PMD. The device driver can assign the number of event associated with interrupt vector. It also provides misc funtions to check 1) allows other slowpath intr(e.g. lsc); 2) intr event on fastpath is enabled or not. Signed-off-by: Cunming

[dpdk-dev] [PATCH v9 05/12] eal/linux: add interrupt vectors handling on VFIO

2015-05-29 Thread Cunming Liang
This patch does below: - Create VFIO eventfds for each interrupt vector (move to next) - Assign per interrupt vector's eventfd to VFIO by ioctl Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v8 changes - move eventfd creation out of the setup_interrupts to a standalone function

[dpdk-dev] [PATCH v9 03/12] eal/linux: add API to set rx interrupt event monitor

2015-05-29 Thread Cunming Liang
The patch adds 'rte_intr_rx_ctl' to add or delete interrupt vector events monitor on specified epoll instance. Signed-off-by: Cunming Liang --- v8 changes - fix EWOULDBLOCK and EINTR processing - add event status check v7 changes - rename rte_intr_rx_set to rte_intr_rx_ctl. -

[dpdk-dev] [PATCH v9 02/12] eal/linux: add rte_epoll_wait/ctl support

2015-05-29 Thread Cunming Liang
The patch adds 'rte_epoll_wait' and 'rte_epoll_ctl' for async event wakeup. It defines 'struct rte_epoll_event' as the event param. The 'op' uses the same enum as epoll_wait/ctl does. The epoll event support to carry a raw user data and to register a callback which is exectuted during wakeup.

[dpdk-dev] [PATCH v9 01/12] eal/linux: add interrupt vectors support in intr_handle

2015-05-29 Thread Cunming Liang
The patch adds interrupt vectors support in rte_intr_handle. 'vec_en' is set when interrupt vectors are detected and associated event fds are set. Those event fds are stored in efds[]. 'intr_vec' is reserved for device driver to initialize the vector mapping table. When the event fds add to a

[dpdk-dev] [PATCH v9 00/12] Interrupt mode PMD

2015-05-29 Thread Cunming Liang
v9 changes - code rework to fix open comment - bug fix for igb lsc when both lsc and rxq are enabled in vfio-msix - new patch to turn off the feature by defalut so as to avoid v2.1 abi broken v8 changes - remove condition check for only vfio-msix - add multiplex intr support when only one

[dpdk-dev] [PATCH 6/6] fm10k: Add default mac/vlan filter to SM

2015-05-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Since the communication between PF/Switch Manager, VF/PF is asynchronous through mailbox, it's hard to determine when Switch Manager/PF host will send the default vlan to PF/VF. So, it's necessary to set default vlan until the device is started.

[dpdk-dev] [PATCH 5/6] fm10k: Do sanity check on mac address

2015-05-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" After acquiring MAC address from HW, it's necessary to validate MAC address before use. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k_ethdev.c | 24 ++-- 1 files changed, 10 insertions(+), 14 deletions(-)

[dpdk-dev] [PATCH 3/6] fm10k: Fix data integrity issue with multi-segment frame

2015-05-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" In TX side, bit FM10K_TXD_FLAG_LAST in TX descriptor only is set in the last descriptor for multi-segment packets. But current implementation didn't set all the fields of TX descriptor, which will cause descriptors processed now to re-use fields

[dpdk-dev] [PATCH 2/6] fm10k: Fix jumbo frame issue

2015-05-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" fm10k can't receive frame greater than 1536 and Scatter RX function can't work correctly. The root cause is SRRCTL.FM10K_SRRCTL_BUFFER_CHAINING_EN bit is not enabled. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k_ethdev.c | 12

[dpdk-dev] [PATCH 1/6] fm10k: Fix improper RX buffer size assignment

2015-05-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" As RX buffer is aligned to 512B within mbuf, some bytes are reserved for this purpose, and the worst case could be 511B. But SRR reg assumes all buffers have the same size. In order to fill the gap, we'll have to consider the worsst case and

[dpdk-dev] [PATCH 0/6] fm10k: A series of bug fixes

2015-05-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" This patch set include a few bug fixes and enhancements on fm10k driver. Chen Jing D(Mark) (6): fm10k: Fix improper RX buffer size assignment fm10k: Fix jumbo frame issue fm10k: Fix data integrity issue with multi-segment frame fm10k: Fix

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

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

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

2015-05-29 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 |8 3 files

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

2015-05-29 Thread Jijiang Liu
If the 'tso-segsz' is not 0, which means TSO offload is enabled. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 17 + examples/tep_termination/vxlan.c |8 examples/tep_termination/vxlan.h |1 +

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

2015-05-29 Thread Jijiang Liu
For VXLAN 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 | 17 examples/tep_termination/vxlan.c | 80 ++ 2 files changed, 97 insertions(+), 0

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

2015-05-29 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| 20 ++ examples/tep_termination/vxlan_setup.c | 62

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

2015-05-29 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| 18 +- examples/tep_termination/vxlan_setup.c | 13 - 2 files changed, 29 insertions(+), 2

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

2015-05-29 Thread Jijiang Liu
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 v2 03/10] examples/tep_termination:add the pluggable structures for VXLAN packet processing

2015-05-29 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 v2 02/10] examples/tep_termination:define the basic VXLAN port information

2015-05-29 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 v2 01/10] examples/tep_termination:initialize the VXLAN sample

2015-05-29 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 v2 00/10] Add a VXLAN sample

2015-05-29 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] [PATCH v2 4/4] null: fix compile on Fedora 22 (GCC 5.1)

2015-05-29 Thread Bruce Richardson
On Fedora 22, with GCC 5.1, errors are reported due to array accesses being potentially out of bounds. This commit fixes this by adding in an extra bounds check to the loop counters, or, in the case of stats reset, by blindly zeroing the whole array, rather than just the part that is in use.

[dpdk-dev] [PATCH v2 3/4] i40e: fix compile on Fedora 22 (GCC 5.1)

2015-05-29 Thread Bruce Richardson
On Fedora 22, with GCC 5.1, errors are reported due to array accesses being potentially out of bounds. This commit fixes this by adding in an extra bounds check to the loop counter. Signed-off-by: Bruce Richardson --- drivers/net/i40e/i40e_fdir.c | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH v2 2/4] ip_frag: fix compile on Fedora 22 (GCC 5.1)

2015-05-29 Thread Bruce Richardson
On Fedora 22, with GCC 5.1, errors are reported due to array accesses being potentially out of bounds. This commit fixes this by adding in an extra bounds check to the loop counter. Signed-off-by: Bruce Richardson --- lib/librte_ip_frag/ip_frag_common.h | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH v2 1/4] eal: fix compile on Fedora 22 (GCC 5.1)

2015-05-29 Thread Bruce Richardson
On Fedora 22, with GCC 5.1, errors are reported due to array accesses being potentially out of bounds. This commit fixes this by ensuring the bounds check in the loop takes account of the array size. Signed-off-by: Bruce Richardson --- lib/librte_eal/linuxapp/eal/eal_memory.c | 4 +++- 1 file

[dpdk-dev] [PATCH v2 0/4] fix compilation on Fedora 22

2015-05-29 Thread Bruce Richardson
V2 Changes: * use RTE_MIN instead of additional comparison checks in some loops, as suggested by Neil. * For stats reset in null PMD, just use the size of the array [which is 1] in place of the used queue counts. GCC version 5.1 included with Fedora 22 is running stricter array bounds

[dpdk-dev] [PATCH 2/2] ethtool: add new library to provide ethtool-alike APIs

2015-05-29 Thread Liang-Min Larry Wang
adding a new library based upon ethdev APIs to provide API's that bear the same functionality as ethtool_ops (linux/ethtool.h) and net_device_ops (linux/netdevice.h). Signed-off-by: Liang-Min Larry Wang --- MAINTAINERS| 4 + config/common_linuxapp

[dpdk-dev] [PATCH 1/2] ethdev: add api to set default mac address

2015-05-29 Thread Liang-Min Larry Wang
add a new api: rte_eth_dev_default_mac_addr_set to support changing default mac address of a NIC Signed-off-by: Liang-Min Larry Wang --- lib/librte_ether/rte_ethdev.c | 16 lib/librte_ether/rte_ethdev.h | 14 ++

[dpdk-dev] [PATCH 0/2] User-space Ethtool

2015-05-29 Thread Liang-Min Larry Wang
This implementation is designed to provide a familar interface for applications that rely on kernel-space driver to support ethtool_op and net_device_op for device management. The initial implementation focuses on ops that can be implemented through existing netdev APIs. More ops will be

[dpdk-dev] [PATCH] mem: allow mem size to be specified when no hugetblfs

2015-05-29 Thread Paul Atkins
The config option to turn off huge table support does not work with the existing -m option to specify the amount of memory to use. Add a new option --no-huge-mem-size that takes a paramater to use as the heap size instead of the value specified by MEMSIZE_IF_NO_HUGE_PAGE. Signed-off-by: Paul

[dpdk-dev] default unicast mac address - was: add multicast address filtering

2015-05-29 Thread Thomas Monjalon
Hi Stephen, Looking at mac address management, you and Changchun added an entry in driver ops to be able to change the default mac address with virtio: http://dpdk.org/browse/dpdk/commit/?id=5186fb1f37fe986 Other ops functions (mac_addr_add/remove) manage the secondary unicast mac

[dpdk-dev] [RFC PATCH V3] drivers/net/ring: changes to support PCI Port Hotplug

2015-05-29 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the rte_dev_uninit_t() function for the ring pmd. Changes in V3: Rebase to use drivers/net/ring directory Handle no parameters case Changes in V2: Fix crash in the rte_pmd_ring_devuninit() function. Signed-off-by: Bernard ---

[dpdk-dev] mempool destroy

2015-05-29 Thread Dax Rawal
Hi, How does one return (or destroy) ret_mempool that was created by rte_mempool_create() ? Thanks.

[dpdk-dev] Packet Cloning

2015-05-29 Thread Padam Jeet Singh
Thanks Marc, Matt, Kyle, and Stephen for your inputs! I have a possibly good solution of splitting the mbuf into parts to correctly mirror to multiple interfaces, else a fallback of copying the full payload into a new mbuf. Though the library doesn?t offer a standard method to copy, I can

[dpdk-dev] [PATCH 4/4] null: fix compile on Fedora 22 (GCC 5.1)

2015-05-29 Thread Bruce Richardson
On Fedora 22, with GCC 5.1, errors are reported due to array accesses being potentially out of bounds. This commit fixes this by adding in an extra bounds check to the loop counter. Signed-off-by: Bruce Richardson --- drivers/net/null/rte_eth_null.c | 12 1 file changed, 8

[dpdk-dev] [PATCH 3/4] i40e: fix compile on Fedora 22 (GCC 5.1)

2015-05-29 Thread Bruce Richardson
On Fedora 22, with GCC 5.1, errors are reported due to array accesses being potentially out of bounds. This commit fixes this by adding in an extra bounds check to the loop counter. Signed-off-by: Bruce Richardson --- drivers/net/i40e/i40e_fdir.c | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH 2/4] ip_frag: fix compile on Fedora 22 (GCC 5.1)

2015-05-29 Thread Bruce Richardson
On Fedora 22, with GCC 5.1, errors are reported due to array accesses being potentially out of bounds. This commit fixes this by adding in an extra bounds check to the loop counter. Signed-off-by: Bruce Richardson --- lib/librte_ip_frag/ip_frag_common.h | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH 1/4] eal: fix compile on Fedora 22 (GCC 5.1)

2015-05-29 Thread Bruce Richardson
On Fedora 22, with GCC 5.1, errors are reported due to array accesses being potentially out of bounds. This commit fixes this by adding in an extra bounds check to the loop counter. Signed-off-by: Bruce Richardson --- lib/librte_eal/linuxapp/eal/eal_memory.c | 3 ++- 1 file changed, 2

[dpdk-dev] [PATCH 0/4] fix compilation on Fedora 22

2015-05-29 Thread Bruce Richardson
GCC version 5.1 included with Fedora 22 is running stricter array bounds checks which are throwing up errors in a number of components in the DPDK code. This patchset fixes these errors to allow compilation with GCC on Fedora 22. Example error: == Build lib/librte_eal/linuxapp/eal CC

[dpdk-dev] [PATCH v2 0/4] fix compilation on Fedora 22

2015-05-29 Thread Neil Horman
On Fri, May 29, 2015 at 03:34:12PM +0100, Bruce Richardson wrote: > V2 Changes: > * use RTE_MIN instead of additional comparison checks > in some loops, as suggested by Neil. > * For stats reset in null PMD, just use the size of the > array [which is 1] in place of the used queue counts. > >

[dpdk-dev] [PATCH] log: Properly reset log_history_size in rte_log_dump_history()

2015-05-29 Thread Jan Blunck
In rte_log_dump_history() the log_history list is reinitialized without resetting the log_history_size. In the next call to rte_log_add_in_history() the log_history_size > RTE_LOG_HISTORY and the code unconditionally tries to remove the first entry: Program received signal SIGSEGV, Segmentation

[dpdk-dev] [PATCH 0/5] multicast address filtering

2015-05-29 Thread Ivan Boule
On 05/28/2015 06:21 PM, Stephen Hemminger wrote: > On Thu, 28 May 2015 17:05:18 +0200 > Ivan Boule wrote: > >> Introduce PMD API to set the list of multicast MAC addresses filtered >> by a port. >> Implemented in the following PMDs: igb, igbvf, em, ixgbe, and ixgbevf. >> Implementation for

[dpdk-dev] [PATCH v2 1/5] ethdev: add multicast address filtering

2015-05-29 Thread Ivan Boule
With the current PMD API, the receipt of multicast packets on a given port can only be enabled by invoking the "rte_eth_allmulticast_enable" function. This method may not work on Virtual Functions in SR-IOV architectures when the host PF driver does not allow such operation on VFs. In such cases,

[dpdk-dev] Install DPDK on FreeBSD ports is crashing

2015-05-29 Thread Victor Detoni
Hi, You are right. I increased the memory and works fine. Thanks a lot thanks Victor On Mon, May 25, 2015 at 10:45 AM, Bruce Richardson < bruce.richardson at intel.com> wrote: > On Mon, May 25, 2015 at 09:54:14AM -0300, Victor Detoni wrote: > > Hi Bruce, > > > > Thanks for your answer. The

[dpdk-dev] [PATCH 1/4] eal: fix compile on Fedora 22 (GCC 5.1)

2015-05-29 Thread Neil Horman
On Fri, May 29, 2015 at 01:53:44PM +0100, Bruce Richardson wrote: > On Fedora 22, with GCC 5.1, errors are reported due to array accesses > being potentially out of bounds. This commit fixes this by adding in an > extra bounds check to the loop counter. > > Signed-off-by: Bruce Richardson > ---

[dpdk-dev] [PATCH 1/5] ethdev: add multicast address filtering

2015-05-29 Thread Ivan Boule
On 05/28/2015 06:22 PM, Stephen Hemminger wrote: > On Thu, 28 May 2015 17:05:19 +0200 > Ivan Boule wrote: > >> +if (port_id >= nb_ports) { >> +PMD_DEBUG_TRACE("Invalid port_id=%d\n", port_id); >> +return -ENODEV; >> +} >> + > > Use rte_eth_dev_is_valid_port()

[dpdk-dev] [PATCH 2/2] ethtool: add new library to provide ethtool-alike APIs

2015-05-29 Thread Liang-Min Larry Wang
adding a new library based upon ethdev APIs to provide API's that bear the same functionality as ethtool_ops (linux/ethtool.h) and net_device_ops (linux/netdevice.h). Signed-off-by: Liang-Min Larry Wang --- MAINTAINERS| 4 + config/common_linuxapp

[dpdk-dev] [PATCH 1/2] ethdev: add api to set default mac address

2015-05-29 Thread Liang-Min Larry Wang
add a new api: rte_eth_dev_default_mac_addr_set to support changing default mac address of a NIC Signed-off-by: Liang-Min Larry Wang --- lib/librte_ether/rte_ethdev.c | 26 ++ lib/librte_ether/rte_ethdev.h | 14 ++

[dpdk-dev] [PATCH 0/2] User-space Ethtool

2015-05-29 Thread Liang-Min Larry Wang
This implementation is designed to provide a familar interface for applications that rely on kernel-space driver to support ethtool_op and net_device_op for device management. The initial implementation focuses on ops that can be implemented through existing netdev APIs. More ops will be

[dpdk-dev] [PATCH v9 09/12] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-29 Thread Stephen Hemminger
On Fri, 29 May 2015 16:45:22 +0800 Cunming Liang wrote: > + if (intr_handle->intr_vec == NULL) { > + PMD_INIT_LOG(ERR, "Failed to allocate %d rx_queues" > + "intr_vec\n", dev->data->nb_rx_queues); > + return -1;

[dpdk-dev] [PATCH] pmd: change initialization to indicate pci drivers

2015-05-29 Thread Stephen Hemminger
Upcoming drivers will need to be able to support other bus types. This is a transparent change to how struct eth_driver is initialized. It has not function or ABI layout impact, but makes adding a later bus type (Xen, Hyper-V, ...) much easier. Signed-off-by: Stpehen Hemminger ---

[dpdk-dev] [PATCH v9 12/12] abi: fix v2.1 abi broken issue

2015-05-29 Thread Stephen Hemminger
On Fri, 29 May 2015 16:45:25 +0800 Cunming Liang wrote: > +#ifdef RTE_EAL_RX_INTR > +extern int > rte_eth_dev_rx_intr_ctl(uint8_t port_id, int epfd, int op, void *data); > +#else > +static inline int > +rte_eth_dev_rx_intr_ctl(uint8_t port_id, int epfd, int op, void *data) > +{ > +

[dpdk-dev] [PATCH 2/2] ethtool: add new library to provide ethtool-alike APIs

2015-05-29 Thread Stephen Hemminger
On Fri, 29 May 2015 09:15:09 -0400 Liang-Min Larry Wang wrote: > + drvinfo->n_stats = sizeof(struct rte_eth_stats) / sizeof(uint64_t); > + drvinfo->testinfo_len = 0; Providing a hook to access more functionality is good and compatiablity with old API's is helpful. Too bad ethtool is

[dpdk-dev] [PATCH 1/2] ethdev: add api to set default mac address

2015-05-29 Thread Stephen Hemminger
On Fri, 29 May 2015 09:15:08 -0400 Liang-Min Larry Wang wrote: > } > > int > +rte_eth_dev_default_mac_addr_set(uint8_t port_id, struct ether_addr *addr) > +{ > + struct rte_eth_dev *dev; > + const int index = 0; > + const uint32_t pool = 0; > + > + if

[dpdk-dev] default unicast mac address - was: add multicast address filtering

2015-05-29 Thread Stephen Hemminger
On Fri, 29 May 2015 15:12:28 +0200 Thomas Monjalon wrote: > Hi Stephen, > > Looking at mac address management, you and Changchun added an entry in > driver ops to be able to change the default mac address with virtio: > http://dpdk.org/browse/dpdk/commit/?id=5186fb1f37fe986 > Other ops

[dpdk-dev] [PATCH 0/5] multicast address filtering

2015-05-29 Thread Stephen Hemminger
On Fri, 29 May 2015 11:33:54 +0200 Ivan Boule wrote: > On 05/28/2015 06:21 PM, Stephen Hemminger wrote: > > On Thu, 28 May 2015 17:05:18 +0200 > > Ivan Boule wrote: > > > >> Introduce PMD API to set the list of multicast MAC addresses filtered > >> by a port. > >> Implemented in the following

[dpdk-dev] Unable to bind Virtio_pci in DPDK1.7

2015-05-29 Thread Ouyang, Changchun
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Dey, Souvik > Sent: Friday, May 29, 2015 1:22 PM > To: dev at dpdk.org > Subject: [dpdk-dev] Unable to bind Virtio_pci in DPDK1.7 > > Hi All, > I am currently facing a weird issue where I am

[dpdk-dev] Unable to bind Virtio_pci in DPDK1.7

2015-05-29 Thread Dey, Souvik
Hi All, I am currently facing a weird issue where I am not able to bind the virtio_pci device to igb_uio in DPDK1.7 on QEMU/KVM. I can see there are two fold issues. 1.The pci_unbind.py script where the virt_path is removed from 1.6 to 1.7 version due to which the initial status

[dpdk-dev] [PATCH v3] pipeline: add statistics for librte_pipeline

2015-05-29 Thread Ramia, Kannan Babu
The confusion is due to whether you consider stats as a library feature or Debug feature. Mostly log levels are considered as debug features in the production system and controlled system wide flag not per library flags. While statistics could be considered as a library feature which could be

  1   2   >