Re: [dpdk-dev] [PATCH 0/5] net/mrvl: fix recently found pmd issues

2018-01-14 Thread Tomasz Duszynski
On Fri, Jan 12, 2018 at 07:13:09PM +, Ferruh Yigit wrote: > On 1/11/2018 3:35 PM, Tomasz Duszynski wrote: > > Following commits provide fixes for a few recently > > found NET MRVL PMD issues. > > > > Natalie Samsonov (5): > > net/mrvl: fix multiple probe issue > > net/mrvl: fix hif objects

Re: [dpdk-dev] [PATCH v2] net/i40e: fix packet type parser issue

2018-01-14 Thread Xing, Beilei
> -Original Message- > From: Zhang, Qi Z > Sent: Sunday, January 14, 2018 12:02 PM > To: Xing, Beilei > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [PATCH v2] net/i40e: fix packet type parser issue > > > > > -Original Message- > > From: Xing, Beilei > > Sent: Friday, Janu

Re: [dpdk-dev] [RFC] ether: support deferred queue setup

2018-01-14 Thread Andrew Rybchenko
On 01/15/2018 04:57 AM, Qi Zhang wrote: According to exist implementation, rte_eth_[rx|tx]_queue_setup will always return fail if device is already started(rte_eth_dev_start). This can't satisfied the usage when application want to deferred setup part of the queues while keep traffic running on

[dpdk-dev] [PATCH 3/4] net/mlx5: support mempool of multi-mem segments

2018-01-14 Thread Xueming Li
Previously, mempool of multiple memory segments would lead to MR registration error "mempool not virtually contiguous". This patch support multi-segments mempool by registering each memory segment of mempool. Signed-off-by: Xueming Li --- drivers/net/mlx5/mlx5.h | 4 +- drivers/net/mlx

[dpdk-dev] [PATCH 2/4] net/mlx5: forbid MR registration in secondary process

2018-01-14 Thread Xueming Li
Secondary process are not alloed to access verbs resources, add check to prevent MR registration in data path. Signed-off-by: Xueming Li --- doc/guides/nics/mlx5.rst | 1 + drivers/net/mlx5/mlx5_mr.c | 3 +++ drivers/net/mlx5/mlx5_rxtx.h | 3 --- 3 files changed, 4 insertions(+), 3 deletio

[dpdk-dev] [PATCH 4/4] net/mlx5: remove MR refcnt

2018-01-14 Thread Xueming Li
MRs are registered to priv at device start or on the fly, destroyied when device stop. No mR registration to perticular TXQ, MR references cache in TXQ just part of device MR list, no reason to keep MR refcnt. Signed-off-by: Xueming Li --- drivers/net/mlx5/mlx5.h | 1 - drivers/net/mlx5/ml

[dpdk-dev] [PATCH 1/4] net/mlx5: revert "fix Memory Region registration"

2018-01-14 Thread Xueming Li
This reverts commit 17fd4a504a4780455f79969803dc231521254ca8. Fixes: 12ed59b702cc ("net/mlx5: fix Memory Region registration") Signed-off-by: Xueming Li --- drivers/net/mlx5/mlx5_rxtx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix calculation of flow ID flag

2018-01-14 Thread Shahaf Shuler
Thursday, January 11, 2018 9:58 AM, Yongseok Koh: > Subject: [dpdk-stable] [PATCH] net/mlx5: fix calculation of flow ID flag > > PKT_RX_FDIR_ID should be set only if flow_tag is neither non-zero nor > MLX5_FLOW_MARK_DEFAULT. > > Fixes: 6cb559d67b83 ("net/mlx5: add vectorized Rx/Tx burst for x86")

Re: [dpdk-dev] [PATCH 2/5] net/mrvl: fix hif objects allocation

2018-01-14 Thread Tomasz Duszynski
On Fri, Jan 12, 2018 at 07:13:22PM +, Ferruh Yigit wrote: > On 1/11/2018 3:35 PM, Tomasz Duszynski wrote: > > From: Natalie Samsonov > > Commit title updated to [1] assuming hif is an abbreviation (btw, what is > hif?) Thanks for fixing that. HIF stands for host-interface. You want to alloca

Re: [dpdk-dev] [PATCH] net/mlx5: fix missing attribute size for drop action

2018-01-14 Thread Shahaf Shuler
Wednesday, January 10, 2018 7:51 PM, Yongseok Koh: > Subject: [dpdk-dev] [PATCH] net/mlx5: fix missing attribute size for drop > action > > Adding the size of ibv_flow_spec_action_drop is missing. This can cause > overflow when converting rte_flow to ibv_flow and thus corrupt memory. > > Fixes: 8

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix deadlock of link status alarm

2018-01-14 Thread Shahaf Shuler
Wednesday, January 10, 2018 7:47 PM, Yongseok Koh: > If mlx5_dev_link_status_handler() is executed while canceling the alarm, > deadlock can happen because rte_eal_alarm_cancel() waits for all callbackes > to finish execution and both calls are protected by priv->lock. > > Fixes: 198a3c339a8f ("ml

[dpdk-dev] [PATCH v3 3/3] crypto/dpaa_sec: support ipsec protocol offload

2018-01-14 Thread Akhil Goyal
Signed-off-by: Akhil Goyal Acked-by: Hemant Agrawal --- doc/guides/cryptodevs/features/dpaa_sec.ini | 1 + doc/guides/rel_notes/release_18_02.rst | 5 + drivers/crypto/dpaa_sec/dpaa_sec.c | 410 ++-- drivers/crypto/dpaa_sec/dpaa_sec.h | 62

[dpdk-dev] [PATCH v3 2/3] crypto/dpaa_sec: support multiple sessions per qp

2018-01-14 Thread Akhil Goyal
From: Hemant Agrawal Signed-off-by: Hemant Agrawal Acked-by: Akhil Goyal --- drivers/crypto/dpaa_sec/dpaa_sec.c | 154 + drivers/crypto/dpaa_sec/dpaa_sec.h | 74 +- 2 files changed, 145 insertions(+), 83 deletions(-) diff --git a/drivers/cr

[dpdk-dev] [PATCH v3 1/3] crypto/dpaa_sec: optimize virt to phy conversion

2018-01-14 Thread Akhil Goyal
From: Hemant Agrawal Context memory is allocated from mempool. Ideally it will get all memory from single segment, so simple offset calculation is used for address conversion for such addresses from context memory. Signed-off-by: Hemant Agrawal Acked-by: Akhil Goyal --- drivers/crypto/dpaa_se

[dpdk-dev] [PATCH v3 0/3] crypto/dpaa_sec: performance optimizations

2018-01-14 Thread Akhil Goyal
Following changes are added to improve performance. 1. optimize virtual to physical address conversion 2. support for multiple sessions in a single queue pair 3. support for ipsec protocol offload changes in v3: - updated release notes in patch 3/3 for ipsec protocol offload. changes in v2: - in

[dpdk-dev] [PATCH v2 5/5] mbuf: add user command line config mempools ops API

2018-01-14 Thread Hemant Agrawal
This patch add the user command line configured mempool ops name API to librte_mbuf and sends a deprecation notice to remove the similar API from eal. Signed-off-by: Hemant Agrawal --- doc/guides/rel_notes/deprecation.rst | 7 +++ lib/librte_mbuf/rte_mbuf.c | 8 +++- lib/libr

[dpdk-dev] [PATCH v2 0/5] Dynamic HW Mempool Detection Support

2018-01-14 Thread Hemant Agrawal
W.r.t the multiple discussions in the past about the ability to dynamically detect the HW mempool support. [1],[2] & [3] This patchset helps in removing the current static mempool selection model and provides a flexible model to select the pktmbuf mempool in more dynamic way. 1) This patchset up

[dpdk-dev] [PATCH v2 1/5] eal: prefix mbuf pool ops name with user defined

2018-01-14 Thread Hemant Agrawal
This patch prefix the mbuf pool ops name with "user" to indicate that it is user defined. This patch also change the logic to maintain the value of user defined and compile time i.e. RTE_MBUF_DEFAULT_MEMPOOL_OPS. The pktmbuf_create_pool is updated to reflect the same. Signed-off-by: Hemant Agraw

[dpdk-dev] [PATCH v2 4/5] mbuf: pktmbuf pool create helper for specific mempool ops

2018-01-14 Thread Hemant Agrawal
Introduce a new helper for pktmbuf pool, which will allow the application to optionally specify the mempool ops name as well. Signed-off-by: Hemant Agrawal --- lib/librte_mbuf/rte_mbuf.c | 23 ++-- lib/librte_mbuf/rte_mbuf.h | 42 ++

[dpdk-dev] [PATCH v2 3/5] mbuf: support register mempool Hw ops name APIs

2018-01-14 Thread Hemant Agrawal
With this patch the specific HW mempool are no longer required to be specified in the config file at compile. A default platform hw mempool can be detected dynamically and published to config at run time. Only one type of HW mempool can be active default. Signed-off-by: Hemant Agrawal --- lib/li

[dpdk-dev] [PATCH v2 2/5] eal: add platform mempool ops name in internal config

2018-01-14 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- lib/librte_eal/common/eal_common_options.c | 1 + lib/librte_eal/common/eal_internal_cfg.h | 2 ++ lib/librte_eal/rte_eal_version.map | 1 + 3 files changed, 4 insertions(+) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/comm

Re: [dpdk-dev] [PATCH] test/memzone: Fix test_memzone_basic & test_memzone_free issues.

2018-01-14 Thread Phil Yang
Hi Anatoly, Thanks for your comments. Updated. Please review the version 2. Thanks, Phil Yang > -Original Message- > From: Burakov, Anatoly [mailto:anatoly.bura...@intel.com] > Sent: Saturday, January 13, 2018 1:44 AM > To: Phil Yang ; dev@dpdk.org > Cc: nd ; Jianbo Liu ; Herbert Guan >

[dpdk-dev] [PATCH v2 0/2] Fix memzone autotest issues

2018-01-14 Thread Phil Yang
This series of patches are the fix for memzone autotest. RTE>>memzone_autotest test basic memzone API Zone 0: name:, IO:0x177ffe9e00, len:0x80 virt:0x7ffe9e00, socket_id:0, flags:0 Zone 1: name:, IO:0x177ffe9980, len:0x400 virt:0x7ffe9980, socket_id:0, flags:0 Zone 2: name:, IO:0x177ffe950

[dpdk-dev] [PATCH v2 1/2] test/memzone: Fix test_memzone_basic issue

2018-01-14 Thread Phil Yang
No need to free a NULL memzone. It will cause test termination. Signed-off-by: Phil Yang --- test/test/test_memzone.c | 4 1 file changed, 4 deletions(-) diff --git a/test/test/test_memzone.c b/test/test/test_memzone.c index 6e80977..9c20172 100644 --- a/test/test/test_memzone.c +++ b/test

[dpdk-dev] [PATCH v2 2/2] test/memzone: Fix test_memzone_free issue

2018-01-14 Thread Phil Yang
When reserving memzone for mz[], it will out of mz[RTE_MAX_MEMZONE] memory bound after the counter reached to RTE_MAX_MEMZONE. It will flush the counter's memory and lead to mz[] memory cannot be freed. Fixd by extend to mz[RTE_MAX_MEMZONE + 1]. Signed-off-by: Phil Yang --- test/test/test_memzo

[dpdk-dev] [PATCH 2/2] test/memzone: Fix test_memzone_free issue

2018-01-14 Thread Phil Yang
When reserving memzone for mz[], it will out of mz[RTE_MAX_MEMZONE] memory bound after the counter reached to RTE_MAX_MEMZONE. It will flush the counter's memory and lead to mz[] memory cannot be freed. Fixd by extend to mz[RTE_MAX_MEMZONE + 1]. Signed-off-by: Phil Yang --- test/test/test_memzo

[dpdk-dev] [PATCH 0/2] Fix memzone autotest issues

2018-01-14 Thread Phil Yang
This series of patches are the fix for memzone autotest. RTE>>memzone_autotest test basic memzone API Zone 0: name:, IO:0x177ffe9e00, len:0x80, virt:0x7ffe9e00, socket_id:0, flags:0 Zone 1: name:, IO:0x177ffe9980, len:0x400, virt:0x7ffe9980, socket_id:0, flags:0 Zone 2: name:, IO:0x177ffe9

[dpdk-dev] [PATCH 1/2] test/memzone: Fix test_memzone_basic issue

2018-01-14 Thread Phil Yang
No need to free a NULL memzone. It will cause test termination. Signed-off-by: Phil Yang --- test/test/test_memzone.c | 4 1 file changed, 4 deletions(-) diff --git a/test/test/test_memzone.c b/test/test/test_memzone.c index 6e80977..9c20172 100644 --- a/test/test/test_memzone.c +++ b/test

Re: [dpdk-dev] [PATCH v1 0/5] Introduce generic 'rawdevice' support

2018-01-14 Thread Shreyansh Jain
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Monday, January 15, 2018 4:31 AM > To: Shreyansh Jain > Cc: dev@dpdk.org; Hemant Agrawal ; > fiona.tr...@intel.com; rosen...@intel.com > Subject: Re: [dpdk-dev] [PATCH v1 0/5] Introduce generic 'r

[dpdk-dev] [PATCH v2 1/2] vfio: expose clear group function for internal usages

2018-01-14 Thread Hemant Agrawal
other vfio based module e.g. fslmc will also need to use the clear_group call. So, exposing it and renaming it to *rte_vfio_clear_group* Signed-off-by: Hemant Agrawal Acked-by: Anatoly Burakov --- lib/librte_eal/bsdapp/eal/eal.c| 5 + lib/librte_eal/common/include/rte_vfio.

[dpdk-dev] [PATCH v2 2/2] bus/fslmc: clear the vfio group on error

2018-01-14 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index fb2f403..12b254a 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -634,

Re: [dpdk-dev] [PATCH v3 1/6] net/ixgbevf: unregister irq handler when other interrupts not allowed.

2018-01-14 Thread Dai, Wei
> -Original Message- > From: xiangxia.m@gmail.com [mailto:xiangxia.m@gmail.com] > Sent: Sunday, January 14, 2018 6:04 PM > To: Dai, Wei ; Xing, Beilei > Cc: dev@dpdk.org; Tonghao Zhang > Subject: [PATCH v3 1/6] net/ixgbevf: unregister irq handler when other > interrupts not allowe

[dpdk-dev] [PATCH] vhost: do deep copy while reallocate vq

2018-01-14 Thread Junjie Chen
When vhost reallocate dev and vq for NUMA enabled case, it doesn't perform deep copy, which lead to 1) zmbuf list not valid 2) remote memory access. This patch is to re-initlize the zmbuf list and also do the deep copy. Signed-off-by: Junjie Chen --- lib/librte_vhost/vhost_user.c | 31 ++

Re: [dpdk-dev] [PATCH v4 11/11] app/testpmd: enable fast free Tx offload by default

2018-01-14 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Wednesday, January 10, 2018 5:09 PM > To: Wu, Jingjing ; tho...@monjalon.net; Yigit, > Ferruh > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v4 11/11] app/testpmd: enable fast free Tx >

Re: [dpdk-dev] [PATCH v4 10/11] app/testpmd: adjust on the flight VLAN configuration

2018-01-14 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Wednesday, January 10, 2018 5:09 PM > To: Wu, Jingjing ; tho...@monjalon.net; Yigit, > Ferruh > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v4 10/11] app/testpmd: adjust on the flight V

Re: [dpdk-dev] [PATCH v4 07/11] app/testpmd: add command line option for Tx offloads

2018-01-14 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Wednesday, January 10, 2018 5:09 PM > To: Wu, Jingjing ; tho...@monjalon.net; Yigit, > Ferruh > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v4 07/11] app/testpmd: add command line > op

[dpdk-dev] ??????RE: ??????RE: ??????RE: Thread safety in rte_acl

2018-01-14 Thread ????????
Thanks for providing idea to me! I will refer to that. I have another way feeling that it should works too. switchover active and standby pointer on forward plane, rather than on control plane. when update ctx in control plane(add rule, build on standby, meanwhile add rule on active not build)

[dpdk-dev] [RFC] ether: support deferred queue setup

2018-01-14 Thread Qi Zhang
According to exist implementation, rte_eth_[rx|tx]_queue_setup will always return fail if device is already started(rte_eth_dev_start). This can't satisfied the usage when application want to deferred setup part of the queues while keep traffic running on those queues already be setup. example: r

Re: [dpdk-dev] [PATCH 1/3] app/testpmd: Moved cmdline_flow to librte_cmdline

2018-01-14 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Georgios Katsikas > Sent: Saturday, January 13, 2018 5:01 AM > To: olivier.m...@6wind.com > Cc: dev@dpdk.org; Georgios Katsikas > Subject: [dpdk-dev] [PATCH 1/3] app/testpmd: Moved cmdline_flow to > librte_cmd

Re: [dpdk-dev] [PATCH] net/e1000: add minimum support for Broadcom 54616 PHY

2018-01-14 Thread Lu, Wenzhuo
Hi Chas, 1, Would you like to use this CLI “lspci -nn | grep Eth” to get the device ID of the NIC? 2, You mentioned “the doc of the platform”. Is it public? If so, could you tell me the link? Just want to understand more about it. Thanks. Best regards Wenzhuo Lu From: Chas Williams [mailto:3c

Re: [dpdk-dev] [PATCH v4] app/testpmd: add option ring-bind-lcpu to bind Q with CPU

2018-01-14 Thread Thomas Monjalon
10/01/2018 08:59, wei.guo.si...@gmail.com: > This patch adds a new option "--ring-bind-lcpu"(no parameter). With > this, testpmd can utilize the PCI-e bus bandwidth on another NUMA > nodes. Waiting for a review. Please uese --in-reply-to when sending a new version of the patch, so we can track m

Re: [dpdk-dev] [PATCH V10 2/2] eal: add uevent pass and process function

2018-01-14 Thread Thomas Monjalon
11/01/2018 15:05, Jeff Guo: > +enum rte_dev_state { > + RTE_DEV_UNDEFINED, /**< unknown device state */ > + RTE_DEV_FAULT, /**< device fault or error */ > + RTE_DEV_PARSED, /**< device have been parsed on bus*/ > + RTE_DEV_PROBED, /**< devcie have been probed driver */ > +};

Re: [dpdk-dev] [PATCH V10 1/2] eal: add uevent monitor api and callback func

2018-01-14 Thread Thomas Monjalon
Hi, 11/01/2018 15:05, Jeff Guo: > +/* A genaral callback for all registerd devices */ Typos: genaral, registerd So the callback is only for registered devices? What about hotplugged devices? > +/** > + * It registers the callback for the specific event. Multiple > + * callbacks cal be registere

Re: [dpdk-dev] [PATCH v1 0/5] Introduce generic 'rawdevice' support

2018-01-14 Thread Thomas Monjalon
02/01/2018 13:57, Shreyansh Jain: > This patchset introduces rawdevices or generic device support in DPDK. This new library has no impact on the existing code, so it may be integrated later in 18.02-rc2. It will give you a bit more time for the last details.

Re: [dpdk-dev] [PATCH v1 5/5] test: support for rawdev testcases

2018-01-14 Thread Thomas Monjalon
02/01/2018 13:57, Shreyansh Jain: > Patch introduces rawdev unit testcase for validation against the > Skeleton rawdev dummy PMD implementation. > > Signed-off-by: Shreyansh Jain > --- > test/test/Makefile | 4 + > test/test/test_rawdev.c | 376 > +

Re: [dpdk-dev] [PATCH v1 4/5] config: enable compilation of rawdev skeleton driver

2018-01-14 Thread Thomas Monjalon
02/01/2018 13:57, Shreyansh Jain: > Signed-off-by: Shreyansh Jain > --- > config/common_base | 1 + > drivers/Makefile | 2 ++ > mk/rte.app.mk | 4 > 3 files changed, 7 insertions(+) Please merge it with the previous patch.

Re: [dpdk-dev] [PATCH v1 3/5] drivers/raw: introduce skeleton rawdev driver

2018-01-14 Thread Thomas Monjalon
02/01/2018 13:57, Shreyansh Jain: > +struct skeleton_firmware { > + struct skeleton_firmware_version_info firmware_version; > + /**< Device firmware information */ > + enum skeleton_firmware_state firmware_state; > + /**< Device state */ > +}; > + > +#define SKELETON_MAX_ATTRIBUTES

Re: [dpdk-dev] [PATCH v1 2/5] config: enable compilation of rawdev library

2018-01-14 Thread Thomas Monjalon
02/01/2018 13:57, Shreyansh Jain: > Add config option CONFIG_RTE_LIBRTE_RAWDEV for toggling rawdev > library support. This patch also enables compilation of the library. > > Signed-off-by: Shreyansh Jain > --- > config/common_base | 7 +++ > lib/Makefile | 3 +++ > mk/rte.app.mk |

Re: [dpdk-dev] [PATCH v1 1/5] rawdev: introduce raw device library support

2018-01-14 Thread Thomas Monjalon
02/01/2018 13:57, Shreyansh Jain: > --- /dev/null > +++ b/lib/librte_rawdev/rte_rawdev_version.map > @@ -0,0 +1,33 @@ > +EXPERIMENTAL { > + global: > + > + rte_rawdev_close; > + rte_rawdev_configure; > + rte_rawdev_count; > + rte_rawdev_dequeue_buffers; > + rte_r

Re: [dpdk-dev] [PATCH v1 1/5] rawdev: introduce raw device library support

2018-01-14 Thread Thomas Monjalon
Hi, 02/01/2018 13:57, Shreyansh Jain: > A device is DPDK has a flavor to it - ethernet, crypto, event etc. I don't understand this sentence. I guess it can be completely removed. > A rawdevice represents a generic device map-able to a device flavour > not being currently handled out-of-the-box b

Re: [dpdk-dev] [PATCH] eal/common: better likely() and unlikely()

2018-01-14 Thread Stephen Hemminger
On Sun, 14 Jan 2018 01:45:42 +0300 Aleksey Baulin wrote: > Please see my comments inline. > > On Sun, Jan 14, 2018 at 1:24 AM, Thomas Monjalon > wrote: > > > Hi, > > > > I moved your top-post below and did some comments inline. > > More opinions are welcome. > > > > 13/01/2018 23:05, Aleksey B

Re: [dpdk-dev] [PATCH v4 15/15] net/enic: use _rte_eth_linkstatus_set

2018-01-14 Thread Hyong Youb Kim
On Thu, Jan 11, 2018 at 05:06:58PM +, Ferruh Yigit wrote: > From: Stephen Hemminger > > This driver was not doing atomic update of link status information. > And the return value was different than others. > The hardware also does not do autonegotiation (at least on Linux). > > Signed-off-by

Re: [dpdk-dev] [PATCH v5] sched: make RED scaling configurable

2018-01-14 Thread Dewar, Alan
Hi Cristian, Responses inline below. Regards Alan > -Original Message- > From: Dumitrescu, Cristian [mailto:cristian.dumitre...@intel.com] > Sent: Thursday, January 11, 2018 1:11 PM > To: alangordonde...@gmail.com > Cc: dev@dpdk.org; Alan Dewar ; Kantecki, Tomasz > ; Singh, Jasvinder

Re: [dpdk-dev] [PATCH v5] sched: make RED scaling configurable

2018-01-14 Thread Dewar, Alan
Hi Cristian, > > + > > + rte_red_scaling -= count - RTE_RED_SCALING; > > Why not simply: rte_red_scaling = count? The RED code stores the moving average in a uint32_t as a pseudo floating point number with a fixed sized fractional part of 10 bits. This allows a maximum queue length of 1024.

Re: [dpdk-dev] [PATCHv4 5/5] doc: Add ABI __experimental tag documentation

2018-01-14 Thread Thomas Monjalon
14/01/2018 15:36, Neil Horman: > On Sat, Jan 13, 2018 at 04:56:11PM +0100, Thomas Monjalon wrote: > > 13/01/2018 01:28, Neil Horman: > > > On Fri, Jan 12, 2018 at 03:55:10PM +, Ferruh Yigit wrote: > > > > After this point agree to using EXPERIMENTAL tag in the version map as > > > > standard,

Re: [dpdk-dev] [PATCHv4 5/5] doc: Add ABI __experimental tag documentation

2018-01-14 Thread Neil Horman
On Sat, Jan 13, 2018 at 04:56:11PM +0100, Thomas Monjalon wrote: > 13/01/2018 01:28, Neil Horman: > > On Fri, Jan 12, 2018 at 03:55:10PM +, Ferruh Yigit wrote: > > > After this point agree to using EXPERIMENTAL tag in the version map as > > > standard, > > > but it will be hard to maintain "AP

[dpdk-dev] [PATCH v2 3/4] event/octeontx: add octeontx event device to meson build

2018-01-14 Thread Pavan Nikhilesh
Add Cavium octeontx to meson build and change order of drivers built from event->mempool->net to mempool->net->event to resolve dependency. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Add SPDX license tags - Modify driver build order similar to make build system. drivers/event/meson.bu

[dpdk-dev] [PATCH v2 2/4] drivers/net: add drivers for Cavium NICs to meson build

2018-01-14 Thread Pavan Nikhilesh
Add Cavium octeontx and thunder nicvf to meson build infrastructure. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Add SPDX license tags. drivers/net/meson.build | 3 ++- drivers/net/octeontx/base/meson.build | 21 + drivers/n

[dpdk-dev] [PATCH v2 4/4] app/test-eventdev: add test-eventdev to meson build

2018-01-14 Thread Pavan Nikhilesh
Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Add SPDX license tags. app/meson.build | 1 + app/test-eventdev/meson.build | 28 2 files changed, 29 insertions(+) create mode 100644 app/test-eventdev/meson.build diff --git a/app/meson.build b/ap

[dpdk-dev] [PATCH v2 1/4] drivers/mempool: add octeontx mempool driver to meson build

2018-01-14 Thread Pavan Nikhilesh
Add octeontx hardware mempool driver to meson build. Signed-off-by: Pavan Nikhilesh --- v2: - remove unneeded include variable. - include SPDX license tags drivers/mempool/meson.build | 2 +- drivers/mempool/octeontx/meson.build | 10 ++ 2 files changed, 11 insertions(+),

Re: [dpdk-dev] [PATCH 01/2] vfio: expose clear group function for internal usages

2018-01-14 Thread Hemant Agrawal
On 1/12/2018 10:06 PM, Thomas Monjalon wrote: 07/12/2017 11:28, Hemant Agrawal: other vfio based module e.g. fslmc will also need to use the clear_group call. So, exposing it and renaming it to *rte_vfio_clear_group* Signed-off-by: Hemant Agrawal --- --- a/lib/librte_eal/linuxapp/eal/eal_vfio.

[dpdk-dev] Minutes of tech-board meeting 2017-12-20

2018-01-14 Thread Hemant Agrawal
Date: 20 Dec 2017 Attendees: Bruce, Hemant, Konstantin, Olivier, Thomas, Yuanhan, Stephen Topic: Licensing progress * Discussion about the format of SPDX tag line. Should we choose "/*" or "//" as used by kernel? * We concluded to use "/*" for SPDX tag in first line. If any issue will c

Re: [dpdk-dev] [PATCH v3 01/39] examples/l2fwd: convert to new ethdev offloads API

2018-01-14 Thread Shahaf Shuler
Friday, January 12, 2018 3:31 PM, Ferruh Yigit: > On 12/26/2017 9:23 AM, Shahaf Shuler wrote: > > Ethdev offloads API has changed since: > > > > commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") commit > > cba7f53b717d ("ethdev: introduce Tx queue offloads API") > > > > This commit su

[dpdk-dev] [PATCH v3 4/6] net/ixgbe: write disable to ITR counter.

2018-01-14 Thread xiangxia . m . yue
From: Tonghao Zhang ixgbe doesn't write the ITR counter, disable it now. Signed-off-by: Tonghao Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 604ee6d..a4

[dpdk-dev] [PATCH v3 5/6] net/ixgbevf: save IXGBE_VTEIMS to intr->mask for performance.

2018-01-14 Thread xiangxia . m . yue
From: Tonghao Zhang If dpdk APPs call the rte_eth_dev_rx_intr_enable or rte_eth_dev_rx_intr_disable frequently, and ixgbe vf will read the IXGBE_VTEIMS register everytime. The patch saves the IXGBE_VTEIMS to mask to avoid read frequently. Signed-off-by: Tonghao Zhang Acked-by: Beilei Xing Acke

[dpdk-dev] [PATCH v3 6/6] net/ixgbe: remove the unnecessary call rte_intr_enable.

2018-01-14 Thread xiangxia . m . yue
From: Tonghao Zhang When binding the ixgbe pf or vf to vfio and call the rte_eth_dev_rx_intr_enable frequently, the interrupt setting (msi_set_mask_bit) will take more CPU as show below. rte_intr_enable calls the ioctl to map the fd to interrupts frequently. perf top: 5.45% [kernel] [k] msi_s

[dpdk-dev] [PATCH v3 3/6] net/ixgbe: set the ITR via configuration.

2018-01-14 Thread xiangxia . m . yue
From: Tonghao Zhang With this patch, the ITR value of ixgbe PF, can be configured as wanted. Signed-off-by: Tonghao Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 5 + drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/ixgbe/i

[dpdk-dev] [PATCH v3 1/6] net/ixgbevf: unregister irq handler when other interrupts not allowed.

2018-01-14 Thread xiangxia . m . yue
From: Tonghao Zhang When bind the ixgbe VF (e.g 82599 card) to igb_uio and enable the rx-interrupt, there will be more than one epoll_wait on intr_handle.fd. One is in "eal-intr-thread" thread, and the others are in the thread which call the "rte_epoll_wait". The problem is that sometimes "eal-in

[dpdk-dev] [PATCH v3 2/6] net/ixgbevf: set the inter-interrupt interval for EITR.

2018-01-14 Thread xiangxia . m . yue
From: Tonghao Zhang Set EITR interval as default. This patch can improve the performance when we enable the rx-intrrupt to process the packets because we hope rx-intrrupt reduce CPU. For example, the 200us value of EITR makes the performance better with the low CPU. Users can configure the value

[dpdk-dev] [PATCH v2] app/testpmd: add eth peer CLI command

2018-01-14 Thread Wisam Jaddo
This command will simulate the process of setting the eth-peer from command line. It will be useful to preform extra testing. usage: testpmd> set eth-peer . Signed-off-by: Wisam Jaddo Acked-by: Wenzhuo Lu --- changes in v2: added Ack from Wenzhuo, and sending to ML again due