[dpdk-dev] [PATCH v3 12/15] ether: extract function eth_dev_get_intr_handle

2016-09-09 Thread Shreyansh Jain
We abstract access to the intr_handle here as we want to get it either from the pci_dev or soc_dev. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_ether/rte_ethdev.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions

[dpdk-dev] [PATCH v3 13/15] ether: extract function eth_dev_get_driver_name

2016-09-09 Thread Shreyansh Jain
Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_ether/rte_ethdev.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 104ea4a..4fa65ca

[dpdk-dev] [PATCH v3 14/15] ether: Support rte_soc_driver/device for etherdev

2016-09-09 Thread Shreyansh Jain
- eth_driver/rte_eth_dev embeds rte_soc_driver/device for relating SoC PMDs to ethernet devices. - Add probe and remove functions linked to eth_dev_init/uninit Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_ether/rte_ethdev.c | 129

[dpdk-dev] [PATCH v3 15/15] eal/crypto: Support rte_soc_driver/device for cryptodev

2016-09-09 Thread Shreyansh Jain
- rte_cryptodev_driver/rte_cryptodev_dev embeds rte_soc_driver/device for linking SoC PMDs to crypto devices. - Add probe and remove functions linked Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- lib/librte_cryptodev/rte_cryptodev.c | 122

[dpdk-dev] [PATCH v9 01/25] eal: define macro container_of

2016-09-09 Thread Shreyansh Jain
Hi Adrien, On Friday 09 September 2016 02:25 PM, Adrien Mazarguil wrote: > This warning is a known issue in the Verbs header that will be addressed > eventually. It occurs even without Shreyansh's patch (more likely when > CONFIG_RTE_LIBRTE_MLX4_DEBUG and/or CONFIG_RTE_LIBRTE_MLX5_DEBUG are >

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

2016-09-09 Thread Shreyansh Jain
Hi Stephen, On Thursday 08 September 2016 10:19 PM, Stephen Hemminger wrote: [...] >> > I think yes. There are separate lists for all device types which helps >> > keep the EAL code free of type checks. But, functionally it doesn't make >> > that big a different between a common or specific list.

[dpdk-dev] [PATCH v9 17/25] drivers: convert PMD_VDEV drivers to use rte_vdev_driver

2016-09-12 Thread Shreyansh Jain
Hi , On Sunday 11 September 2016 05:25 PM, Yuanhan Liu wrote: > On Wed, Sep 07, 2016 at 07:38:09PM +0530, Shreyansh Jain wrote: >> 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-

[dpdk-dev] [PATCH 1/5] eal: make enum rte_kernel_driver non-PCI specific

2016-09-12 Thread Shreyansh Jain
Hi, On Sunday 11 September 2016 05:45 PM, Yuanhan Liu wrote: > On Thu, Sep 01, 2016 at 10:11:51AM +0530, Shreyansh Jain wrote: >> From: Jan Viktorin >> >> From: Jan Viktorin >> >> Signed-off-by: Jan Viktorin >> Signed-off-by: Shreyansh Jain > >

[dpdk-dev] [PATCH v9 06/25] eal: introduce init macros

2016-09-15 Thread Shreyansh Jain
On Monday 12 September 2016 12:45 PM, David Marchand wrote: > On Wed, Sep 7, 2016 at 4:07 PM, Shreyansh Jain > wrote: >> diff --git a/lib/librte_eal/common/include/rte_pci.h >> b/lib/librte_eal/common/include/rte_pci.h >> index fa74962..cf673e4 100644 >> --- a

[dpdk-dev] [PATCH v9 13/25] ethdev: convert to eal hotplug

2016-09-15 Thread Shreyansh Jain
On Monday 12 September 2016 12:46 PM, David Marchand wrote: > On Wed, Sep 7, 2016 at 4:08 PM, Shreyansh Jain > wrote: > > [snip] > >> diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c >> index fdeac86..86c9d1a 100644 >> --- a/lib/librt

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

2016-09-16 Thread Shreyansh Jain
dev headers in place of PCI headers eal: rename and move RTE PCI Resources eal/pci: inherit RTE driver in PCI driver eal: register EAL drivers explicitly eal: introduce generalized RTE device eal/pci: create RTE device list and fallback on its members Shreyansh Jain (1): eal/pci: re

[dpdk-dev] [PATCH v10 01/25] eal: define container macro

2016-09-16 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/include/rte_common.h | 21 + 1 file changed, 21 insertions(+) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/

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

2016-09-16 Thread Shreyansh Jain
ual and pci devices") Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/eal_private.h | 7 --- lib/librte_eal/linuxapp/eal/eal.c | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/librte_eal/common/eal_private.h b/lib/librte_eal/comm

[dpdk-dev] [PATCH v10 03/25] pci: no need for dynamic tailq init

2016-09-16 Thread Shreyansh Jain
ed-off-by: David Marchand Reviewed-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- lib/librte_eal/bsdapp/eal/eal_pci.c| 3 --- lib/librte_eal/common/eal_common_pci.c | 6 -- lib/librte_eal/linuxapp/eal/eal_pci.c | 3 --- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git

[dpdk-dev] [PATCH v10 04/25] eal/pci: replace PCI devinit/devuninit with probe/remove

2016-09-16 Thread Shreyansh Jain
. Suggested-by: David Marchand Signed-off-by: Shreyansh Jain --- app/test/test_pci.c | 8 drivers/net/mlx4/mlx4.c | 4 ++-- drivers/net/mlx5/mlx5.c | 4 ++-- lib/librte_cryptodev/rte_cryptodev.c | 4 ++-- lib/librte_cryptodev

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

2016-09-16 Thread Shreyansh Jain
From: David Marchand <david.march...@6wind.com> This information is not used and just adds noise. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- lib/librte_cryptodev/rte_cryptodev.c | 8 +++- lib/librte_cryptodev/rte_cryptodev.h | 2 -- lib/librte_cry

[dpdk-dev] [PATCH v10 06/25] drivers: align PCI driver definitions

2016-09-16 Thread Shreyansh Jain
From: David Marchand <david.march...@6wind.com> Pure coding style, but it might make it easier later if we want to move fields in rte_cryptodev_driver and eth_driver structures. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- drivers/crypto/qat/rte_qat_cryptodev

[dpdk-dev] [PATCH v10 07/25] eal: introduce PCI device init macros

2016-09-16 Thread Shreyansh Jain
ed-off-by: David Marchand [Shreyansh: Update PCI Registration macro name] Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/include/rte_dev.h | 4 ++-- lib/librte_eal/common/include/rte_eal.h | 3 +++ lib/librte_eal/common/include/rte_pci.h | 10 ++ lib/librte_eal/common/i

[dpdk-dev] [PATCH v10 08/25] driver: init/uninit common wrappers for PCI drivers

2016-09-16 Thread Shreyansh Jain
From: David Marchand <david.march...@6wind.com> crypto and ethdev drivers aligned to PCI probe/remove. These wrappers are mapped directly to PCI resources. Existing handlers for init/uninit can be easily reused for this. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --

[dpdk-dev] [PATCH v10 09/25] drivers: convert all phy drivers as PCI drivers

2016-09-16 Thread Shreyansh Jain
they have custom initialization steps. - VDEV devices are not modified - they continue to use PMD_REGISTER_DRIVER. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- Changes since v9: - Add DRIVER_EXPORT_NAME to DRIVER_REGISTER_PCI - For mlx4/mlx5/virtio_ethdev, use DRIVER_EXPO

[dpdk-dev] [PATCH v10 10/25] drivers: remove driver register callbacks for crypto/net

2016-09-16 Thread Shreyansh Jain
From: David Marchand <david.march...@6wind.com> Now that all pdev are pci drivers, we don't need to register crypto and ethdev drivers through a dedicated channel. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- lib/librte_cryptodev/rte_cryptodev.c

[dpdk-dev] [PATCH v10 11/25] eal/pci: helpers for device name parsing/update

2016-09-16 Thread Shreyansh Jain
llback to common name function. - Introduce a eal private Update function for PCI device naming. Signed-off-by: David Marchand [Shreyansh: Merge crypto/pci helper patches] Signed-off-by: Shreyansh Jain --- lib/librte_cryptodev/rte_cryptodev.c| 27 +++--- lib/librte_eal/bsdapp/eal/eal

[dpdk-dev] [PATCH v10 12/25] ethdev: do not scan all PCI devices on attach

2016-09-16 Thread Shreyansh Jain
From: David Marchand <david.march...@6wind.com> No need to scan all devices, we only need to update the device being attached. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_pci.c | 12 +--- lib/librte_ether/rte_ethdev.c

[dpdk-dev] [PATCH v10 13/25] eal: add hotplug operations for PCI and VDEV

2016-09-16 Thread Shreyansh Jain
rchand Signed-off-by: Shreyansh Jain --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 lib/librte_eal/common/eal_common_dev.c | 48 + lib/librte_eal/common/include/rte_dev.h | 26 ++ lib/librte_eal/linuxapp/eal/rte_eal_version.ma

[dpdk-dev] [PATCH v10 14/25] ethdev: convert to EAL hotplug

2016-09-16 Thread Shreyansh Jain
emoved in the following commit. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain -- v10: - Update incorrect language of log message - Checkpatch issues fixed --- lib/librte_ether/rte_ethdev.c | 207 +++--- 1 file changed, 35 insertions(+), 172 deletions(-)

[dpdk-dev] [PATCH v10 15/25] ethdev: get rid of device type

2016-09-16 Thread Shreyansh Jain
From: David Marchand <david.march...@6wind.com> 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 +- drivers/net/af_

[dpdk-dev] [PATCH v10 16/25] eal: extract vdev infra

2016-09-16 Thread Shreyansh Jain
ed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- Changes since v9: - Add DRIVER_EXPORT_NAME() to DRIVER_REGISTER_* macro. Patch for change from David Marchand --- lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 3

[dpdk-dev] [PATCH v10 17/25] eal: remove PDEV/VDEV unused code

2016-09-16 Thread Shreyansh Jain
rd commit log] Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_dev.c | 8 lib/librte_eal/common/eal_common_vdev.c | 6 -- 2 files changed, 14 deletions(-) diff --git a/lib/librte_eal/common/eal_common_dev.c b/lib/librte_eal/common/eal_common_dev.c index 555e0d9

[dpdk-dev] [PATCH v10 18/25] drivers: convert VDRV to use RTE VDEV Driver

2016-09-16 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> 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 Signed-off-by: Shreyansh Jain --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 10 ++ d

[dpdk-dev] [PATCH v10 19/25] eal: remove unused PMD types

2016-09-16 Thread Shreyansh Jain
nd its documentation has not yet been removed. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 3 --- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 3 --- drivers/crypto/kasumi/rte_kasumi_pmd.c | 3 --- drivers/crypt

[dpdk-dev] [PATCH v10 20/25] eal: include dev headers in place of PCI headers

2016-09-16 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Further refactoring and generalization of PCI infrastructure will require access to the rte_dev.h contents. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/include/rte_pci.h | 1 + 1 file changed, 1 ins

[dpdk-dev] [PATCH v10 21/25] eal: rename and move RTE PCI Resources

2016-09-16 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> 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 Signed-off-by: Shreyansh Jain --- drivers/net/szedata2/rte_eth_szedata2.

[dpdk-dev] [PATCH v10 22/25] eal/pci: inherit RTE driver in PCI driver

2016-09-16 Thread Shreyansh Jain
iginal DRIVER_REGISTER_PCI(..) name has been populated into the rte_driver.name member - assignments through eth_driver has been removed. Signed-off-by: Jan Viktorin [Shreyansh: Rebase and expand changes to newly added files] Signed-off-by: Shreyansh Jain --- app/test/test_pci.c

[dpdk-dev] [PATCH v10 23/25] eal: register EAL drivers explicitly

2016-09-16 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> 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 Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_pci.c | 2 ++ lib/libr

[dpdk-dev] [PATCH v10 24/25] eal: introduce generalized RTE device

2016-09-16 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_dev.c | 13 + lib/librte_eal/common/include/rte_dev.h | 31 +++ 2 files changed, 44 insertions(+) diff

[dpdk-dev] [PATCH v10 25/25] eal/pci: create RTE device list and fallback on its members

2016-09-16 Thread Shreyansh Jain
erform bulk actions (like cleanup). Signed-off-by: Jan Viktorin [Shreyansh: Reword commit log for extra rte_device list] Signed-off-by: Shreyansh Jain --- app/test/virtual_pmd.c | 4 ++-- drivers/net/fm10k/fm10k_ethdev.c| 6 +++--- drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH v9 22/25] eal/pci: inherit rte_driver by rte_pci_driver

2016-09-16 Thread Shreyansh Jain
On Thursday 08 September 2016 07:55 PM, Ferruh Yigit wrote: > On 9/7/2016 3:08 PM, Shreyansh Jain wrote: >> Remove the 'name' member from rte_pci_driver and move to generic rte_driver. >> >> Most of the PMD drivers were initially using DRIVER_REGISTER_PCI(..) >>

[dpdk-dev] [PATCH v9 08/25] drivers: convert all pdev drivers as pci drivers

2016-09-16 Thread Shreyansh Jain
Hi David, On Monday 12 September 2016 12:46 PM, David Marchand wrote: > On Wed, Sep 7, 2016 at 4:08 PM, Shreyansh Jain > wrote: >> Simplify crypto and ethdev pci drivers init by using newly introduced >> init macros and helpers. >> Those drivers then don't need to r

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

2016-09-16 Thread Shreyansh Jain
Hi David, > -Original Message- > From: Hunt, David [mailto:david.hunt at intel.com] > Sent: Thursday, September 15, 2016 6:26 PM > To: Shreyansh Jain ; dev at dpdk.org > Cc: viktorin at rehivetech.com; Hemant Agrawal > Subject: Re: [dpdk-dev] [PATCH v3 00/15] Introduce

[dpdk-dev] [PATCH v3 01/15] eal/soc: introduce very essential SoC infra definitions

2016-09-16 Thread Shreyansh Jain
Hi David, > -Original Message- > From: Hunt, David [mailto:david.hunt at intel.com] > Sent: Thursday, September 15, 2016 6:29 PM > To: Shreyansh Jain ; dev at dpdk.org > Cc: viktorin at rehivetech.com; Hemant Agrawal > Subject: Re: [dpdk-dev] [PATCH v3 01/15] eal/s

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

2016-09-16 Thread Shreyansh Jain
reasonable as SoC is experimental for some time. > > As SoC infrastructure would to be experimental for some time, > I think it is a good idea to disable it as default. Agree - I will update this in v4. Thanks for bringing it to notice. > > Regards > Jan > > On Fri, 9 Sep 2

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

2016-09-17 Thread Shreyansh Jain
Hi David, > -Original Message- > From: David Marchand [mailto:david.marchand at 6wind.com] > Sent: Friday, September 16, 2016 7:52 PM > To: Shreyansh Jain ; Thomas Monjalon > ; Jan Viktorin > Subject: Re: [PATCH v10 00/25] Introducing rte_driver/rte_devic

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

2016-10-14 Thread Shreyansh Jain
(Rebased these over HEAD fed622dfd) These patches were initially part of Jan's original series on SoC Framework ([1],[2]). An update to that series, without these patches, was posted here [3]. Main motivation for these is aim of introducing a non-PCI centric subsystem in EAL. As of now the first

[dpdk-dev] [PATCH v2 1/4] eal: generalize PCI kernel driver enum to EAL

2016-10-14 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain -- Changes since v0: - fix compilation error due to missing include --- lib/librte_eal/common/include/rte_dev.h | 12 lib/librte_eal/common/include/rte_pci.h | 9 --

[dpdk-dev] [PATCH v2 2/4] eal: generalize PCI map/unmap resource to EAL

2016-10-14 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> The functions pci_map_resource, pci_unmap_resource are generic so the pci_* prefix can be omitted. The functions are moved to the eal_common_dev.c so they can be reused by other infrastructure. Signed-off-by: Jan Viktorin Signed-off-by: Shr

[dpdk-dev] [PATCH v2 3/4] eal/linux: generalize PCI kernel unbinding driver to EAL

2016-10-14 Thread Shreyansh Jain
tation updated as ENOTSUP Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain -- Changes since v1: - update BSD support for unbind kernel driver --- lib/librte_eal/bsdapp/eal/eal.c | 7 +++ lib/librte_eal/bsdapp/eal/eal_pci.c | 4 ++-- lib/librte_eal/common/eal_private.h

[dpdk-dev] [PATCH v2 4/4] eal/linux: generalize PCI kernel driver extraction to EAL

2016-10-14 Thread Shreyansh Jain
ed-off-by: Shreyansh Jain -- Changes since v1: - update BSD support for unbind kernel driver --- lib/librte_eal/bsdapp/eal/eal.c | 7 +++ lib/librte_eal/common/eal_private.h | 14 ++ lib/librte_eal/linuxapp/eal/eal.c | 29 + lib/librte_eal/linuxa

[dpdk-dev] [PATCH v4 00/17] Introduce SoC device/driver framework for EAL

2016-10-15 Thread Shreyansh Jain
ainer_of for pci_drv ether: verify we copy info from a PCI device ether: extract function eth_dev_get_intr_handle ether: introduce ethernet dev probe remove Shreyansh Jain (2): eal/soc: implement probing of drivers eal/crypto: Support rte_soc_driver/device for cryptodev app/test/Makef

[dpdk-dev] [PATCH v4 01/17] eal: define container macro

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/include/rte_common.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/

[dpdk-dev] [PATCH v4 02/17] eal/soc: introduce very essential SoC infra definitions

2016-10-15 Thread Shreyansh Jain
device/rte_soc_driver. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- app/test/Makefile | 1 + app/test/test_soc.c | 90 + lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/

[dpdk-dev] [PATCH v4 03/17] eal/soc: add SoC PMD register/unregister logic

2016-10-15 Thread Shreyansh Jain
ed-off-by: Jan Viktorin [Shreyansh: update PMD registration method] Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- app/test/test_soc.c | 111 lib/librte_eal/bsdapp/eal/rte_eal_version.map | 3 + lib/librte_eal/

[dpdk-dev] [PATCH v4 04/17] eal/soc: implement SoC device list and dump

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> SoC devices would be linked in a separate list (from PCI). This is used for probe function. A helper for dumping the device list is added. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/libr

[dpdk-dev] [PATCH v4 05/17] eal: introduce command line enable SoC option

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Support --enable-soc. SoC support is disabled by default. Signed-off-by: Jan Viktorin [Shreyansh: Change --no-soc to --enable-soc; disabled by default] Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- doc/guides/testpmd_

[dpdk-dev] [PATCH v4 06/17] eal/soc: init SoC infra from EAL

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_eal/bsdapp/eal/Makefile| 1 + lib/librte_eal/bsdapp/eal/eal.c | 4 +++ lib/librte_eal/bsdapp/eal/eal_soc.c

[dpdk-dev] [PATCH v4 07/17] eal/soc: implement probing of drivers

2016-10-15 Thread Shreyansh Jain
-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal -- v4: - Update test_soc for descriptive test function names - Comments over test functions - devinit and devuninint --> probe/remove - RTE_VERIFY at some places --- app/test/test_so

[dpdk-dev] [PATCH v4 08/17] eal/soc: extend and utilize devargs

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> It is assumed that SoC Devices provided on command line are prefixed with "soc:". This patch adds parse and attach support for such devices. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal ---

[dpdk-dev] [PATCH v4 09/17] eal/soc: add drv_flags

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> The flags are copied from the PCI ones. They should be refactorized into a general set of flags in the future. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_eal/common/include/rte_soc.

[dpdk-dev] [PATCH v4 10/17] eal/soc: add intr_handle

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_eal/common/include/rte_soc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_eal/common/include/rte_soc.h b/lib/libr

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

2016-10-15 Thread Shreyansh Jain
ed-off-by: Jan Viktorin [Shreyansh: restructure commit to be an optional implementation] Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/include/rte_soc.h | 10 +- lib/librte_eal/linuxapp/eal/eal_soc.c | 315 2 files changed, 324 insertions(+), 1 deletion(-)

[dpdk-dev] [PATCH v4 13/17] ether: utilize container_of for pci_drv

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> It is not necessary to place the rte_pci_driver at the beginning of the rte_eth_dev struct anymore as we use the container_of macro to get the parent pointer. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant A

[dpdk-dev] [PATCH v4 14/17] ether: verify we copy info from a PCI device

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Now that different types of ethdev exist, check for presence of PCI dev while copying out the info. Similar would be done for SoC. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte

[dpdk-dev] [PATCH v4 12/17] eal/soc: additional features for SoC

2016-10-15 Thread Shreyansh Jain
lready registered Signed-off-by: Jan Viktorin [Shreyansh: merge multiple patches into single set] Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_soc.c | 30 lib/librte_eal/common/eal_private.h | 23 ++ lib/librte_eal/common/include/rte_soc.h | 28 ++

[dpdk-dev] [PATCH v4 15/17] ether: extract function eth_dev_get_intr_handle

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> We abstract access to the intr_handle here as we want to get it either from the pci_dev or soc_dev. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_ether/rte_ethdev.c | 14 +++

[dpdk-dev] [PATCH v4 16/17] ether: introduce ethernet dev probe remove

2016-10-15 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_ether/rte_ethdev.c | 148 +- lib/librte_ether/rte_ethdev.h | 31 + 2 files change

[dpdk-dev] [PATCH v4 17/17] eal/crypto: Support rte_soc_driver/device for cryptodev

2016-10-15 Thread Shreyansh Jain
- rte_cryptodev_driver/rte_cryptodev_dev embeds rte_soc_driver/device for linking SoC PMDs to crypto devices. - Add probe and remove functions linked Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- lib/librte_cryptodev/rte_cryptodev.c | 122

[dpdk-dev] [PATCH v4 00/17] Introduce SoC device/driver framework for EAL

2016-10-15 Thread Shreyansh Jain
On Saturday 15 October 2016 07:14 PM, Shreyansh Jain wrote: [...] > > 4) Design considerations that are same as PCI: > - SoC initialization is being done through rte_eal_init(), just after PCI >initialization is done. > - As in case of PCI, probe is done after rte_eal_pci_

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

2016-10-16 Thread Shreyansh Jain
Hi Jan, > -Original Message- > From: Jan Viktorin [mailto:viktorin at rehivetech.com] > Sent: Sunday, October 16, 2016 6:27 AM > To: Shreyansh Jain > Cc: dev at dpdk.org; thomas.monjalon at 6wind.com; david.marchand at 6wind.com > Subject: Re: [PATCH v4 11/17] eal/soc

[dpdk-dev] [PATCH v11 00/24] Introducing rte_driver/rte_device generalization

2016-10-17 Thread Shreyansh Jain
Hi Ferruh, > -Original Message- > From: Ferruh Yigit [mailto:ferruh.yigit at intel.com] > Sent: Monday, October 17, 2016 7:13 PM > To: Shreyansh Jain ; Thomas Monjalon > > Cc: dev at dpdk.org; viktorin at rehivetech.com; David Marchand > ; Hemant Agrawal > Subjec

[dpdk-dev] [PATCH v11 00/24] Introducing rte_driver/rte_device generalization

2016-10-19 Thread Shreyansh Jain
Hi Ferruh, > -Original Message- > From: Ferruh Yigit [mailto:ferruh.yigit at intel.com] > Sent: Tuesday, October 18, 2016 2:53 PM > To: Shreyansh Jain ; Thomas Monjalon > > Cc: dev at dpdk.org; viktorin at rehivetech.com; David Marchand > ; Hemant Agrawal >

[dpdk-dev] [PATCH v5 00/21] Introduce SoC device/driver framework for EAL

2016-10-24 Thread Shreyansh Jain
ether: utilize container_of for pci_drv ether: verify we copy info from a PCI device ether: extract function eth_dev_get_intr_handle ether: introduce ethernet dev probe remove Shreyansh Jain (2): eal/soc: implement probing of drivers eal/crypto: Support rte_soc_driver/d

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

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain -- Changes since v0: - fix compilation error due to missing include --- lib/librte_eal/common/include/rte_dev.h | 12 lib/librte_eal/common/include/rte_pci.h | 9 --

[dpdk-dev] [PATCH v5 02/21] eal: generalize PCI map/unmap resource to EAL

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> The functions pci_map_resource, pci_unmap_resource are generic so the pci_* prefix can be omitted. The functions are moved to the eal_common_dev.c so they can be reused by other infrastructure. Signed-off-by: Jan Viktorin Signed-off-by: Shr

[dpdk-dev] [PATCH v5 03/21] eal/linux: generalize PCI kernel unbinding driver to EAL

2016-10-24 Thread Shreyansh Jain
tation updated as ENOTSUP Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain -- Changes since v2: - update BSD support for unbind kernel driver --- lib/librte_eal/bsdapp/eal/eal.c | 7 +++ lib/librte_eal/bsdapp/eal/eal_pci.c | 4 ++-- lib/librte_eal/common/eal_private.h

[dpdk-dev] [PATCH v5 04/21] eal/linux: generalize PCI kernel driver extraction to EAL

2016-10-24 Thread Shreyansh Jain
ed-off-by: Shreyansh Jain --- lib/librte_eal/bsdapp/eal/eal.c | 7 +++ lib/librte_eal/common/eal_private.h | 14 ++ lib/librte_eal/linuxapp/eal/eal.c | 29 + lib/librte_eal/linuxapp/eal/eal_pci.c | 31 +-- 4 files chang

[dpdk-dev] [PATCH v5 05/21] eal: define container macro

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/include/rte_common.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/

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

2016-10-24 Thread Shreyansh Jain
device/rte_soc_driver. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- app/test/Makefile | 1 + app/test/test_soc.c | 90 + lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/

[dpdk-dev] [PATCH v5 07/21] eal/soc: add SoC PMD register/unregister logic

2016-10-24 Thread Shreyansh Jain
ed-off-by: Jan Viktorin [Shreyansh: update PMD registration method] Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- app/test/test_soc.c | 111 lib/librte_eal/bsdapp/eal/rte_eal_version.map | 3 + lib/librte_eal/

[dpdk-dev] [PATCH v5 08/21] eal/soc: implement SoC device list and dump

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> SoC devices would be linked in a separate list (from PCI). This is used for probe function. A helper for dumping the device list is added. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/libr

[dpdk-dev] [PATCH v5 09/21] eal: introduce command line enable SoC option

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Support --enable-soc. SoC support is disabled by default. Signed-off-by: Jan Viktorin [Shreyansh: Change --no-soc to --enable-soc; disabled by default] Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- doc/guides/testpmd_

[dpdk-dev] [PATCH v5 10/21] eal/soc: init SoC infra from EAL

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_eal/bsdapp/eal/Makefile| 1 + lib/librte_eal/bsdapp/eal/eal.c | 4 +++ lib/librte_eal/bsdapp/eal/eal_soc.c

[dpdk-dev] [PATCH v5 12/21] eal/soc: extend and utilize devargs

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> It is assumed that SoC Devices provided on command line are prefixed with "soc:". This patch adds parse and attach support for such devices. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal ---

[dpdk-dev] [PATCH v5 11/21] eal/soc: implement probing of drivers

2016-10-24 Thread Shreyansh Jain
-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal -- v4: - Update test_soc for descriptive test function names - Comments over test functions - devinit and devuninint --> probe/remove - RTE_VERIFY at some places --- app/test/test_so

[dpdk-dev] [PATCH v5 13/21] eal/soc: add drv_flags

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> The flags are copied from the PCI ones. They should be refactorized into a general set of flags in the future. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_eal/common/include/rte_soc.

[dpdk-dev] [PATCH v5 15/21] eal/soc: add default scan for Soc devices

2016-10-24 Thread Shreyansh Jain
ed-off-by: Jan Viktorin [Shreyansh: restructure commit to be an optional implementation] Signed-off-by: Shreyansh Jain -- v5: - Update rte_eal_soc_scan to rte_eal_soc_scan_platform_bus - Fix comments over scan and match functions --- lib/librte_eal/common/include/rte_soc.h | 16 +- lib/libr

[dpdk-dev] [PATCH v5 16/21] eal/soc: additional features for SoC

2016-10-24 Thread Shreyansh Jain
lready registered Signed-off-by: Jan Viktorin [Shreyansh: merge multiple patches into single set] Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_soc.c | 30 lib/librte_eal/common/eal_private.h | 23 ++ lib/librte_eal/common/include/rte_soc.h | 28 ++

[dpdk-dev] [PATCH v5 17/21] ether: utilize container_of for pci_drv

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> It is not necessary to place the rte_pci_driver at the beginning of the rte_eth_dev struct anymore as we use the container_of macro to get the parent pointer. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant A

[dpdk-dev] [PATCH v5 18/21] ether: verify we copy info from a PCI device

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Now that different types of ethdev exist, check for presence of PCI dev while copying out the info. Similar would be done for SoC. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte

[dpdk-dev] [PATCH v5 20/21] ether: introduce ethernet dev probe remove

2016-10-24 Thread Shreyansh Jain
From: Jan Viktorin <vikto...@rehivetech.com> Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_ether/rte_ethdev.c | 148 +- lib/librte_ether/rte_ethdev.h | 31 + 2 files change

[dpdk-dev] [PATCH v5 21/21] eal/crypto: Support rte_soc_driver/device for cryptodev

2016-10-24 Thread Shreyansh Jain
- rte_cryptodev_driver/rte_cryptodev_dev embeds rte_soc_driver/device for linking SoC PMDs to crypto devices. - Add probe and remove functions linked Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- lib/librte_cryptodev/rte_cryptodev.c | 122

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

2016-10-24 Thread Shreyansh Jain
Hi Jan, On Sunday 16 October 2016 12:42 PM, Shreyansh Jain wrote: > Hi Jan, > >> -Original Message- >> From: Jan Viktorin [mailto:viktorin at rehivetech.com] >> Sent: Sunday, October 16, 2016 6:27 AM >> To: Shreyansh Jain >> Cc: dev at dp

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

2016-10-25 Thread Shreyansh Jain
Hello Jan, On Monday 24 October 2016 09:51 PM, Jan Viktorin wrote: > 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 m

[dpdk-dev] mbuf changes

2016-10-25 Thread Shreyansh Jain
On Monday 24 October 2016 09:55 PM, Bruce Richardson wrote: > On Mon, Oct 24, 2016 at 04:11:33PM +, Wiles, Keith wrote: >> >>> On Oct 24, 2016, at 10:49 AM, Morten Br?rup >>> wrote: >>> >>> First of all: Thanks for a great DPDK Userspace 2016! >>> >>> >>> >>> Continuing the Userspace

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

2016-10-25 Thread Shreyansh Jain
On Tuesday 25 October 2016 11:06 AM, Shreyansh Jain wrote: > Hello Jan, > > On Monday 24 October 2016 09:51 PM, Jan Viktorin wrote: >> On Mon, 24 Oct 2016 17:29:25 +0530 >> Shreyansh Jain wrote: >> >>> From: Jan Viktorin >>> >>> Define initi

[dpdk-dev] [PATCH v10 11/25] eal/pci: helpers for device name parsing/update

2016-10-26 Thread Shreyansh Jain
Hello Reshma, On Tuesday 25 October 2016 09:19 PM, Pattan, Reshma wrote: > Hi Shreyansh, > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Shreyansh Jain >> Sent: Friday, September 16, 2016 5:30 AM >> To: dev at dpdk.org >

[dpdk-dev] [PATCH] eal: fix libabi macro for device generalization patches

2016-10-26 Thread Shreyansh Jain
Signed-off-by: Shreyansh Jain --- doc/guides/rel_notes/deprecation.rst | 12 doc/guides/rel_notes/release_16_11.rst | 16 lib/librte_cryptodev/Makefile | 2 +- lib/librte_eal/bsdapp/eal/Makefile | 2 +- lib/librte_eal/linuxapp/eal/Makefile | 2

[dpdk-dev] [PATCH v2] eal: fix libabi macro for device generalization patches

2016-10-26 Thread Shreyansh Jain
rte_device/driver generalization patches [1] were merged without a change in the LIBABIVER macro. This patches bumps the macro of affected libs. Also, deprecation notice from 16.07 has been removed and release notes for 16.11 added. Signed-off-by: Shreyansh Jain -- v2: - Mark bumped libraries

[dpdk-dev] [PATCH] eal: fix libabi macro for device generalization patches

2016-10-26 Thread Shreyansh Jain
On Wednesday 26 October 2016 06:08 PM, Shreyansh Jain wrote: > rte_device/driver generalization patches [1] were merged without a change > in the LIBABIVER macro. This patches bumps the macro of affected libs. > > Also, deprecation notice from 16.07 has been removed and release notes

[dpdk-dev] [PATCH v2] eal: fix libabi macro for device generalization patches

2016-10-26 Thread Shreyansh Jain
On Wednesday 26 October 2016 06:30 PM, Shreyansh Jain wrote: > rte_device/driver generalization patches [1] were merged without a change > in the LIBABIVER macro. This patches bumps the macro of affected libs. > > Also, deprecation notice from 16.07 has been removed and release notes

[dpdk-dev] [PATCH v2] eal: fix libabi macro for device generalization patches

2016-10-27 Thread Shreyansh Jain
Hello Ferruh, On Wednesday 26 October 2016 07:55 PM, Ferruh Yigit wrote: > Hi Shreyansh, > > On 10/26/2016 2:12 PM, Shreyansh Jain wrote: >> On Wednesday 26 October 2016 06:30 PM, Shreyansh Jain wrote: >>> rte_device/driver generalization patches [1] were

[dpdk-dev] [PATCH v2] eal: fix libabi macro for device generalization patches

2016-10-27 Thread Shreyansh Jain
On Wednesday 26 October 2016 08:53 PM, Thomas Monjalon wrote: > 2016-10-26 15:25, Ferruh Yigit: >> eal version seems already increased for this release, 2 => 3, in: >> d7e61ad3ae36 ("log: remove deprecated history dump") > > Yes thanks. > >> So NO need to increase it again, sorry for late notice,

<    1   2   3   4   5   >