[dpdk-dev] Having troubles binding an SR-IOV VF to uio_pci_generic on Amazon instance

2015-09-29 Thread Michael S. Tsirkin
On Tue, Sep 29, 2015 at 07:41:09PM +0300, Vlad Zolotarov wrote: > The security breach motivation u brought in "[RFC PATCH] uio: > uio_pci_generic: Add support for MSI interrupts" thread seems a bit weak > since one u let the userland access to the bar it may do any funny thing > using the DMA engin

[dpdk-dev] [PATCH 8/8] virtio: rxtx_func_get

2015-09-29 Thread Huawei Xie
Select simplified rx/tx when mergable isn't enabled and there is no offload flags specified. Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_ethdev.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/vi

[dpdk-dev] [PATCH 7/8] virtio: simple tx routine

2015-09-29 Thread Huawei Xie
bulk free of mbufs when clean used ring. shift operation of idx could be further saved if vq_free_cnt means free slots rather than free descriptors. Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_ethdev.h | 3 ++ drivers/net/virtio/virtio_rxtx.c| 9 drivers/net/virti

[dpdk-dev] [PATCH 6/8] virtio: virtio vec rx

2015-09-29 Thread Huawei Xie
With fixed avail ring, we don't need to get desc idx from avail ring. virtio driver only has to deal with desc ring. This patch uses vector instruction to accelerate processing desc ring. Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_ethdev.h | 2 + drivers/net/virtio/virtio_rxt

[dpdk-dev] [PATCH 5/8] virtio: fill RX avail ring with blank mbufs

2015-09-29 Thread Huawei Xie
fill avail ring with blank mbufs in virtio_dev_vring_start Signed-off-by: Huawei Xie --- drivers/net/virtio/Makefile | 2 +- drivers/net/virtio/virtio_rxtx.c| 14 +- drivers/net/virtio/virtio_rxtx.h| 3 ++ drivers/net/virtio/virtio_rxtx_simple.c | 84 +++

[dpdk-dev] [PATCH 4/8] virtio: rx/tx ring layout optimization

2015-09-29 Thread Huawei Xie
In DPDK based switching enviroment, mostly vhost runs on a dedicated core while virtio processing in guest VMs runs on different cores. Take RX for example, with generic implementation, for each guest buffer, a) virtio driver allocates a descriptor from free descriptor list b) modify the entry of a

[dpdk-dev] [PATCH 3/8] virtio: add software rx ring, fake_buf, simple_rxtx into virtqueue

2015-09-29 Thread Huawei Xie
Add software RX ring in virtqueue. Add fake_mbuf in virtqueue for wraparound processing. Use simple_rxtx to indicate whether simple rxtx is enabled Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_ethdev.c | 12 drivers/net/virtio/virtio_rxtx.c | 5 + drivers/net/virti

[dpdk-dev] [PATCH 2/8] virtio: add virtio_rxtx.h header file

2015-09-29 Thread Huawei Xie
Would move all rx/tx related code into this header file in future. Add RTE_VIRTIO_PMD_MAX_BURST. Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_ethdev.c | 1 + drivers/net/virtio/virtio_rxtx.c | 1 + drivers/net/virtio/virtio_rxtx.h | 34 ++ 3 files

[dpdk-dev] [PATCH 1/8] virtio: add configure for simple virtio rx/tx

2015-09-29 Thread Huawei Xie
Turned off by default. This is development feature. Will remove this macro when this optimization gets widely accepted. Signed-off-by: Huawei Xie --- config/common_linuxapp | 1 + 1 file changed, 1 insertion(+) diff --git a/config/common_linuxapp b/config/common_linuxapp index 0de43d5..b70c5d7

[dpdk-dev] [PATCH 0/8] virtio: virtio ring layout optimization and RX vector processing

2015-09-29 Thread Huawei Xie
Copied some message from patch 4. In DPDK based switching enviroment, mostly vhost runs on a dedicated core while virtio processing in guest VMs runs on different cores. Take RX for example, with generic implementation, for each guest buffer, a) virtio driver allocates a descriptor from free descri

[dpdk-dev] [PATCH v5 1/4] vhost: eventfd_link: refactoring EVENTFD_COPY handler

2015-09-29 Thread Thomas Monjalon
Hi Pavel, 2015-09-23 23:25, Pavel Boldin: > Ping. Are you requesting a review? I think you should set Huawei Xie in the recipient list. Other note: it is not easy to follow the evolution of your patches because there is no cover letter and the numbering (v5) is not incremented. These little det

[dpdk-dev] [PATCH] vhost: vhost injects interrupts to guest for each packet

2015-09-29 Thread Thomas Monjalon
2015-09-29 15:31, Xie, Huawei: > On 9/25/2015 4:00 AM, Thomas Monjalon wrote: > > Please reword the title (no need to re-send the patch), > > so that you describe what the patch do (batch interrupt). > > > > 2015-09-21 16:16, Huawei Xie: > >> In merge-able RX path, vhost injects interrupts to guest

[dpdk-dev] [PATCH] enic: Remove #ident at the beginning of the files

2015-09-29 Thread Thomas Monjalon
2015-09-22 10:45, Sujith Sankar: > This patch removes the #ident strings at the beginning of the source files. > > Signed-off-by: Sujith Sankar Applied, thanks

[dpdk-dev] [PATCH 14/14] fm10k: Add function to decide best TX func

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_set_tx_function to decide the best TX func in fm10k_dev_tx_init. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h|1 + drivers/net/fm10k/fm10k_ethdev.c | 38 -- 2 files changed, 37 insertio

[dpdk-dev] [PATCH 13/14] fm10k: introduce 2 funcs to reset TX queue and mbuf release

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add 2 funcs to reset TX queue and mbuf release when Vector TX applied. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k_rxtx_vec.c | 68 1 files changed, 68 insertions(+), 0 deletions(-) diff --git a/drivers/net/fm10

[dpdk-dev] [PATCH 12/14] fm10k: use func pointer to reset TX queue and mbuf release

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Vector TX use different way to manage TX queue, it's necessary to use different functions to reset TX queue and release mbuf in TX queue. So, introduce 2 function pointers to do such ops. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h|9 +++

[dpdk-dev] [PATCH 11/14] fm10k: add Vector TX function

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add Vector TX func fm10k_xmit_pkts_vec to transmit packets. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |5 + drivers/net/fm10k/fm10k_rxtx_vec.c | 150 2 files changed, 155 insertions(+), 0 deletion

[dpdk-dev] [PATCH 10/14] fm10k: add func to release mbuf in case Vector RX applied

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Since Vector RX use different variables to trace RX HW ring, it leads to need different func to release mbuf properly. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |1 + drivers/net/fm10k/fm10k_ethdev.c |6 ++ drivers/net/fm10k

[dpdk-dev] [PATCH 09/14] fm10k: add function to decide best RX function

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_set_rx_function to decide best RX func in fm10k_dev_rx_init Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h|1 + drivers/net/fm10k/fm10k_ethdev.c | 36 2 files changed, 33 insertions(+),

[dpdk-dev] [PATCH 08/14] fm10k: add Vector RX scatter function

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_recv_scattered_pkts_vec to receive chained packets with SSE instructions. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |2 + drivers/net/fm10k/fm10k_rxtx_vec.c | 88 2 files changed,

[dpdk-dev] [PATCH 07/14] fm10k: add func to do Vector RX condition check

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_rx_vec_condition_check to check if Vector RX func can be applied. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |1 + drivers/net/fm10k/fm10k_rxtx_vec.c | 31 +++ 2 files changed, 32 insertions

[dpdk-dev] [PATCH 06/14] fm10k: add Vector RX function

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_recv_raw_pkts_vec to parse raw packets, in which includes possible chained packets. Add func fm10k_recv_pkts_vec to receive single mbuf packet. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |1 + drivers/net/fm10k/fm10k_rxt

[dpdk-dev] [PATCH 05/14] fm10k: add 2 functions to parse pkt_type and offload flag

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add 2 functions, in which using SSE instructions to parse RX desc to get pkt_type and ol_flags in mbuf. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k_rxtx_vec.c | 127 1 files changed, 127 insertions(+), 0 deletions

[dpdk-dev] [PATCH 04/14] fm10k: add func to re-allocate mbuf for RX ring

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add function fm10k_rxq_rearm to re-allocate mbuf for used desc in RX HW ring. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |9 drivers/net/fm10k/fm10k_ethdev.c |3 + drivers/net/fm10k/fm10k_rxtx_vec.c | 90 ++

[dpdk-dev] [PATCH 03/14] fm10k: Add a new func to initialize all parameters

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add new function fm10k_params_init to initialize all fm10k related variables. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k_ethdev.c | 34 ++ 1 files changed, 22 insertions(+), 12 deletions(-) diff --git a/drivers/net/

[dpdk-dev] [PATCH 02/14] fm10k: add vPMD pre-condition check for each RX queue

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add condition check in rx_queue_setup func. If number of RX desc can't satisfy vPMD requirement, record it into a variable. Or call fm10k_rxq_vec_setup to initialize Vector RX. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h | 11 ---

[dpdk-dev] [PATCH 01/14] fm10k: add new vPMD file

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add new file fm10k_rxtx_vec.c and add it into compiling. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/Makefile |1 + drivers/net/fm10k/fm10k_rxtx_vec.c | 45 2 files changed, 46 insertions(+), 0 deletions(-)

[dpdk-dev] [PATCH 00/14] Vector Rx/Tx PMD implementation for fm10k

2015-09-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" This patch set includes Vector Rx/Tx functions to receive/transmit packets for fm10k devices. It also contains logic to do sanity check for proper RX/TX function selections. Chen Jing D(Mark) (14): fm10k: add new vPMD file fm10k: add vPMD pre-condition check for eac

[dpdk-dev] [PATCH 0/6] Xen DOM0 runtime support

2015-09-29 Thread Liu, Jijiang
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen Hemminger > Sent: Monday, September 28, 2015 5:45 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 0/6] Xen DOM0 runtime support > > It should be possible to build a single application or library t

[dpdk-dev] Having troubles binding an SR-IOV VF to uio_pci_generic on Amazon instance

2015-09-29 Thread Vlad Zolotarov
On 09/27/15 12:43, Michael S. Tsirkin wrote: > On Sun, Sep 27, 2015 at 10:05:11AM +0300, Vlad Zolotarov wrote: >> Hi, >> I was trying to use uio_pci_generic with Intel's 10G SR-IOV devices on >> Amazon EC2 instances with Enhanced Networking enabled. >> The idea is to create a DPDK environment tha

[dpdk-dev] [PATCHv4 3/9] null: extend number of virtual queues

2015-09-29 Thread Tetsuya Mukawa
On 2015/09/29 18:46, Kulasek, TomaszX wrote: >> -Original Message- >> From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] >> Sent: Tuesday, September 29, 2015 04:25 >> To: Kulasek, TomaszX; dev at dpdk.org >> Subject: Re: [dpdk-dev] [PATCHv4 3/9] null: extend number of virtual >> queues >> >

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Tetsuya Mukawa
On 2015/09/29 18:39, Kulasek, TomaszX wrote: > Hi Tetsuya, > >> Thanks for extending null pmd features. >> Is it possible to use rte_null_pmd here? >> Could you please check ring pmd? It may also uses rte_ring_pmd for link >> status callback. >> >> Tetsuya > My first attempt was to use ring pmd, an

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread Michael S. Tsirkin
On Tue, Sep 29, 2015 at 03:48:08PM +, shesha Sreenivasamurthy (shesha) wrote: > If huge pages are allocated for the guest and if the guest crashes there may > be > a chance that the new guest may not be able to get huge pages again as some > other guest or process on the host used it. But I a

[dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets

2015-09-29 Thread Zhe Tao
Every time we started to receive the packets, the start queue number should be the one that just received the packets, should not start from zero! Signed-off-by: Zhe Tao --- examples/dpdk_qat/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dpdk_qat/main.c b/ex

[dpdk-dev] [PATCH] ethdev: remove old flow director APIs

2015-09-29 Thread Thomas Monjalon
2015-09-21 08:05, Lu, Wenzhuo: > From: Wu, Jingjing > > Old flow director APIs have been replaced by rte_eth_dev_filter_ctrl since > > release 2.0. And no drivers in current code support these APIs. > > All the removed APIs are list below: > > - rte_eth_dev_fdir_add_perfect_filter; > > - rte_et

[dpdk-dev] [PATCH] Add error message when trying to use make option T= during build/clean

2015-09-29 Thread Francesco Montorsi
From: Francesco Montorsi --- mk/rte.sdkbuild.mk | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mk/rte.sdkbuild.mk b/mk/rte.sdkbuild.mk index 38ec7bd..013aa89 100644 --- a/mk/rte.sdkbuild.mk +++ b/mk/rte.sdkbuild.mk @@ -29,6 +29,12 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
Sure. Then, is there any real reason why the backing files should not be unlinked ? -- - Thanks char * (*shesha) (uint64_t cache, uint8_t F00D) { return 0xC0DE; } From: "Michael S. Tsirkin" mailto:m...@redhat.com>> Date: Tuesday, September 29, 2015 at 9:16 AM To: Cisco Employee mailto:shesha

[PATCH 2/4] null: extend number of virtual queues

2015-09-29 Thread Tomasz Kulasek
--- drivers/net/null/rte_eth_null.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index b498ef1..68cb723 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_e

[dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0

2015-09-29 Thread Montorsi, Francesco
Hi Olivier, Sorry for the delay: > -Original Message- > From: Olivier MATZ [mailto:olivier.matz at 6wind.com] > I had a look to your test case, I think the second command is not correct. The > T= parameter is not allowed for the clean target. It should be something like > this: > > # co

[dpdk-dev] [PATCH 1/3] librte_ether: add RTE_ETH_FDIR_OTHER for flow director behavior

2015-09-29 Thread Bruce Richardson
On Tue, Sep 29, 2015 at 03:48:32PM +0100, Chilikin, Andrey wrote: > > -Original Message- > > From: Richardson, Bruce > > Sent: Tuesday, September 29, 2015 3:38 PM > > To: Chilikin, Andrey > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH 1/3] librte_ether: add RTE_ETH_FDIR_OTHER >

[dpdk-dev] Performance issue when running DPDK on Fedora

2015-09-29 Thread Yan Fridland
Hi Thomas I am running a simple dpdk application on 2 VMs running on 2 different hosts. Each VM has a single port bound to a DPDK's ixgbevf module and the ports are connected to allow a traffic transaction. Both VMs are running on KVM hypervisor on Fedora. The test is quite simple, one of the

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
If huge pages are allocated for the guest and if the guest crashes there may be a chance that the new guest may not be able to get huge pages again as some other guest or process on the host used it. But I am not able to understand memory corruption you are talking about. In my opinion, if a pro

[dpdk-dev] [PATCH 0/8] virtio: virtio ring layout optimization and RX vector processing

2015-09-29 Thread Xie, Huawei
Thomas: Let us review first, then discuss the macro after that. My preference is use the configure macro and then fix this before next release. We could give some development features or aggressive changes a time buffer. On 9/29/2015 10:46 PM, Huawei Xie wrote: > Copied some message from patch 4.

[dpdk-dev] [PATCH 1/3] librte_ether: add RTE_ETH_FDIR_OTHER for flow director behavior

2015-09-29 Thread Bruce Richardson
On Tue, Sep 29, 2015 at 03:26:38PM +0100, Andrey Chilikin wrote: > Add new flow director behavior RTE_ETH_FDIR_OTHER to assign a queue by other > filters > > Signed-off-by: Andrey Chilikin > --- > lib/librte_ether/rte_eth_ctrl.h |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >

[dpdk-dev] [PATCH 11/11] fm10k: add xstats() implementation

2015-09-29 Thread Harry van Haaren
Add xstats() functions and statistic strings. Signed-off-by: Harry van Haaren --- drivers/net/fm10k/fm10k_ethdev.c | 82 1 file changed, 82 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index a69c990..5ef3

[dpdk-dev] [PATCH 10/11] i40evf: add xstats() implementation

2015-09-29 Thread Harry van Haaren
Add implementation of xstats() functions in i40evf PMD. Signed-off-by: Harry van Haaren --- drivers/net/i40e/i40e_ethdev_vf.c | 77 +-- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_et

[dpdk-dev] [PATCH 09/11] i40e: add xstats() implementation

2015-09-29 Thread Harry van Haaren
Add xstats functions to i40e PMD, allowing extended statistics to be retrieved from the NIC and exposed to the DPDK. Signed-off-by: Harry van Haaren --- drivers/net/i40e/i40e_ethdev.c | 263 +++-- 1 file changed, 256 insertions(+), 7 deletions(-) diff --git a

[dpdk-dev] [PATCH 08/11] ixgbevf: add xstats() functions to VF

2015-09-29 Thread Harry van Haaren
Add xstats() functions and stat strings as necessary to ixgbevf PMD. Signed-off-by: Harry van Haaren --- drivers/net/ixgbe/ixgbe_ethdev.c | 51 ++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/i

[dpdk-dev] [PATCH 07/11] ixgbe: update statistic strings to scheme

2015-09-29 Thread Harry van Haaren
Updated and add statistic strings as used by xstats_get(). Signed-off-by: Harry van Haaren --- drivers/net/ixgbe/ixgbe_ethdev.c | 277 --- 1 file changed, 259 insertions(+), 18 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixg

[dpdk-dev] [PATCH 06/11] igbvf: add xstats() implementation

2015-09-29 Thread Harry van Haaren
Add xstats functionality to igbvf PMD, adding necessary statistic strings. Signed-off-by: Harry van Haaren --- drivers/net/e1000/igb_ethdev.c | 57 ++ 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/n

[dpdk-dev] [PATCH 05/11] igb: add xstats() implementation

2015-09-29 Thread Harry van Haaren
Add xstats_get() and xstats_reset() functions to igb driver, and the neccessary strings to expose these NIC statistics. Signed-off-by: Harry van Haaren --- drivers/net/e1000/igb_ethdev.c | 126 +++-- 1 file changed, 122 insertions(+), 4 deletions(-) diff --gi

[dpdk-dev] [PATCH 04/11] virtio: add xstats() implementation

2015-09-29 Thread Harry van Haaren
Add xstats() functions and statistic strings to virtio PMD. Signed-off-by: Harry van Haaren --- drivers/net/virtio/virtio_ethdev.c | 86 +- 1 file changed, 84 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/

[dpdk-dev] [PATCH 03/11] ethdev: update xstats_get() strings and Q handling

2015-09-29 Thread Harry van Haaren
Update the strings used for presenting stats to adhere to the scheme previously presented. Updated xstats_get() function to handle Q information only if xstats() is not implemented in the PMD. Signed-off-by: Harry van Haaren --- lib/librte_ether/rte_ethdev.c | 15 ++- 1 file changed,

[dpdk-dev] [PATCH 02/11] doc: add extended statistics to prog_guide

2015-09-29 Thread Harry van Haaren
Add extended statistic section to the programmers guide, poll mode driver section. This section describes how the strings stats are formatted, and how the client code can use this to gather information about the stat. Signed-off-by: Harry van Haaren --- doc/guides/prog_guide/poll_mode_drv.rst |

[dpdk-dev] [PATCH 01/11] doc: add extended statistics notes

2015-09-29 Thread Harry van Haaren
Signed-off-by: Harry van Haaren --- doc/guides/rel_notes/release_2_2.rst | 12 1 file changed, 12 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 9a70dae..35f26d5 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/do

[dpdk-dev] [PATCH 00/11] Port XStats

2015-09-29 Thread Harry van Haaren
This patchset adds an implementation of the xstats_get() and xstats_reset() API to the following PMDs: virtio, igb, igbvf, ixgbe, ixgbevf, i40e, i40evf and fm10k. The xstats API allows DPDK apps to gain access to extended statistics from each port on a NIC. These statistics are structured as pe

[dpdk-dev] [PATCH] vhost: vhost injects interrupts to guest for each packet

2015-09-29 Thread Xie, Huawei
On 9/25/2015 4:00 AM, Thomas Monjalon wrote: > Please reword the title (no need to re-send the patch), > so that you describe what the patch do (batch interrupt). > > 2015-09-21 16:16, Huawei Xie: >> In merge-able RX path, vhost injects interrupts to guest for each packet. >> This should degrade pe

[dpdk-dev] [PATCH 1/4] add vector PMD RX for FVL

2015-09-29 Thread Bruce Richardson
On Mon, Sep 28, 2015 at 01:05:24AM +0800, Zhe Tao wrote: > The vPMD RX function uses the multi-buffer and SSE instructions to > accelerate the RX speed, but now the pktype cannot be supported by the vPMD > RX, > because it will decrease the performance heavily. > > Signed-off-by: Zhe Tao > --- >

[dpdk-dev] [PATCH 3/3] ixgbe: add check for supported flow director behaviors

2015-09-29 Thread Andrey Chilikin
Handle only supported flow director behaviors Signed-off-by: Andrey Chilikin --- drivers/net/ixgbe/ixgbe_fdir.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c index 5c8b833..cf0e8be 100644 --- a/drivers/n

[dpdk-dev] [PATCH 2/3] i40e: add RTE_ETH_FDIR_OTHER processing for flow director behavior

2015-09-29 Thread Andrey Chilikin
Add support for RTE_ETH_FDIR_OTHER flow director behavior so output queue is assigned by other filters Signed-off-by: Andrey Chilikin --- drivers/net/i40e/i40e_fdir.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/

[dpdk-dev] [PATCH 1/3] librte_ether: add RTE_ETH_FDIR_OTHER for flow director behavior

2015-09-29 Thread Andrey Chilikin
Add new flow director behavior RTE_ETH_FDIR_OTHER to assign a queue by other filters Signed-off-by: Andrey Chilikin --- lib/librte_ether/rte_eth_ctrl.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h inde

[dpdk-dev] [PATCH 0/3] Support for flow director behavior "other" on Intel FVL NIC

2015-09-29 Thread Andrey Chilikin
This patch set adds 1 new flow director behavior "other" on Intel X(L)710 NIC. When this mode is selected flow director will direct packet to LAN while the queue is defined by other filters. This can be used to extract flexible payload to RX desriptor with the flow director filter while targeted

[dpdk-dev] [PATCH 06/14] fm10k: add Vector RX function

2015-09-29 Thread Bruce Richardson
On Tue, Sep 29, 2015 at 01:14:26PM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Chen Jing D(Mark) > > Sent: Tuesday, September 29, 2015 2:04 PM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH 06/14] fm10k:

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread Xie, Huawei
On 9/29/2015 10:38 AM, Xie, Huawei wrote: > On 9/29/2015 8:04 AM, shesha Sreenivasamurthy (shesha) wrote: >> Hello, >> As of DPDK2.1, backing files are created in hugetablefs during mapping (in >> eal_memory.c::rte_eal_hugepage_init()) and these files are not cleaned up >> (unlinked) after initia

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Kulasek, TomaszX
Hi Tetsuya, Changes from patch below, solves the problem. I've removed malloc. Tomasz. --- >From e03e77a7dc0e47ac9d750545a834624f88f61966 Mon Sep 17 00:00:00 2001 From: Tomasz Kulasek Date: Tue, 29 Sep 2015 16:48:31 +0200 Subject: [PATCH 1/4] null: fix segfault when null_pmd added to bonding -

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

2015-09-29 Thread Neil Horman
On Mon, Sep 28, 2015 at 02:03:20PM +0100, Bernard Iremonger wrote: > 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. > remov

[dpdk-dev] [PATCHv4 3/9] null: extend number of virtual queues

2015-09-29 Thread Kulasek, TomaszX
Hi Tetsuya, Can you check patch below? Thanks, Tomasz. ---

[dpdk-dev] [Patch 00/11] Port XStats

2015-09-29 Thread Van Haaren, Harry
> -Original Message- > From: Van Haaren, Harry > Sent: Tuesday, September 29, 2015 3:30 PM > To: Van Haaren, Harry > Subject: [Patch 00/11] Port XStats Self-NACK: Sent outdated version of patches, new version tomorrow. Sorry for the noise, -Harry

[dpdk-dev] [PATCH 1/3] librte_ether: add RTE_ETH_FDIR_OTHER for flow director behavior

2015-09-29 Thread Chilikin, Andrey
> -Original Message- > From: Richardson, Bruce > Sent: Tuesday, September 29, 2015 3:38 PM > To: Chilikin, Andrey > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/3] librte_ether: add RTE_ETH_FDIR_OTHER > for flow director behavior > > On Tue, Sep 29, 2015 at 03:26:38PM +0100, Andr

[dpdk-dev] Having troubles binding an SR-IOV VF to uio_pci_generic on Amazon instance

2015-09-29 Thread Stephen Hemminger
On Tue, 29 Sep 2015 23:54:54 +0300 "Michael S. Tsirkin" wrote: > On Tue, Sep 29, 2015 at 07:41:09PM +0300, Vlad Zolotarov wrote: > > The security breach motivation u brought in "[RFC PATCH] uio: > > uio_pci_generic: Add support for MSI interrupts" thread seems a bit weak > > since one u let the u

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
What do you mean by secondary process attaching to primary process (Master-slave setup ?) ? The first process crashed, how can we be sure that memory is not half written ? -- - Thanks char * (*shesha) (uint64_t cache, uint8_t F00D) { return 0xC0DE; } From: Bruce Richardson mailto:bruce.rich

[dpdk-dev] [PATCH v2 6/6] ixgbe: implementation for fdir new modes' config

2015-09-29 Thread Wenzhuo Lu
Implement the new CLIs for fdir mac vlan and tunnel modes, including flow_director_filter and flow_director_mask. Set the mask of fdir. Add, delete or update the entities of filter. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.h | 3 + drivers/net/ixgbe/ixgbe_fdir.c | 241 +++

[dpdk-dev] [PATCH v2 5/6] app/testpmd: modify and add fdir filter and mask CLIs for new modes

2015-09-29 Thread Wenzhuo Lu
The different fdir mode needs different parameters, so, the parameter *mode* is introduced to the CLI flow_director_filter and flow_director_mask. This parameter can pormpt the user to input the appropriate parameters for different mode. Please be aware, as we should set the fdir mode, the value of

[dpdk-dev] [PATCH v2 4/6] app/testpmd: modify the output of the CLI show port fdir

2015-09-29 Thread Wenzhuo Lu
There're fdir mask and supported flow type in the output of the CLI, show port fdir. But not every parameter has meaning for all the fdir modes, and the supported flow type is meaningless for mac vlan and tunnel modes. So, we output different thing for different mode. Signed-off-by: Wenzhuo Lu --

[dpdk-dev] [PATCH v2 3/6] app/testpmd: new fdir modes for testpmd parameter

2015-09-29 Thread Wenzhuo Lu
For testpmd CLI's parameter pkt-filter-mode, there're new values supported for fdir new modes, perfect-mac-vlan, perfect-tunnel. Signed-off-by: Wenzhuo Lu --- app/test-pmd/parameters.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/parameters.c b/app/test-

[dpdk-dev] [PATCH v2 2/6] app/testpmd: initialize the new fields for fdir mask

2015-09-29 Thread Wenzhuo Lu
When a port is enabled, there're default values for the parameters of fdir mask. For the new parameters, the default values also need to be set. Signed-off-by: Wenzhuo Lu --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testp

[dpdk-dev] [PATCH v2 1/6] lib/librte_ether: modify the structures for fdir new modes

2015-09-29 Thread Wenzhuo Lu
Define the new modes and modify the filter and mask structures for the mac vlan and tunnel modes. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rte_eth_ctrl.h | 69 ++--- 1 file changed, 51 insertions(+), 18 deletions(-) diff --git a/lib/librte_ether/rte_eth

[dpdk-dev] [PATCH v2 0/6] Support new flow director modes on Intel x550 NIC

2015-09-29 Thread Wenzhuo Lu
This patch set adds 2 new flow director modes on Intel x550 NIC. The 2 new fdir modes are mac vlan mode and tunnel mode. The mac vlan mode can direct the flow based on the MAC address and VLAN TCI. The tunnel mode provides the support for VxLAN and NVGRE. x550 can recognize VxLAN and NVGRE packets,

[dpdk-dev] [PATCH 06/14] fm10k: add Vector RX function

2015-09-29 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Chen Jing D(Mark) > Sent: Tuesday, September 29, 2015 2:04 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 06/14] fm10k: add Vector RX function > > From: "Chen Jing D(Mark)" > > Add func fm10k_recv_raw

[dpdk-dev] FW: [PATCH 1/4] add vector PMD RX for FVL

2015-09-29 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zhe Tao > Sent: Sunday, September 27, 2015 6:05 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/4] add vector PMD RX for FVL > > The vPMD RX function uses the multi-buffer and SSE instructions to > acce

[dpdk-dev] [PATCH v2] Change rte_eal_vdev_init to update port_id

2015-09-29 Thread Tetsuya Mukawa
On 2015/09/24 6:22, Ravi Kerur wrote: > Hi David, Tetsuya, > > I have sent V3 (changes isolated to rte_ether component) for formal review. > Please look into it and let me know your inputs. Hi Ravi, I've checked the patch. I guess your patch is good. > > @David: I looked at "rte_eth_dev_get_port

[dpdk-dev] [PATCH v3] Change rte_eal_vdev_init to update port_id

2015-09-29 Thread Tetsuya Mukawa
On 2015/09/24 6:16, Ravi Kerur wrote: > v3: >> Isolate changes within rte_ether component. > > v2: >> Remove tilegx changes >> Use rte_eal_compare_pci_addr for address comparison >> Use dpdk_2.2 in version map file for new functions > > v1: > Changes include >> Modify rte_eal_vd

[dpdk-dev] [PATCH v2 3/8] mk: Add rule for installing libraries

2015-09-29 Thread Panu Matilainen
On 09/29/2015 03:00 AM, Mario Carrillo wrote: > Add hierarchy-file support to the DPDK libraries, > when invoking "make install-lib" for this case > if the architecture is 64 bits libraries will be instaled > in: $(DESTDIR)/usr/lib64 else it will be $(DESTDIR)/usr/lib > This hierarchy is based on:

[dpdk-dev] [PATCH 2/2] virtio: change io privilege level as early as possible

2015-09-29 Thread Stephen Hemminger
On Tue, 10 Mar 2015 09:14:28 -0400 Neil Horman wrote: > On Mon, Mar 09, 2015 at 03:56:39PM +0100, David Marchand wrote: > > Playing with virtio link status triggers a segfault because of an incorrect > > io > > privilege level. > > > > To reproduce the problem, virtio device must be bound to ig

[dpdk-dev] RFC - IPsec Sample App

2015-09-29 Thread Gunaseelan Venkatachary - ERS, HCL Tech
I am looking for making some app on IpSec VPN , the below thread has thrown some light on the North bound interface on CLI , do we have any such existing implantations in place so that we can take ref from that and take it forward , Thanks for your support Best Regards Gunaseelan V 91 98408 60

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread Bruce Richardson
On Tue, Sep 29, 2015 at 09:03:15AM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of shesha > > Sreenivasamurthy (shesha) > > Sent: Tuesday, September 29, 2015 1:04 AM > > To: dev at dpdk.org > > Subject: [dpdk-dev] U

[dpdk-dev] newbie dpdk linux interfaces clarification

2015-09-29 Thread Bruce Richardson
On Mon, Sep 28, 2015 at 09:12:36PM +0100, Pedro Sousa wrote: > Hi all, > > I'm looking at dpdk the first time, so I would like someone could clarify > me a little more about it. > > I'm using a KVM Virtualized Guest that runs CentOS 7.1. I'm using SRIOV > with bnx2x driver. When I bind my interfa

[dpdk-dev] [PATCHv4 3/9] null: extend number of virtual queues

2015-09-29 Thread Kulasek, TomaszX
> > Hi Tomasz, > > I guess we may need to change below variables when a queue is > configured. > - internals->nb_rx_queues; > - internals->nb_tx_queues; > Without changing, 'num_stats' in eth_stats_get() might be wrong value. > > Tetsuya Hi Tetsuya, I see it now. I was too focused on one cas

[dpdk-dev] [PATCH v2 1/8] mk: Add rule for installing headers

2015-09-29 Thread Panu Matilainen
On 09/29/2015 03:00 AM, Mario Carrillo wrote: > Add hierarchy-file support to the DPDK headers, > when invoking "make install-headers" headers will > be installed in: $(DESTDIR)/usr/include/dpdk > This hierarchy is based on: > http://www.freedesktop.org/software/systemd/man/file-hierarchy.html > >

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Kulasek, TomaszX
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Tuesday, September 29, 2015 12:33 > To: Kulasek, TomaszX > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd > added to bonding > > On 2015/09/29 18:39, Kulasek, Tom

[dpdk-dev] [PATCHv4 5/9] null: export eth_dev_null_create

2015-09-29 Thread Tetsuya Mukawa
On 2015/07/16 2:26, Tomasz Kulasek wrote: > To use eth_dev_null_create in application this method needs to be exported. > > Signed-off-by: Tomasz Kulasek > --- > drivers/net/null/Makefile |2 +- > drivers/net/null/rte_eth_null.c |3 ++- > drivers/net/null/rte_eth

[dpdk-dev] [PATCHv4 4/9] null: virtual dynamic rss configuration

2015-09-29 Thread Tetsuya Mukawa
On 2015/07/16 2:26, Tomasz Kulasek wrote: > This implementation allows to set and read RSS configuration for null > device, and is used to validate right values propagation over the slaves, > in test units for dynamic RSS configuration for bonding. > > Signed-off-by: Tomasz Kulasek > --- > driver

[dpdk-dev] [PATCHv4 3/9] null: extend number of virtual queues

2015-09-29 Thread Tetsuya Mukawa
On 2015/07/16 2:26, Tomasz Kulasek wrote: > This patch adds a possibility to configure more than one queue on null > device. > > Signed-off-by: Tomasz Kulasek > --- > drivers/net/null/rte_eth_null.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/ne

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Tetsuya Mukawa
On 2015/07/16 2:26, Tomasz Kulasek wrote: > When device is added to the bonding, the link status callback is added to > the slave's eth_dev->link_intr_cbs list. This list is not initialized for > null pmd and adding it to the bonding segfaults application. > > This patch allocates and sets up requi

[dpdk-dev] [PATCHv4 4/9] null: virtual dynamic rss configuration

2015-09-29 Thread Kulasek, TomaszX
> Hi Thomasz, > > I am just curious. Is it possible to use rte_memcpy instead of memcpy? > if we can, rte_memcpy may be faster. > > Tetsuya Hi Tetsuya, I've just tested it and seems to work, so there's no objections to use rte_memcpy. Tomasz.

[dpdk-dev] [PATCH v1] Move rte_mbuf macros to common header file

2015-09-29 Thread Ananyev, Konstantin
Hi Ravi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ravi Kerur > Sent: Saturday, September 26, 2015 3:47 AM > To: Stephen Hemminger; Olivier Matz > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v1] Move rte_mbuf macros to common header file > >

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

2015-09-29 Thread Christoph Gysin
'virtual' is a keyword and can't be used if the code is to compile with C++ compilers. If rte_devargs.h was included in C++ code, compilation with clang++ failed with an error. g++ did not fail, but only because of a bug that treats it as an anonymous struct with a decl-specifier which it ignores.

[dpdk-dev] [PATCHv4 3/9] null: extend number of virtual queues

2015-09-29 Thread Kulasek, TomaszX
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Tuesday, September 29, 2015 04:25 > To: Kulasek, TomaszX; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCHv4 3/9] null: extend number of virtual > queues > > On 2015/07/16 2:26, Tomasz Kulasek wrote: > > This

[dpdk-dev] [PATCH] acl: fix target arch detection

2015-09-29 Thread Ananyev, Konstantin
Hi Zoltan, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zoltan Kiss > Sent: Saturday, September 26, 2015 6:59 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] acl: fix target arch detection > > This test selects AVX2 code even if the target architec

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Kulasek, TomaszX
Hi Tetsuya, > Thanks for extending null pmd features. > Is it possible to use rte_null_pmd here? > Could you please check ring pmd? It may also uses rte_ring_pmd for link > status callback. > > Tetsuya My first attempt was to use ring pmd, and there's no such an issue with it. It works pretty w

  1   2   >