[dpdk-dev] [PATCH v7 4/8] vhost: rxtx: use queue id instead of constant ring index

2015-10-29 Thread Michael S. Tsirkin
On Wed, Oct 28, 2015 at 06:30:41PM -0200, Flavio Leitner wrote: > On Sat, Oct 24, 2015 at 08:47:10PM +0300, Michael S. Tsirkin wrote: > > On Sat, Oct 24, 2015 at 12:34:08AM -0200, Flavio Leitner wrote: > > > On Thu, Oct 22, 2015 at 02:32:31PM +0300, Michael S. Tsirkin wrote: > > > > On Thu, Oct

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

2015-10-29 Thread Stephen Hemminger
On Wed, 28 Oct 2015 17:35:09 + Tom Crugnale wrote: > Hi Harry, > > We are planning on using the xstats API for periodic stats collection through > a polling thread. This would be done in a generic NIC agnostic manner, which > would require that the xstats identifiers have consistent

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

2015-10-29 Thread Thomas Monjalon
> > Wenzhuo Lu (7): > > lib/librte_ether: modify the structures for fdir new modes > > app/testpmd: initialize the new fields for fdir mask > > app/testpmd: new fdir modes for testpmd parameter > > app/testpmd: modify the output of the CLI show port fdir > > app/testpmd: modify and add

[dpdk-dev] [PATCH v8] mem: command line option to delete hugepage backing files

2015-10-29 Thread Sergio Gonzalez Monroy
On 28/10/2015 22:04, Shesha Sreenivasamurthy wrote: > When an application using huge-pages crash or exists, the hugetlbfs > backing files are not cleaned up. This is a patch to clean those files. > There are multi-process DPDK applications that may be benefited by those > backing files. Therefore,

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

2015-10-29 Thread Tom Crugnale
I understand. Is this the reason that that strings were used to identify the xstat types? An enum type would be much more efficient instead of doing string copies when retrieving the stats, but the number of enum entries would quickly grow out of control as device specific stats were added.

[dpdk-dev] [PATCH v1] i40e: Fix the statistics issue of i40e

2015-10-29 Thread Xutao Sun
The old statistics on i40e only count the packets on ports. This patch is to make statistics for packets both on ports and VSI. But there're still some issues about statistics for 'bytes'. Signed-off-by: Xutao Sun --- drivers/net/i40e/i40e_ethdev.c | 19 --- 1 file changed, 12

[dpdk-dev] [PATCH] vhost: fix build error on old kernel doesn't support MQ

2015-10-29 Thread Yuanhan Liu
Fix build error: virtio-net.c:80:89: error: ?VIRTIO_NET_F_MQ? undeclared here rte_virtio_net.h:109: error: ?VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX? undeclared here Above two virtio-net MQ macros are introduced since kernel v3.8. For older kernel, we should not reference them directly, hence, this

[dpdk-dev] [PATCH v5 0/2] i40e: RSS/FD granularity configuration

2015-10-29 Thread Helin Zhang
The default input set of fields of a received packet are loaded from firmware, which cannot be modified even users want to use different fields for RSS or flow director. Here adds more flexibilities of selecting or adding packet fields for hash calculation or flow director to users. It also

[dpdk-dev] [PATCH v5 1/2] i40e: RSS/FD granularity configuration

2015-10-29 Thread Helin Zhang
The default input set of fields of a received packet are loaded from firmware, which cannot be modified even users want to use different fields for RSS or flow director. Here adds more flexibilities of selecting packet fields for hash calculation or flow director for users. Signed-off-by: Helin

[dpdk-dev] [PATCH v5 2/2] app/testpmd: add test commands for RSS/FD granularity

2015-10-29 Thread Helin Zhang
Test commands are added to support selecting input set, or adding new input set per different pctype. Signed-off-by: Helin Zhang Signed-off-by: Andrey Chilikin --- app/test-pmd/cmdline.c | 196 + 1 file changed, 196 insertions(+) v3 changes:

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

2015-10-29 Thread Chen, Jing D
Hi, Steve, Best Regards, Mark > -Original Message- > From: Liang, Cunming > Sent: Wednesday, October 28, 2015 9:59 PM > To: Chen, Jing D; dev at dpdk.org > Cc: Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, Bruce > Subject: Re: [PATCH v3 04/16] fm10k: add func to re-allocate

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

2015-10-29 Thread Chen, Jing D
Hi, Steve, Best Regards, Mark > -Original Message- > From: Liang, Cunming > Sent: Wednesday, October 28, 2015 10:30 PM > To: Chen, Jing D; dev at dpdk.org > Cc: Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, Bruce > Subject: Re: [PATCH v3 08/16] fm10k: add Vector RX scatter

[dpdk-dev] [PATCH v2] i40e: Fix the statistics issue of i40e

2015-10-29 Thread Xutao Sun
The old statistics on i40e only counted the packets on ports. So the discarding packets on VSI were not counted. This patch is to make statistics for packets both on ports and VSI. Signed-off-by: Xutao Sun --- drivers/net/i40e/i40e_ethdev.c | 23 ++- 1 file changed, 14

[dpdk-dev] [PATCH v6 0/3] i40e: RSS/FD granularity configuration

2015-10-29 Thread Helin Zhang
The default input set of fields of a received packet are loaded from firmware, which cannot be modified even users want to use different fields for RSS or flow director. Here adds more flexibilities of selecting or adding packet fields for hash calculation or flow director to users. It also

[dpdk-dev] [PATCH v6 2/3] app/testpmd: add test commands for RSS/FD granularity

2015-10-29 Thread Helin Zhang
Test commands are added to support selecting input set, or adding new input set per different pctype. Signed-off-by: Helin Zhang Signed-off-by: Andrey Chilikin --- app/test-pmd/cmdline.c | 218 + 1 file changed, 218 insertions(+) v3 changes:

[dpdk-dev] [PATCH v6 1/3] i40e: RSS/FD granularity configuration

2015-10-29 Thread Helin Zhang
The default input set of fields of a received packet are loaded from firmware, which cannot be modified even users want to use different fields for RSS or flow director. Here adds more flexibilities of selecting packet fields for hash calculation or flow director for users. Signed-off-by: Helin

[dpdk-dev] [PATCH v6 3/3] doc: update release notes and testpmd guide

2015-10-29 Thread Helin Zhang
Update release notes with the newly added feature of RSS/FD input set granularity, and testpmd guide with newly added commands for RSS/FD input set granularity testing. Signed-off-by: Helin Zhang --- doc/guides/rel_notes/release_2_2.rst| 2 ++

[dpdk-dev] [PATCH v3 1/3] i40e: add selecting GRE key length

2015-10-29 Thread Helin Zhang
By default, only first 3 bytes of GRE key will be used for hash or FD calculation. With these changes, it can select 3 or 4 bytes of GRE key for hash or FD calculation. Signed-off-by: Helin Zhang Signed-off-by: Andrey Chilikin --- drivers/net/i40e/i40e_ethdev.c | 87

[dpdk-dev] [PATCH v3 2/3] app/testpmd: add test commands for selecting different GRE key sizes

2015-10-29 Thread Helin Zhang
Test commands are added to support selecting differnt length of GRE key. Signed-off-by: Helin Zhang Signed-off-by: Andrey Chilikin --- app/test-pmd/cmdline.c | 52 ++ 1 file changed, 52 insertions(+) diff --git a/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v3 0/3] add selecting different GRE key length

2015-10-29 Thread Helin Zhang
By default, only 3 bytes of GRE key will be used for hash or FD calculation. Here adds selecting 3 or 4 bytes of GRE key for those purpose. Note that these patches are based on another patch set of "[PATCH v6 0/2] i40e: RSS/FD granularity configuration". v2 changes: Updated with RSS/FD

[dpdk-dev] [PATCH v3 3/3] doc: update release notes and testpmd guide

2015-10-29 Thread Helin Zhang
Update release notes with the newly added feature of selecting different GRE key length for input set, and testpmd guide with newly added commands for that. Signed-off-by: Helin Zhang --- doc/guides/rel_notes/release_2_2.rst| 2 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 11

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

2015-10-29 Thread Tetsuya Mukawa
On 2015/10/28 22:43, Kulasek, TomaszX wrote: >> -Original Message- >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] >> Sent: Tuesday, October 27, 2015 17:59 >> To: Kulasek, TomaszX >> Cc: dev at dpdk.org; Tetsuya Mukawa >> Subject: Re: [dpdk-dev] [PATCH v6 2/9] null: fix

[dpdk-dev] [PATCH v3 3/3] doc: update release notes and testpmd guide

2015-10-29 Thread Thomas Monjalon
Hi Helin, Please avoid making a commit for doc only. These changes are related to some code changes and must be atomic. For next time, please update the release notes in the patch adding the feature (i40e here) and the testpmd doc in the testpmd patch. Thanks for explaining the logic to others

[dpdk-dev] [PATCH v3] examples/vmdq: Fix the core dump issue when mem_pool is more than 34

2015-10-29 Thread De Lara Guarch, Pablo
> -Original Message- > From: Sun, Xutao > Sent: Tuesday, October 27, 2015 8:59 AM > To: dev at dpdk.org > Cc: De Lara Guarch, Pablo; Wu, Jingjing; Zhang, Helin; Sun, Xutao > Subject: [PATCH v3] examples/vmdq: Fix the core dump issue when > mem_pool is more than 34 > > Macro MAX_QUEUES

[dpdk-dev] [PATCH v3 0/2] i40e: Fix the statistics issue of i40e

2015-10-29 Thread Xutao Sun
The old statistics on i40e only counted the packets on ports. So the discarding packets on VSI were not counted. This patch is to make statistics for packets both on ports and VSI. v2 changes: Reword comments. v3 changes: Update documentation. Xutao Sun (2): i40e: Fix the statistics issue of

[dpdk-dev] [PATCH v3 1/2] i40e: Fix the statistics issue of i40e

2015-10-29 Thread Xutao Sun
The old statistics on i40e only counted the packets on ports. So the discarding packets on VSI were not counted. This patch is to make statistics for packets both on ports and VSI. Signed-off-by: Xutao Sun --- v2: - reword comments drivers/net/i40e/i40e_ethdev.c | 23 ++-

[dpdk-dev] [PATCH v3 2/2] doc: update release notes

2015-10-29 Thread Xutao Sun
Update release notes with the newly resolved issues about statistics on i40e. Signed-off-by: Xutao Sun --- doc/guides/rel_notes/release_2_1.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_2_1.rst b/doc/guides/rel_notes/release_2_1.rst index

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

2015-10-29 Thread Liang, Cunming
Hi Mark, > -Original Message- > From: Chen, Jing D > Sent: Thursday, October 29, 2015 1:28 PM > To: Liang, Cunming; dev at dpdk.org > Cc: Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, Bruce > Subject: RE: [PATCH v3 08/16] fm10k: add Vector RX scatter function > > Hi, Steve, >

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

2015-10-29 Thread Liang, Cunming
Hi Mark? > -Original Message- > From: Chen, Jing D > Sent: Thursday, October 29, 2015 1:24 PM > To: Liang, Cunming; dev at dpdk.org > Cc: Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, Bruce > Subject: RE: [PATCH v3 04/16] fm10k: add func to re-allocate mbuf for RX ring > >

[dpdk-dev] [PATCH v3 0/2] i40e: Fix the statistics issue of i40e

2015-10-29 Thread Thomas Monjalon
Hi, > Xutao Sun (2): > i40e: Fix the statistics issue of i40e > doc: update release notes It is not needed to have a separate commit for the documentation in this case. Thanks for considering it next time :)

[dpdk-dev] [PATCH v3 0/2] i40e: Fix the statistics issue of i40e

2015-10-29 Thread Sun, Xutao
Hi, Thomas > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, October 29, 2015 4:19 PM > To: Sun, Xutao > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 0/2] i40e: Fix the statistics issue of i40e > > Hi, > > > Xutao Sun (2): >

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

2015-10-29 Thread Chen, Jing D
Hi, Steve, Best Regards, Mark > -Original Message- > From: Liang, Cunming > Sent: Thursday, October 29, 2015 4:15 PM > To: Chen, Jing D; dev at dpdk.org > Cc: Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, Bruce > Subject: RE: [PATCH v3 04/16] fm10k: add func to re-allocate

[dpdk-dev] [PATCH v2 01/10] ethdev: rename dcb_queue to dcb_tc in dcb config struct

2015-10-29 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- app/test-pmd/testpmd.c | 8 drivers/net/ixgbe/ixgbe_rxtx.c | 10 +- examples/vmdq_dcb/main.c | 4 ++-- lib/librte_ether/rte_ethdev.h | 14 +++--- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git

[dpdk-dev] [PATCH v2 02/10] ethdev: move the multi-queue checking to specific drivers

2015-10-29 Thread Jingjing Wu
Differnet NIC has its specific constraint on the multi-queue configuration, so move the checking from ethdev lib to drivers. Signed-off-by: Jingjing Wu --- drivers/net/e1000/igb_ethdev.c | 84 - drivers/net/ixgbe/ixgbe_ethdev.c | 171 +

[dpdk-dev] [PATCH v2 03/10] i40e: enable DCB feature on FVL

2015-10-29 Thread Jingjing Wu
This patch enables DCB feature on Intel XL710/X710 NICs. It includes: Receive queue classification based on traffic class Round Robin ETS schedule (rx and tx) Priority flow control Signed-off-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev.c | 532

[dpdk-dev] [PATCH v2 04/10] ixgbe: enable DCB+RSS multi-queue mode

2015-10-29 Thread Jingjing Wu
This patch enables DCB+RSS multi-queue mode, and also fix some coding style. Signed-off-by: Jingjing Wu --- drivers/net/ixgbe/ixgbe_rxtx.c | 48 +- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c

[dpdk-dev] [PATCH v2 06/10] ixgbe: get_dcb_info ops implement

2015-10-29 Thread Jingjing Wu
This patch implements the get_dcb_info ops in ixgbe driver. Signed-off-by: Jingjing Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 80 1 file changed, 80 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index

[dpdk-dev] [PATCH v2 05/10] ethdev: new API to get dcb related information

2015-10-29 Thread Jingjing Wu
This patch adds one new API to get dcb related info. rte_eth_dev_get_dcb_info Signed-off-by: Jingjing Wu --- lib/librte_ether/rte_ethdev.c | 18 +++ lib/librte_ether/rte_ethdev.h | 54 +++ 2 files changed, 72 insertions(+) diff --git

[dpdk-dev] [PATCH v2 10/10] doc: update testpmd guide and release note

2015-10-29 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- doc/guides/rel_notes/release_2_2.rst| 6 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 12 +++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst

[dpdk-dev] [PATCH v2 07/10] i40e: get_dcb_info ops implement

2015-10-29 Thread Jingjing Wu
This patch implements the get_dcb_info ops in i40e driver. Signed-off-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index

[dpdk-dev] [PATCH v2 08/10] app/testpmd: set up DCB forwarding based on traffic class

2015-10-29 Thread Jingjing Wu
This patch changes the testpmd DCB forwarding stream to make it based on traffic class. It also fixes some coding style issues. Signed-off-by: Jingjing Wu --- app/test-pmd/cmdline.c | 39 +++- app/test-pmd/config.c | 159 +

[dpdk-dev] [PATCH v2 09/10] app/testpmd: add command to display DCB info

2015-10-29 Thread Jingjing Wu
This patch adds a command to display DCB info in ports. Signed-off-by: Jingjing Wu --- app/test-pmd/cmdline.c | 15 ++- app/test-pmd/config.c | 43 +++ app/test-pmd/testpmd.h | 1 + 3 files changed, 54 insertions(+), 5 deletions(-) diff

[dpdk-dev] [PATCH 0/3] export hotplug capability

2015-10-29 Thread David Marchand
This little patchset makes it possible for an application to know if a port supports hotplug. -- David Marchand Maxime Leroy (3): ethdev: rework value return by rte_eth_dev_is_detachable ethdev: export rte_eth_dev_is_detachable function ethdev: prevent segfaults in

[dpdk-dev] [PATCH 1/3] ethdev: rework value return by rte_eth_dev_is_detachable

2015-10-29 Thread David Marchand
From: Maxime Leroy The rte_eth_dev_is_detachable return 0 when the device is detachable. It not, it returns a negative value or 1. This patch modifies this function to return 1 when the device is detachable and 0 when is not. Signed-off-by: Maxime Leroy Signed-off-by:

[dpdk-dev] [PATCH 2/3] ethdev: export rte_eth_dev_is_detachable function

2015-10-29 Thread David Marchand
From: Maxime Leroy It can be useful for application to know if a port can be detached or not. Signed-off-by: Maxime Leroy Signed-off-by: David Marchand --- lib/librte_ether/rte_ethdev.c | 2 +- lib/librte_ether/rte_ethdev.h | 12

[dpdk-dev] [PATCH 3/3] ethdev: prevent segfaults in rte_eth_dev_is_detachable

2015-10-29 Thread David Marchand
From: Maxime Leroy Some drivers like virtual ones don't specify any driver pointer in the structure rte_eth_dev. To prevent segfault, we should check if this pointer is NULL before dereferencing it. Signed-off-by: Maxime Leroy Signed-off-by: David Marchand ---

[dpdk-dev] [PATCH v3 0/8] interrupt mode for e1000

2015-10-29 Thread Yong Liu
v3 changes: add in release note v2 changes: describe interrupt mode work with uio and vfio+msi replace attribuite __unused__ with __rte_unused This patch set will enable interrup for physical and emulated e1000 device. Rx queue interrupt will work with uio driver or vfio

[dpdk-dev] [PATCH] virtio: fix size of mac_addrs array in virtio ports

2015-10-29 Thread Yuanhan Liu
On Thu, Oct 29, 2015 at 09:46:15AM +0100, David Marchand wrote: > From: Ivan Boule > > Make the virtio PMD allocate the array of unicast MAC addresses with > the maximum of entries (VIRTIO_MAX_MAC_ADDRS) that it exports. > > Signed-off-by: Ivan Boule > Signed-off-by: David Marchand > --- >

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

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" v4: - Clear HW/SW ring content after allocating mbuf failed. v3: - Add a blank line after variable definition. - Do floor alignment for passing in argument nb_pkts to avoid memory overwritten. - Only scan max of 32 desc in scatter Rx

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

2015-10-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

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

2015-10-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

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

2015-10-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 | 35 +++ 1 files changed, 23 insertions(+), 12 deletions(-)

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

2015-10-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 | 11 drivers/net/fm10k/fm10k_ethdev.c |3 + drivers/net/fm10k/fm10k_rxtx_vec.c |

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

2015-10-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

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

2015-10-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 +

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

2015-10-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

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

2015-10-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

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

2015-10-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

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

2015-10-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

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

2015-10-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) ---

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

2015-10-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

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

2015-10-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

[dpdk-dev] [PATCH v4 15/16] fm10k: fix a crash issue in vector RX func

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Vector RX function will process 4 packets at a time. When the RX ring wrapps to the tail and the left descriptor size is not multiple of 4, SW will overwrite memory that not belongs to it and cause crash. The fix will allocate additional 4 HW/SW

[dpdk-dev] [PATCH v2] virtio: fix size of mac_addrs array in virtio ports

2015-10-29 Thread David Marchand
From: Ivan Boule Make the virtio PMD allocate the array of unicast MAC addresses with the maximum of entries (VIRTIO_MAX_MAC_ADDRS) that it exports. Signed-off-by: Ivan Boule Signed-off-by: David Marchand --- Changes since v1: * fix checkpatch warning (thanks Yuanhan)

[dpdk-dev] [PATCH v4 16/16] doc: release notes update for fm10k Vector PMD

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Update 2.2 release notes, add descriptions for Vector PMD implementation in fm10k driver. Signed-off-by: Chen Jing D(Mark) --- doc/guides/rel_notes/release_2_2.rst |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[dpdk-dev] [PATCH v3 0/8] interrupt mode for e1000

2015-10-29 Thread Yong Liu
This patch set will enable interrup for physical and emulated e1000 device. Rx queue interrupt will work with uio driver or vfio driver with msi mode. l3fwd-power will disable interrupt immediately when wake-up for that e1000 not support interrupt auto clear. LSC and rxq interrupt will be

[dpdk-dev] [PATCH v3 2/8] e1000: separate lsc and rxq interrupt disable function

2015-10-29 Thread Yong Liu
Separate lsc and rxq interrupt for they have different interrupt handlers. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 3be8269..39f330a 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -108,11

[dpdk-dev] [PATCH v3 3/8] e1000: add ethdev rxq enable and disable function

2015-10-29 Thread Yong Liu
Implement rxq interrupt related functions in eth_dev_ops structure. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 39f330a..6dc2534 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -108,9 +108,13 @@

[dpdk-dev] [PATCH v3 6/8] e1000: lsc interrupt setup function only enable itself

2015-10-29 Thread Yong Liu
Only mask lsc interrupt bit when setup device interrupt. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index b1e0c3c..d2d017c 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -1343,11 +1343,14 @@

[dpdk-dev] [PATCH v3 1/8] e1000: add rx interrupt support

2015-10-29 Thread Yong Liu
Enable rx interrupt support on e1000 physical and emulated device. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 912f5dd..3be8269 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -81,6 +81,7 @@ static

[dpdk-dev] [PATCH v3 7/8] l3fwd-power: disable interrupt when wake up from sleep

2015-10-29 Thread Yong Liu
Signed-off-by: Marvin Liu diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 8bb88ce..9175989 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -798,6 +798,7 @@ sleep_until_rx_interrupt(int num) port_id = ((uintptr_t)data) >>

[dpdk-dev] [PATCH v3 4/8] e1000: add rxq interrupt handler

2015-10-29 Thread Yong Liu
When datapath rxq interupt is enabled, enable related device rxq. Remove the interrupt handler after device stopped. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 6dc2534..fc3cc1e 100644 --- a/drivers/net/e1000/em_ethdev.c +++

[dpdk-dev] [PATCH v3 8/8] doc: release note update for e1000 intr mode

2015-10-29 Thread Yong Liu
Signed-off-by: Marvin Liu diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index be6f827..7655148 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides/rel_notes/release_2_2.rst @@ -23,6 +23,7 @@ New Features * **Added vhost-user multiple

[dpdk-dev] [PATCH v6 1/3] i40e: RSS/FD granularity configuration

2015-10-29 Thread Bruce Richardson
On Thu, Oct 29, 2015 at 02:02:50PM +0800, Helin Zhang wrote: > The default input set of fields of a received packet are loaded from > firmware, which cannot be modified even users want to use different > fields for RSS or flow director. Here adds more flexibilities of > selecting packet fields for

[dpdk-dev] [PATCH v4 1/1] ip_pipeline: added dynamic pipeline reconfiguration

2015-10-29 Thread Piotr Azarewicz
Up till now pipeline was bound to thread selected in the initial config. This patch allows binding pipeline to other threads at runtime using CLI commands. v2 changes: - deleted debug printfs v3 changes: - add timer for thread message request - fix bug that the new functionality can't work - fix

[dpdk-dev] [PATCH v3 0/2] i40e: Fix the statistics issue of i40e

2015-10-29 Thread Van Haaren, Harry
Hi Xutao, > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Xutao Sun > Sent: Thursday, October 29, 2015 8:02 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/2] i40e: Fix the statistics issue of i40e > > The old statistics on i40e only counted the packets on ports. > So the

[dpdk-dev] [PATCH] lib/lpm:fix two issues in the delete_depth_small()

2015-10-29 Thread Bruce Richardson
On Thu, Oct 29, 2015 at 10:41:45AM +0800, nana.nn wrote: > Hi Bruce: > Should I send the test unit as a DPDK patch, or just the program for > you to demonstrate the bugs? > > > Thank you very much! > > > Regards > > Na Na > A patch to add a unit test for the bug

[dpdk-dev] [PATCH v3 0/8] interrupt mode for e1000

2015-10-29 Thread Liang, Cunming
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yong Liu > Sent: Thursday, October 29, 2015 5:19 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/8] interrupt mode for e1000 > > This patch set will enable interrup for physical and emulated

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

2015-10-29 Thread Liang, Cunming
Hi, > -Original Message- > From: Chen, Jing D > Sent: Thursday, October 29, 2015 5:16 PM > To: dev at dpdk.org > Cc: Liang, Cunming; Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, > Bruce; Chen, Jing D > Subject: [PATCH v4 00/16] Vector Rx/Tx PMD implementation for fm10k > >

[dpdk-dev] 答复: [PATCH] lib/lpm:fix two issues in the delete_depth_small()

2015-10-29 Thread 那娜(恒月)
HI Bruce:How about this, I send you the test program , then you can?demonstrate?the?bugs .? ? If you?demonstrate?the?bugs ,then you can get the lpm bug's fix into?the?release first.Further ,we explicitly discuss the details about the unit test and make it a patch of dpdk.Thank

[dpdk-dev] [PATCH] doc: remove dejavu font from doc build

2015-10-29 Thread Mcnamara, John
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Monday, October 26, 2015 2:25 PM > To: Mcnamara, John > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] doc: remove dejavu font from doc build > > 2015-10-20 12:32, John McNamara: > > Remove

[dpdk-dev] [PATCH v5 21/28] librte_ether: remove branches on pci_dev

2015-10-29 Thread Bruce Richardson
On Fri, Oct 23, 2015 at 06:36:26PM +0100, Bernard Iremonger wrote: > use dev_type to distinguish between vdev's and pdev's. > remove pci_dev branches. > update release notes. > > Signed-off-by: Bernard Iremonger > --- > doc/guides/rel_notes/release_2_2.rst | 3 +++ >

[dpdk-dev] [PATCH v4 0/2] User-space ethtool sample application

2015-10-29 Thread Remy Horton
Further enhancements to the userspace ethtool implementation that was submitted in 2.1 and packaged as a self-contained sample application. Implements an rte_ethtool shim layer based on rte_ethdev API, along with a command prompt driven demonstration application. This patchset depends on: *

[dpdk-dev] [PATCH v4 1/2] example: add user-space ethtool sample application

2015-10-29 Thread Remy Horton
Further enhancements to the userspace ethtool implementation that was submitted in 2.1 and packaged as a self-contained sample application. Implements an rte_ethtool shim layer based on rte_ethdev API, along with a command prompt driven demonstration application. Signed-off-by: Remy Horton ---

[dpdk-dev] [PATCH v4 2/2] doc: add user-space ethtool sample app guide

2015-10-29 Thread Remy Horton
Signed-off-by: Remy Horton --- doc/guides/sample_app_ug/ethtool.rst | 265 +++ doc/guides/sample_app_ug/index.rst | 1 + 2 files changed, 266 insertions(+) create mode 100644 doc/guides/sample_app_ug/ethtool.rst diff --git

[dpdk-dev] [PATCH 1/2] scripts: add checkpatch wrapper

2015-10-29 Thread Bruce Richardson
On Fri, Oct 23, 2015 at 05:53:25PM +0200, Thomas Monjalon wrote: > This script can be used to call checkpatch.pl from Linux with some > custom DPDK options. > > The path to the original Linux script must be set in an environment > variable. A script is added to load any configuration variables >

[dpdk-dev] [PATCH v5 00/28] remove pci driver from vdevs

2015-10-29 Thread Bruce Richardson
On Fri, Oct 23, 2015 at 06:36:05PM +0100, Bernard Iremonger wrote: > 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

[dpdk-dev] [PATCH] hash: fix scaling by reducing contention

2015-10-29 Thread Pablo de Lara
If using multiple cores on a system with hardware transactional memory support, thread scaling does not work, as there was a single point in the hash library which is a bottleneck for all threads, which is the "free_slots" ring, which stores all the indices of the free slots in the table. This

[dpdk-dev] [PATCH] doc: remove dejavu font from doc build

2015-10-29 Thread Thomas Monjalon
2015-10-29 11:35, Mcnamara, John: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2015-10-20 12:32, John McNamara: > > > Remove requirement for occasionally hard to find/install > > > DejaVuSansMono font. It isn't gnerally required anyway. > > > The default mono font is

[dpdk-dev] [PATCH 1/2] scripts: add checkpatch wrapper

2015-10-29 Thread David Marchand
On Fri, Oct 23, 2015 at 5:53 PM, Thomas Monjalon wrote: > +for p in "$@" ; do > + printf -- "\n### $p\n\n" > + report=$($DPDK_CHECKPATCH_PATH $options "$p" 2>/dev/null) > + [ $? -ne 0 ] || continue > + printf '%s\n' "$report" | head -n -6 > + status=$(($status + 1))

[dpdk-dev] [PATCH 3/8] driver/virtio:add vhost TX offload support capability in virtio-net

2015-10-29 Thread David Marchand
Hello Jijiang, On Wed, Oct 21, 2015 at 6:46 AM, Jijiang Liu wrote: > Add vhost TX checksum and TSO capabilities in virtio-net lib. > > Signed-off-by: Jijiang Liu > --- > drivers/net/virtio/virtio_ethdev.h |5 - > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git

[dpdk-dev] [PATCH v4 02/15] eal/arm: byte order operations for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific byte order operations for ARM. The architecture supports both big and little endian. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v4: fix passing params to asm volatile for checkpatch ---

[dpdk-dev] [PATCH v4 03/15] eal/arm: cpu cycle operations for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar ARM architecture doesn't have a suitable source of CPU cycles. This patch uses clock_gettime instead. The implementation should be improved in the future. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin ---

[dpdk-dev] [PATCH v4 04/15] eal/arm: implement rdtsc by PMU or clock_gettime

2015-10-29 Thread Jan Viktorin
Enable to choose a preferred way to read timer based on the configuration entry CONFIG_RTE_ARM_EAL_RDTSC_USE_PMU. It requires a kernel module that is not included to work. Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin

[dpdk-dev] [PATCH v4 05/15] eal/arm: prefetch operations for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific prefetch operations for ARM architecture. It utilizes the pld instruction that starts filling the appropriate cache line without blocking. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v4: *

[dpdk-dev] [PATCH v4 08/15] eal/arm: use vector memcpy only when NEON is enabled

2015-10-29 Thread Jan Viktorin
The GCC can be configured to avoid using NEON extensions. For that purpose, we provide just the memcpy implementation of the rte_memcpy. Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende

[dpdk-dev] [PATCH v4 06/15] eal/arm: spinlock operations for ARM (without HTM)

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds spinlock operations for ARM architecture. We do not support HTM in spinlocks on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_spinlock.h | 114 + 1

[dpdk-dev] [PATCH v4 07/15] eal/arm: vector memcpy for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar The SSE based memory copy in DPDK only support x86. This patch adds ARM NEON based memory copy functions for ARM architecture. The implementation improves memory copy of short or well aligned data buffers. The following measurements show improvements

[dpdk-dev] [PATCH v4 09/15] eal/arm: cpu flag checks for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar This implementation is based on IBM POWER version of rte_cpuflags. We use software emulation of HW capability registers, because those are usually not directly accessible from userspace on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan

[dpdk-dev] [PATCH v4 10/15] eal/arm: detect arm architecture in cpu flags

2015-10-29 Thread Jan Viktorin
Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende Signed-off-by: David Hunt --- v2 -> v3: fixed forgotten include of string.h v4: checkpatch reports few characters over 80 for checking aarch64

  1   2   3   >