[dpdk-dev] [PATCH v2 1/8] eal: define container_of macro

2016-11-22 Thread Jan Viktorin
macro is based on Jan Viktorin's original patch but also checks the > > > > type of the passed pointer against the type of the member. > > > > > > > > Signed-off-by: Jan Viktorin > > > > Signed-off-by: Shreyansh Jain > > > > [jblunck a

[dpdk-dev] [PATCH v2 1/2] arch/arm: fix file descriptor leakage when getting CPU features

2016-11-04 Thread Jan Viktorin
On Fri, 4 Nov 2016 15:16:42 +0530 Jianbo Liu wrote: > close the file descriptor after finish using it. s/close/Close/ > > Fixes: b94e5c94 (eal/arm: add CPU flags for ARMv7) > Fixes: 97523f82 (eal/arm: add CPU flags for ARMv8) > > Signed-off-by: Jianbo Liu Acked-by: Jan Viktorin

[dpdk-dev] [PATCH v2 2/2] arch/ppc: fix file descriptor leakage when getting CPU features

2016-11-04 Thread Jan Viktorin
On Fri, 4 Nov 2016 15:16:43 +0530 Jianbo Liu wrote: > close the file descriptor after finish using it. s/close/Close/ Please include my ack (below). Jan > > Fixes: 9ae15538 (eal/ppc: cpu flag checks for IBM Power) > > Signed-off-by: Jianbo Liu Acked-by: Jan Viktorin

[dpdk-dev] [PATCH v5 06/21] eal/soc: introduce very essential SoC infra definitions

2016-10-24 Thread Jan Viktorin
On Mon, 24 Oct 2016 17:29:25 +0530 Shreyansh Jain wrote: > From: Jan Viktorin > > Define initial structures and functions for the SoC infrastructure. > This patch supports only a very minimal functions for now. > More features will be added in the following commits. > >

[dpdk-dev] [PATCH v5 01/21] eal: generalize PCI kernel driver enum to EAL

2016-10-24 Thread Jan Viktorin
On Mon, 24 Oct 2016 17:29:20 +0530 Shreyansh Jain wrote: > From: Jan Viktorin > > Signed-off-by: Jan Viktorin > Signed-off-by: Shreyansh Jain I think, there is no reason to prevent merging this. Feel free to add: Acked-by: Jan Viktorin

[dpdk-dev] [PATCH v4 11/17] eal/soc: add default scan for Soc devices

2016-10-24 Thread Jan Viktorin
_INSERT_TAIL(_driver_list, driver, next); > >> } > > > > I am not in favor of a forced default. What if user never intended it - it > > would lead to wrong scan being used and only intimation which can provided > > to user is a log. > > Selecting such funct

[dpdk-dev] [PATCH v4 11/17] eal/soc: add default scan for Soc devices

2016-10-16 Thread Jan Viktorin
On Sat, 15 Oct 2016 19:15:02 +0530 Shreyansh Jain wrote: > From: Jan Viktorin > > Default implementation which scans the sysfs platform devices hierarchy. > For each device, extract the ueven and convert into rte_soc_device. > > The information populated can then be used

[dpdk-dev] [PATCH] doc: arm64: document DPDK application profiling methods

2016-10-04 Thread Jan Viktorin
> +This method can not be used in production systems as this may alter PMU > > +state used by standard Linux user space tool like perf. > > More details please? > -- Jan Viktorin E-mail: Viktorin at RehiveTech.com System Architect Web:www.RehiveTech.com RehiveTech Brno, Czech Republic

[dpdk-dev] [PATCH v1 0/4] Generalize PCI specific EAL function/structures

2016-10-03 Thread Jan Viktorin
bly you are talking about (Patch 3/4 and 4/4). > Is my understanding correct? > > So, movement to just Linux area is not enough? > I am not well versed with BSD way of doing something similar so if > someone can point it out, I can integrate that. (I will investigate it > at my end as

[dpdk-dev] [PATCH v3 00/15] Introduce SoC device/driver framework for EAL

2016-09-18 Thread Jan Viktorin
On Sun, 18 Sep 2016 09:41:55 + Hemant Agrawal wrote: > > -Original Message- > > From: Jan Viktorin [mailto:viktorin at rehivetech.com] > [...] > > > And for each platform/product > > > > > > > I agree, that this can

[dpdk-dev] [PATCH v3 00/15] Introduce SoC device/driver framework for EAL

2016-09-18 Thread Jan Viktorin
On Sun, 18 Sep 2016 16:56:54 +0800 Jianbo Liu wrote: > On 18 September 2016 at 15:22, Jan Viktorin > wrote: > > On Sun, 18 Sep 2016 13:58:50 +0800 > > Jianbo Liu wrote: > > > >> On 9 September 2016 at 16:43, Shreyansh Jain

[dpdk-dev] [PATCH v3 00/15] Introduce SoC device/driver framework for EAL

2016-09-18 Thread Jan Viktorin
erwise, such system would introduce security issues. > > I think it can be done in devinit, not in scan function. devinit can > be different for each driver. +1 > > >= PCI based PMDs rely on EAL's capability to detect devices. This > >proposal puts the on

[dpdk-dev] [PATCH v3 06/15] eal/soc: implement probing of drivers

2016-09-16 Thread Jan Viktorin
al_soc_probe(). > > Patch also adds test case for scan and probe. > > Signed-off-by: Jan Viktorin > Signed-off-by: Shreyansh Jain > Signed-off-by: Hemant Agrawal > --- > app/test/test_soc.c | 138 ++- > lib/librte_eal/bsdapp/e

[dpdk-dev] [PATCH v10 05/25] crypto: no need for a crypto pmd type

2016-09-16 Thread Jan Viktorin
On Fri, 16 Sep 2016 09:59:40 +0530 Shreyansh Jain wrote: > From: David Marchand > > This information is not used and just adds noise. > > Signed-off-by: David Marchand > Signed-off-by: Shreyansh Jain Reviewed-by: Jan Viktorin

[dpdk-dev] [PATCH v10 02/25] eal: remove duplicate function declaration

2016-09-16 Thread Jan Viktorin
5177 ("eal: make vdev init path generic for both virtual and > pci devices") > > Signed-off-by: David Marchand > Signed-off-by: Shreyansh Jain Reviewed-by: Jan Viktorin

[dpdk-dev] [PATCH v3 04/15] eal: introduce --no-soc option

2016-09-16 Thread Jan Viktorin
2016 14:13:48 +0530 Shreyansh Jain wrote: > This option has the same meaning for the SoC infra as the --no-pci > for the PCI infra. > > Signed-off-by: Jan Viktorin > Signed-off-by: Shreyansh Jain > Signed-off-by: Hemant Agrawal > --- > lib/librte_eal/common/

[dpdk-dev] [PATCH v3 02/15] eal/soc: add rte_eal_soc_register/unregister logic

2016-09-15 Thread Jan Viktorin
On Thu, 15 Sep 2016 14:00:25 +0100 "Hunt, David" wrote: > > new file mode 100644 > > index 000..56135ed > > --- /dev/null > > +++ b/lib/librte_eal/common/eal_common_soc.c > > @@ -0,0 +1,56 @@ > > +/*- > > + * BSD LICENSE > > + * > > + * Copyright(c) 2016 RehiveTech. All rights reserved.

[dpdk-dev] [PATCH v8 00/25] Introducing rte_driver/rte_device generalization

2016-09-01 Thread Jan Viktorin
ff2) > > Background: > === > > It includes two different patch-sets floated on ML earlier: > * Original patch series is from David Marchand [1], [2]. > `- This focused mainly on PCI (PDEV) part > `- v7 of this was posted by me [8] in August/2016 > * Patc

[dpdk-dev] [PATCH] eal/armv8: high-resolution cycle counter

2016-08-19 Thread Jan Viktorin
he cycle count register is not > > disabled (PMCNTENCLR_EL0). It shall be better to disable the cycle count > > register too at module exit. > > OK +1 I've got a private kernel driver enabling and disabling (hopefully) properly this for ARMv7. If we'd like to merge it, I'd like to have a single module or at least single module with 2 implementations... I can post it if it would be helpful. Regards Jan > > > > > > + * > > > + */ > > > +static inline uint64_t > > > +rte_rdtsc(void) > > > +{ > > > + uint64_t tsc; > > > + > > > + asm volatile("mrs %0, pmccntr_el0" : "=r"(tsc)); > > > + return tsc; > > > +} > > > +#endif > > > > > > static inline uint64_t > > > rte_rdtsc_precise(void) > > > -- > > > 2.5.5 > > > > Do you also plan to support performance monitor event counters? > > No. This patch was inspired by armv7 PMU scheme and its part of DPDK. > The sole reason to add this support to catch any performance regression > through app/test application.Other than that, I think cntvct_el0 based > existing scheme is good enough for all the use cases. > > > > > Regards, > > Nipun > > -- Jan Viktorin E-mail: Viktorin at RehiveTech.com System Architect Web:www.RehiveTech.com RehiveTech Brno, Czech Republic

[dpdk-dev] DPDK support for on system bus connected embedded MAC

2016-08-06 Thread Jan Viktorin
me support which will help a lot for my > > development . > > Please check the work of Jan Viktorin: > http://dpdk.org/dev/patchwork/project/dpdk/list/?submitter=292=* > Some review would be welcome :) Thanks The patchset has very low number of reviews. If you

[dpdk-dev] test: failed to clone dpdk source in windows

2016-08-06 Thread Jan Viktorin
ure to understand the use case. > > This is a fake sysfs, we cannot change the names. > > In other words, Windows is not supported, neither for runtime > nor for development. > For information, which filesystem do not support ':'? > > If someone wants to add this supp

[dpdk-dev] [PATCH v7 00/17] Prepare for rte_device / rte_driver

2016-08-01 Thread Jan Viktorin
Thank you. Hope to find some time this week to do my part. Jan On Mon, 1 Aug 2016 16:15:15 +0530 Shreyansh Jain wrote: > * Original patch series is from David Marchand [1], [2]. > * Link with patch series [4] from Jan Viktorin for a more complete picture > of proposed EAL device

[dpdk-dev] [PATCH v6 05/17] eal: introduce init macros

2016-07-30 Thread Jan Viktorin
On Thu, 28 Jul 2016 15:06:10 +0530 Shreyansh Jain wrote: > Hi Jan, > > On Friday 15 July 2016 04:18 PM, Shreyansh jain wrote: > > On Thursday 14 July 2016 09:27 PM, Jan Viktorin wrote: [...] > >>>>> (drv).name = RTE_STR(nm); > >>&g

[dpdk-dev] doc: announce ivshmem support removal

2016-07-27 Thread Jan Viktorin
K objects (ring/mempool) allocated by EAL > > As nobody seems interested, it is time to remove this code which > makes EAL improvements harder. > > Signed-off-by: Thomas Monjalon > Acked-by: David Marchand > Acked-by: Maxime Coquelin Acked-by: Jan Viktorin

[dpdk-dev] doc: deprecate vhost-cuse

2016-07-27 Thread Jan Viktorin
will be > removed in the next release (v16.11). > > Signed-off-by: Yuanhan Liu > Acked-by: Ciara Loftus > Acked-by: Thomas Monjalon > Acked-by: Rich Lane Acked-by: Jan Viktorin

[dpdk-dev] doc: announce renaming of ethdev library

2016-07-27 Thread Jan Viktorin
ibrary filename as every other libraries. > > Signed-off-by: Thomas Monjalon > Acked-by: Jan Viktorin

[dpdk-dev] [PATCH v1 00/15] rte_driver/device infrastructure

2016-07-15 Thread Jan Viktorin
On Fri, 15 Jul 2016 15:19:14 +0200 Thomas Monjalon wrote: > 2016-07-08 21:09, Jan Viktorin: > > Hello, > > > > based on the discussions with Shreyansh, I propose a patchset with > > the important EAL changes. It is incomplete and I suppose to extend &g

[dpdk-dev] [PATCH v6 12/17] pci: add a helper for device name

2016-07-15 Thread Jan Viktorin
On Fri, 15 Jul 2016 11:56:38 +0200 Thomas Monjalon wrote: > 2016-07-15 15:09, Shreyansh jain: > > On Thursday 14 July 2016 10:25 PM, Jan Viktorin wrote: > > > What is meant by "resources" here? > > > > This has historic context (from earlier version

[dpdk-dev] [PATCH v6 16/17] ethdev: convert to eal hotplug

2016-07-15 Thread Jan Viktorin
On Fri, 15 Jul 2016 16:06:25 +0530 Shreyansh jain wrote: > On Thursday 14 July 2016 10:21 PM, Jan Viktorin wrote: > > On Tue, 12 Jul 2016 11:31:21 +0530 > > Shreyansh Jain wrote: > > > >> Remove bus logic from ethdev hotplug by using eal for this. >

[dpdk-dev] [PATCH v6 12/17] pci: add a helper for device name

2016-07-15 Thread Jan Viktorin
On Fri, 15 Jul 2016 15:09:58 +0530 Shreyansh jain wrote: > On Thursday 14 July 2016 10:25 PM, Jan Viktorin wrote: > > On Tue, 12 Jul 2016 11:31:17 +0530 > > Shreyansh Jain wrote: > > > >> eal is a better place than crypto / ethdev for naming resources.

[dpdk-dev] spinlock: Move constructor function out of header file

2016-07-14 Thread Jan Viktorin
Hello Damjan, thank you for the patch. It makes sense to me. Next time, please CC the appropriate maintainers. (See the MAINTAINERS file in the root of the DPDK source tree.) In the subject after "spinlock:" you should start with a lower case letter, so "move constructor..." On Thu, 14 Jul

[dpdk-dev] [PATCH v6 13/17] pci: add a helper to update a device

2016-07-14 Thread Jan Viktorin
@ -417,6 +417,19 @@ pci_scan_one(const char *dirname, uint16_t domain, > uint8_t bus, > return 0; > } > > +int > +pci_update_device(const struct rte_pci_addr *addr) > +{ > + char filename[PATH_MAX]; > + > + snprintf(filename, sizeof(filename), "%s/" PCI_PRI_FMT, > + SYSFS_PCI_DEVICES, addr->domain, addr->bus, addr->devid, Use pci_get_sysfs_path here. > + addr->function); > + > + return pci_scan_one(filename, addr->domain, addr->bus, addr->devid, > + addr->function); > +} > + > /* > * split up a pci address into its constituent parts. > */ -- Jan ViktorinE-mail: Viktorin at RehiveTech.com System ArchitectWeb:www.RehiveTech.com RehiveTech Brno, Czech Republic

[dpdk-dev] [PATCH v6 12/17] pci: add a helper for device name

2016-07-14 Thread Jan Viktorin
On Tue, 12 Jul 2016 11:31:17 +0530 Shreyansh Jain wrote: > eal is a better place than crypto / ethdev for naming resources. s/for naming/to name/ What is meant by "resources" here? > Add a helper in eal and make use of it in crypto / ethdev. > > Signed-off-by: David Marchand >

[dpdk-dev] [PATCH v6 16/17] ethdev: convert to eal hotplug

2016-07-14 Thread Jan Viktorin
On Tue, 12 Jul 2016 11:31:21 +0530 Shreyansh Jain wrote: > Remove bus logic from ethdev hotplug by using eal for this. > > Current api is preserved: > - the last port that has been created is tracked to return it to the > application when attaching, > - the internal device name is reused when

[dpdk-dev] [PATCH v6 15/17] eal: add hotplug operations for pci and vdev

2016-07-14 Thread Jan Viktorin
On Tue, 12 Jul 2016 11:31:20 +0530 Shreyansh Jain wrote: > Hotplug which deals with resources should come from the layer that already > handles them, i.e. EAL. > > For both attach and detach operations, 'name' is used to select the bus > that will handle the request. > > Signed-off-by: David

[dpdk-dev] [PATCH v6 17/17] ethdev: get rid of device type

2016-07-14 Thread Jan Viktorin
On Tue, 12 Jul 2016 11:31:22 +0530 Shreyansh Jain wrote: > Now that hotplug has been moved to eal, there is no reason to keep the device > type in this layer. > > Signed-off-by: David Marchand > Signed-off-by: Shreyansh Jain > --- > app/test/virtual_pmd.c| 2 +- >

[dpdk-dev] [PATCH v6 05/17] eal: introduce init macros

2016-07-14 Thread Jan Viktorin
On Thu, 14 Jul 2016 10:57:55 +0530 Shreyansh jain wrote: > Hi Jan, > > On Wednesday 13 July 2016 11:04 PM, Jan Viktorin wrote: > > On Wed, 13 Jul 2016 11:20:43 +0200 > > Jan Viktorin wrote: > > > >> Hello Shreyansh, > >> > >> On Tue,

[dpdk-dev] [PATCH] virtio: fix missing curly braces

2016-07-13 Thread Jan Viktorin
On Wed, 13 Jul 2016 11:27:18 +0200 Maxime Coquelin wrote: > Hi Jan, > > On 07/13/2016 11:24 AM, Jan Viktorin wrote: > > GCC 6 is complaining and seems to be correct here. > > > > virtio_user_ethdev.c:345:2: error: > > this ?if? clause does not guard..

[dpdk-dev] [PATCH] virtio: fix missing curly braces

2016-07-13 Thread Jan Viktorin
On Wed, 13 Jul 2016 11:27:18 +0200 Maxime Coquelin wrote: > Hi Jan, > > On 07/13/2016 11:24 AM, Jan Viktorin wrote: > > GCC 6 is complaining and seems to be correct here. > > > > virtio_user_ethdev.c:345:2: error: > > this ?if? clause does not guard..

[dpdk-dev] [PATCH v6 05/17] eal: introduce init macros

2016-07-13 Thread Jan Viktorin
On Wed, 13 Jul 2016 11:20:43 +0200 Jan Viktorin wrote: > Hello Shreyansh, > > On Tue, 12 Jul 2016 11:31:10 +0530 > Shreyansh Jain wrote: > > > Introduce a RTE_INIT macro used to mark an init function as a constructor. > > Current eal macros have been converted

[dpdk-dev] [PATCH] virtio: fix missing curly braces

2016-07-13 Thread Jan Viktorin
, but the latter is misleadingly indented as if it is guarded by the ?if? if (ret < 0) { Fixes: 404bd6bfe360 ("net/virtio-user: fix return value not checked") Signed-off-by: Jan Viktorin --- drivers/net/virtio/virtio_user_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 delet

[dpdk-dev] [PATCH v6 05/17] eal: introduce init macros

2016-07-13 Thread Jan Viktorin
i drivers. > > Suggested-by: Jan Viktorin > Signed-off-by: David Marchand > Signed-off-by: Shreyansh Jain > --- [...] > +#define RTE_INIT(func) \ > +static void __attribute__((constructor, used)) func(void) > + > #ifdef __cplusplus > } > #endif > diff --git a/lib

[dpdk-dev] [PATCH v1 28/28] ether: support SoC device/driver

2016-07-12 Thread Jan Viktorin
On Tue, 12 Jul 2016 14:15:17 +0530 Shreyansh jain wrote: > Hi Jan, > > On Monday 04 July 2016 08:06 PM, Jan Viktorin wrote: > > On Mon, 4 Jul 2016 19:57:18 +0530 > > Shreyansh jain wrote: > > > > [...] > > > >>>>> @@ -1431,

[dpdk-dev] [PATCH v1 01/15] eal: extract vdev infra

2016-07-11 Thread Jan Viktorin
On Mon, 11 Jul 2016 18:59:48 +0530 Shreyansh jain wrote: > Hi Jan, > > Some comments. > > On Saturday 09 July 2016 12:39 AM, Jan Viktorin wrote: > > Move all PMD_VDEV-specific code into a separate module and header > > file to not polute the generic code a

[dpdk-dev] [PATCH v1 15/15] eal/pci: insert rte_device on scan

2016-07-08 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c index 6f1a28a..ab08a16 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci.c +++ b/lib

[dpdk-dev] [PATCH v1 14/15] eal/pci: inherit rte_device by rte_pci_device

2016-07-08 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- app/test/virtual_pmd.c | 4 ++-- drivers/net/fm10k/fm10k_ethdev.c| 6 +++--- drivers/net/virtio/virtio_pci.c | 2 +- lib/librte_cryptodev/rte_cryptodev.c| 2 +- lib/librte_eal/common/eal_common_pci.c | 14

[dpdk-dev] [PATCH v1 13/15] eal: introduce rte_device

2016-07-08 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- lib/librte_eal/common/eal_common_dev.c | 13 + lib/librte_eal/common/include/rte_dev.h | 31 +++ 2 files changed, 44 insertions(+) diff --git a/lib/librte_eal/common/eal_common_dev.c b/lib/librte_eal/common

[dpdk-dev] [PATCH v1 12/15] eal: call rte_eal_driver_register

2016-07-08 Thread Jan Viktorin
To register both vdev and pci drivers into the list of all rte_driver, we have to call rte_eal_driver_register explicitly. Signed-off-by: Jan Viktorin --- lib/librte_eal/common/eal_common_pci.c | 2 ++ lib/librte_eal/common/eal_common_vdev.c | 2 ++ 2 files changed, 4 insertions(+) diff --git

[dpdk-dev] [PATCH v1 11/15] eal/pci: inherit rte_driver by rte_pci_driver

2016-07-08 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- app/test/test_pci.c | 10 +++--- app/test/virtual_pmd.c | 2 +- drivers/crypto/qat/rte_qat_cryptodev.c | 4 +++- drivers/net/bnx2x/bnx2x_ethdev.c| 8 ++-- drivers/net/cxgbe/cxgbe_ethdev.c| 4

[dpdk-dev] [PATCH v1 10/15] eal: rename and move rte_pci_resource

2016-07-08 Thread Jan Viktorin
There is no need to have a custom memory resource representation for each infrastructure (PCI, ...) as it would always have the same members. Signed-off-by: Jan Viktorin --- drivers/net/szedata2/rte_eth_szedata2.c | 4 ++-- lib/librte_eal/common/include/rte_dev.h | 9 + lib

[dpdk-dev] [PATCH v1 08/15] eal: define macro container_of

2016-07-08 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- lib/librte_eal/common/include/rte_common.h | 16 1 file changed, 16 insertions(+) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index 332f2a4..a9b6792 100644 --- a/lib/librte_eal/common

[dpdk-dev] [PATCH v1 07/15] eal: get rid of pmd_type

2016-07-08 Thread Jan Viktorin
There is no need to determine a PMD type any more. The PMD_VDEV devices has its own list of drivers. And all PMD_PDEV are PCI devices using a different way of registering themselfs. Signed-off-by: Jan Viktorin --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 1 - drivers/crypto/aesni_mb

[dpdk-dev] [PATCH v1 04/15] drivers: convert PMD_VDEV drivers to use rte_vdev_driver

2016-07-08 Thread Jan Viktorin
All PMD_VDEV drivers can now use rte_vdev_driver instead of the rte_driver (which is embedded in the rte_vdev_driver). Signed-off-by: Jan Viktorin --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 16 +--- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 16 +--- drivers

[dpdk-dev] [PATCH v1 03/15] eal: do not call init for PMD_PDEV drivers

2016-07-08 Thread Jan Viktorin
There is no way how to call an init on a PMD_PDEV driver as those drivers are all PCI drivers and they do not register any rte_driver with EAL. We can drop the loop over PMD_PDEV drivers entirely. Signed-off-by: Jan Viktorin --- lib/librte_eal/common/eal_common_dev.c | 8 1 file

[dpdk-dev] [PATCH v1 02/15] eal: no need to test for PMD_VDEV anymore

2016-07-08 Thread Jan Viktorin
All devices in the rte_eal_vdev_init/uninit are always virtual devices. Signed-off-by: Jan Viktorin --- lib/librte_eal/common/eal_common_vdev.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c index

[dpdk-dev] [PATCH v1 00/15] rte_driver/device infrastructure

2016-07-08 Thread Jan Viktorin
00/17] Prepare for rte_device / rte_driver Thanks anybody for some quick review and notes. Regards Jan -- Jan Viktorin (15): eal: extract vdev infra eal: no need to test for PMD_VDEV anymore eal: do not call init for PMD_PDEV drivers drivers: convert PMD_VDEV drivers to use

[dpdk-dev] [PATCH v2 00/11] Fix build errors related to exported headers

2016-07-05 Thread Jan Viktorin
Hi Adrien, I am the only one in CC and only in the 00/11 patch. Is it a mistake? Or what is the purpose? Regards? Jan?Viktorin RehiveTech Sent?from?a?mobile?device ? P?vodn? zpr?va ? Od: Adrien Mazarguil Odesl?no: ?ter?, 5. ?ervence 2016 12:45 Komu: dev at dpdk.org Kopie: Jan Viktorin P?edm?t

[dpdk-dev] [PATCH v1 28/28] ether: support SoC device/driver

2016-07-05 Thread Jan Viktorin
Hello Shreyansh, ? > On Monday 04 July 2016 08:06 PM, Jan Viktorin wrote: >> On Mon, 4 Jul 2016 19:57:18 +0530 >> Shreyansh jain wrote: >> >> [...] >> >>>>>> @@ -1431,7 +1524,7 @@ >rte_eth_dev_info_get(uint8

[dpdk-dev] [PATCH v3 16/16] vfio: change VFIO init to be extendable

2016-07-04 Thread Jan Viktorin
We can now just OR the vfio_enabled sequentially and so adding new VFIO subsystems (vfio_platform) is possible. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b

[dpdk-dev] [PATCH v3 15/16] vfio: initialize vfio out of the PCI subsystem

2016-07-04 Thread Jan Viktorin
The VFIO does not depend on the PCI anymore so it can be initialized out of the PCI subsystem. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal.c | 31 ++ lib/librte_eal/linuxapp/eal/eal_pci.c | 17 +--- lib/librte_eal

[dpdk-dev] [PATCH v3 14/16] vfio: rename and generalize eal_pci_vfio_mp_sync

2016-07-04 Thread Jan Viktorin
The module eal_pci_vfio_mp_sync is quite generic so it shouldn't contain the "pci" string in its name. The internal functions don't need the pci_* prefix. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/Makefile | 4 ++-- lib/librte_eal/li

[dpdk-dev] [PATCH v3 13/16] vfio: make vfio_*_dma_map and iommu_types private

2016-07-04 Thread Jan Viktorin
There is no more reason to expose those definitions as nobody uses them. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_vfio.c | 15 +-- lib/librte_eal/linuxapp/eal/eal_vfio.h | 11 --- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib

[dpdk-dev] [PATCH v3 12/16] vfio: fix typo in doc for vfio_setup_device

2016-07-04 Thread Jan Viktorin
Signed-off-by: Jan Viktorin Suggested-by: Anatoly Burakov Acked-by: John McNamara --- lib/librte_eal/linuxapp/eal/eal_vfio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.h b/lib/librte_eal/linuxapp/eal/eal_vfio.h index d4532a5

[dpdk-dev] [PATCH v3 11/16] vfio: move global vfio_cfg to eal_vfio.c

2016-07-04 Thread Jan Viktorin
- pci_* specialization preserved as a wrapper * clear_current_group - private function, just moved To stop GCC complaining about "defined but not used", the private function pci_vfio_get_group_no has been removed entirely. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_

[dpdk-dev] [PATCH v3 10/16] vfio: extract setup logic out of pci_vfio_map_resource

2016-07-04 Thread Jan Viktorin
The setup logic access the global vfio_cfg variable that will be moved in the following commits. We need to separate all accesses to this variable to a general code. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 85 +- 1 file changed

[dpdk-dev] [PATCH v3 09/16] vfio: generalize pci_vfio_get_group_no

2016-07-04 Thread Jan Viktorin
. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 38 +- lib/librte_eal/linuxapp/eal/eal_vfio.c | 43 ++ lib/librte_eal/linuxapp/eal/eal_vfio.h | 7 + 3 files changed, 51 insertions(+), 37 deletions(-) diff

[dpdk-dev] [PATCH v3 08/16] vfio: generalize pci_vfio_get_container_fd

2016-07-04 Thread Jan Viktorin
The pci_vfio_get_container_fd is not PCI-specific. Move the implementation to the eal_vfio.c as vfio_get_container_fd. No other code seems to call this function. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 1 - lib/librte_eal/linuxapp/eal/eal_pci_vfio.c

[dpdk-dev] [PATCH v3 07/16] vfio: move vfio-specific SOCKET_* constants

2016-07-04 Thread Jan Viktorin
The constants are not PCI-specific. Move them into the eal_vfio.h. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 7 --- lib/librte_eal/linuxapp/eal/eal_vfio.h | 6 ++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/librte_eal

[dpdk-dev] [PATCH v3 06/16] vfio: generalize pci_vfio_has_supported_extensions

2016-07-04 Thread Jan Viktorin
The pci_vfio_has_supported_extensions is not PCI-specific and it is a private function of the eal_pci_vfio.c. We just rename the function and make it available even for non-PCI devices. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 36

[dpdk-dev] [PATCH v3 05/16] vfio: generalize pci_vfio_set_iommu_type

2016-07-04 Thread Jan Viktorin
The pci_vfio_set_iommu_type is not PCI-specific and it is a private function of the eal_pci_vfio.c. We just rename the function and make it available even for non-PCI devices. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 25 + lib

[dpdk-dev] [PATCH v3 04/16] vfio: move vfio_iommu_type and dma_map functions to eal_vfio

2016-07-04 Thread Jan Viktorin
We make the iommu_types public temporarily here until the depending stuff is refactored. The iommu_types and dma_map functions will be changed to be private inside the eal_vfio module later. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal

[dpdk-dev] [PATCH v3 03/16] vfio: move common vfio constants to eal_vfio.h

2016-07-04 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 7 --- lib/librte_eal/linuxapp/eal/eal_vfio.h | 7 +++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c

[dpdk-dev] [PATCH v3 02/16] vfio: move VFIO-specific stuff to eal_vfio.h

2016-07-04 Thread Jan Viktorin
The common VFIO definitions should be separated from the PCI-specific parts. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 28 lib/librte_eal/linuxapp/eal/eal_vfio.h | 28 2 files changed, 28 insertions

[dpdk-dev] [PATCH v3 01/16] vfio: fix include of eal_private.h to be local

2016-07-04 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c index f91b924..8b7d53f 100644 --- a/lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH v3 00/16] Make VFIO support less dependent on PCI

2016-07-04 Thread Jan Viktorin
Hello, I've rebased the v2 of this patch set on top of the current master. It builds well for my setup (both VFIO enabled and disabled). Regards Jan v3: * 0012: Acked-by: John McNamara Jan Viktorin (16): vfio: fix include of eal_private.h to be local vfio: move VFIO-specific stuff

[dpdk-dev] [PATCH v2 01/16] vfio: fix include of eal_private.h to be local

2016-07-04 Thread Jan Viktorin
On Mon, 4 Jul 2016 10:22:08 + "Burakov, Anatoly" wrote: [...] > There's no patch cover letter so I'll reply to the first patch. I've done > some cursory testing with a NIC, nothing seems to be broken and the code > looks OK to me. So, once this patchset is rebased on latest master

[dpdk-dev] [PATCH v1 28/28] ether: support SoC device/driver

2016-07-04 Thread Jan Viktorin
On Mon, 4 Jul 2016 19:57:18 +0530 Shreyansh jain wrote: [...] > >>> @@ -1431,7 +1524,7 @@ rte_eth_dev_info_get(uint8_t port_id, struct > >>> rte_eth_dev_info *dev_info) > >>> > >>> RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_infos_get); > >>> (*dev->dev_ops->dev_infos_get)(dev, dev_info); >

[dpdk-dev] [PATCH v1 02/28] eal: extract function eal_parse_sysfs_valuef

2016-07-04 Thread Jan Viktorin
Hello Shreyansh, On Thu, 16 Jun 2016 11:47:29 + Shreyansh Jain wrote: > Sorry, didn't notice this email earlier... > Comments inline > > > -Original Message----- > > From: Jan Viktorin [mailto:viktorin at rehivetech.com] > > Sent: Wednesday, June 15, 2016 3:2

[dpdk-dev] [PATCH v1 28/28] ether: support SoC device/driver

2016-07-04 Thread Jan Viktorin
On Wed, 29 Jun 2016 15:12:07 +0530 Shreyansh jain wrote: > Hi Jan, > > On Friday 06 May 2016 07:18 PM, Jan Viktorin wrote: > > Signed-off-by: Jan Viktorin > > --- > > lib/librte_ether/rte_ethdev.c | 127 > > +- > &g

[dpdk-dev] [PATCH v2 01/16] vfio: fix include of eal_private.h to be local

2016-07-04 Thread Jan Viktorin
On Mon, 4 Jul 2016 10:22:08 + "Burakov, Anatoly" wrote: > > -Original Message----- > > From: Jan Viktorin [mailto:viktorin at rehivetech.com] > > Sent: Monday, June 13, 2016 2:02 PM > > To: dev at dpdk.org > > Cc: Jan Viktorin ; Burakov, Anatoly

[dpdk-dev] [PATCH v16 0/3] mempool: add mempool handler feature

2016-06-24 Thread Jan Viktorin
On Fri, 24 Jun 2016 13:24:56 +0200 Thomas Monjalon wrote: > 2016-06-24 13:20, Jan Viktorin: > > thanks for the patchset. I am sorry, I didn't have any time for DPDK this > > week > > and didn't test it before applying. The current master produces the > > follow

[dpdk-dev] [PATCH v16 0/3] mempool: add mempool handler feature

2016-06-24 Thread Jan Viktorin
On Fri, 24 Jun 2016 04:55:39 + "Wiles, Keith" wrote: > On 6/23/16, 11:22 PM, "dev on behalf of Thomas Monjalon" dpdk.org on behalf of thomas.monjalon at 6wind.com> wrote: > > >> David Hunt (2): > >> mempool: support mempool handler operations > >> app/test: test mempool handler > >>

[dpdk-dev] [PATCH v14 3/3] mbuf: make default mempool ops configurable at build

2016-06-17 Thread Jan Viktorin
the default configuration for this architecture > would contain a different value for RTE_MBUF_DEFAULT_MEMPOOL_OPS. > > Signed-off-by: Olivier Matz > Signed-off-by: David Hunt > Acked-by: Shreyansh Jain > Acked-by: Olivier Matz > --- Reviewed-by: Jan Viktorin

[dpdk-dev] [PATCH v14 2/3] app/test: test mempool handler

2016-06-17 Thread Jan Viktorin
On Fri, 17 Jun 2016 14:53:37 +0100 David Hunt wrote: > Create a minimal custom mempool handler and check that it > passes basic mempool autotests. > > Signed-off-by: Olivier Matz > Signed-off-by: David Hunt > Acked-by: Shreyansh Jain > Acked-by: Olivier Matz > --- Reviewed-by: Jan Viktorin

[dpdk-dev] [PATCH v14 1/3] mempool: support mempool handler operations

2016-06-17 Thread Jan Viktorin
Hi David, still few nits... Do you like the upstreaming process? :) I hope finish this patchset soon. The major issues seem to be OK. [...] > + > +/** > + * @internal Get the mempool ops struct from its index. > + * > + * @param ops_index > + * The index of the ops struct in the ops struct

[dpdk-dev] [PATCH] app/test: call objdump in platform-independent way

2016-06-17 Thread Jan Viktorin
dev/stdin by a temporary file. Signed-off-by: Jan Viktorin Reported-by: Thomas Monjalon --- app/test/Makefile | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/test/Makefile b/app/test/Makefile index 5e3ebdc..36ff089 100644 --- a/app/test/Makefile +++ b/app/test/Makef

[dpdk-dev] [PATCH v2 00/17] prepare for rte_device / rte_driver

2016-06-16 Thread Jan Viktorin
On Thu, 16 Jun 2016 08:42:29 + Shreyansh Jain wrote: > Hi, > > > -Original Message- > > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > Sent: Thursday, June 16, 2016 1:04 PM > > To: Shreyansh Jain > > Cc: David Marchand ; viktorin at > > rehivetech.com; > > dev at

[dpdk-dev] [PATCH v2 00/17] prepare for rte_device / rte_driver

2016-06-16 Thread Jan Viktorin
On Thu, 16 Jun 2016 11:19:59 +0200 Thomas Monjalon wrote: > 2016-06-16 10:23, Jan Viktorin: > > I think, we should consider to move it to somebody else. I would work on > > it, however, I don't see all the tasks that are to be done. That's why I > > was waiting to

[dpdk-dev] [PATCH v2 00/17] prepare for rte_device / rte_driver

2016-06-16 Thread Jan Viktorin
patchset). What more? Jan?Viktorin RehiveTech Sent?from?a?mobile?device ? P?vodn? zpr?va ? Od: Thomas Monjalon Odesl?no: ?tvrtek, 16. ?ervna 2016 9:34 Komu: Shreyansh Jain Kopie: David Marchand; viktorin at rehivetech.com; dev at dpdk.org; Iremonger, Bernard P?edm?t: Re: [dpdk-dev] [PATCH v2 00/17

[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager

2016-06-15 Thread Jan Viktorin
gt;> > >>> > >>> On 15/6/2016 1:03 PM, Olivier MATZ wrote: > >>>> Hi, > >>>> > >>>> On 06/15/2016 01:47 PM, Hunt, David wrote: > >>>>> > >>>>> > >>>>> On 15/6/2016 11:13 AM, Ja

[dpdk-dev] [PATCH v12 1/3] mempool: support external mempool operations

2016-06-15 Thread Jan Viktorin
On Wed, 15 Jun 2016 11:29:51 +0100 "Hunt, David" wrote: > On 15/6/2016 11:14 AM, Jan Viktorin wrote: > > On Wed, 15 Jun 2016 08:47:02 +0100 > > David Hunt wrote: > > > > [...] > > > > >> + > >> +/** Array of regi

[dpdk-dev] [PATCH v12 1/3] mempool: support external mempool operations

2016-06-15 Thread Jan Viktorin
On Wed, 15 Jun 2016 08:47:02 +0100 David Hunt wrote: > Until now, the objects stored in a mempool were internally stored in a > ring. This patch introduces the possibility to register external handlers > replacing the ring. > > The default behavior remains unchanged, but calling the new

[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager

2016-06-15 Thread Jan Viktorin
enqueue, > .dequeue = common_ring_mc_dequeue, > .get_count = common_ring_get_count, > .free = common_ring_free, > }; > > And then the following macro will register the ops in the array of ops > structures > > REGISTER_MEMPOOL_OPS(ops_mp_mc); > > For an example of API usage, please see app/test/test_mempool.c, which > implements a rudimentary "custom_handler" mempool manager using simple mallocs > for each mempool object. This file also contains the callbacks and self > registration for the new handler. > > David Hunt (2): > mempool: support external mempool operations > mbuf: make default mempool ops configurable at build > > Olivier Matz (1): > app/test: test external mempool manager > > -- Jan Viktorin E-mail: Viktorin at RehiveTech.com System Architect Web:www.RehiveTech.com RehiveTech Brno, Czech Republic

[dpdk-dev] [PATCH v1 02/28] eal: extract function eal_parse_sysfs_valuef

2016-06-15 Thread Jan Viktorin
On Tue, 14 Jun 2016 04:30:57 + Shreyansh Jain wrote: > Hi Jan, > > > -Original Message- > > From: Jan Viktorin [mailto:viktorin at rehivetech.com] > > Sent: Monday, June 13, 2016 7:55 PM > > To: Shreyansh Jain > > Cc: dev at dpdk.org; D

[dpdk-dev] [PATCH] app/test: remove rte_pci_dev_ids.h from pci_autotest

2016-06-15 Thread Jan Viktorin
On Tue, 14 Jun 2016 16:08:42 +0200 Thomas Monjalon wrote: > 2016-06-14 15:46, Jan Viktorin: > > There are 2 new fake devices for testing PCI infra. All the fake devices s/All the fake/All 3 fake/ > > are now identified by non-existing vendor and device IDs so there is no

[dpdk-dev] [PATCH v1 07/28] eal/soc: add rte_eal_soc_register/unregister logic

2016-06-15 Thread Jan Viktorin
On Wed, 15 Jun 2016 05:57:33 + Shreyansh Jain wrote: > Hi Jan, > > One more comment which I missed in previous reply: > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Shreyansh Jain > > Sent: Monday, June 13, 201

[dpdk-dev] [PATCH] app/test: remove rte_pci_dev_ids.h from pci_autotest

2016-06-14 Thread Jan Viktorin
There are 2 new fake devices for testing PCI infra. All the fake devices are now identified by non-existing vendor and device IDs so there is no real driver to bind to them. The testing drivers match those IDs. Signed-off-by: Jan Viktorin Suggested-by: Thomas Monjalon --- app/test/test_pci.c

[dpdk-dev] [PATCH v2] config: make libarchive optional

2016-06-14 Thread Jan Viktorin
linked_tar_resource if disabled > --- Reviewed-by: Jan Viktorin Acked-by: Jan Viktorin

[dpdk-dev] [PATCH] config: make libarchive optional

2016-06-14 Thread Jan Viktorin
Hello Thomas, On Tue, 14 Jun 2016 10:59:49 +0200 Thomas Monjalon wrote: > The commit 66819e6 has introduced a dependency on libarchive to be able > to use some tar resources in the unit tests. > It is now an optional dependency because some systems do not have it > installed. I am surprised

[dpdk-dev] [PATCH v5 10/10] app/test: do not dump PCI devices in blacklist test

2016-06-13 Thread Jan Viktorin
Dumping of devices in a unittest is useless. Instead, test whether the test has been set up well - i.e. there are no devices. Signed-off-by: Jan Viktorin --- app/test/test_pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_pci.c b/app/test/test_pci.c index

  1   2   3   4   5   6   >