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

2016-10-27 Thread Shreyansh Jain
s been removed and release notes for 16.11 added. [1] http://dpdk.org/ml/archives/dev/2016-September/047087.html Signed-off-by: Shreyansh Jain -- v3: - add API/ABI change info in commit log - fix library version change notification in release note - fix erroneous change to librte_eal version

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

2016-10-27 Thread Shreyansh Jain
Hello Thomas, On Thursday 27 October 2016 03:45 PM, Thomas Monjalon wrote: > 2016-10-27 12:38, 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. > &

[dpdk-dev] [PATCH v4] eal: fix lib version for device generalization patches

2016-10-27 Thread Shreyansh Jain
_device_name API |- moved device naming to EAL Also, deprecation notice from 16.07 has been removed and release notes for 16.11 added. [1] http://dpdk.org/ml/archives/dev/2016-September/047087.html Signed-off-by: Shreyansh Jain -- v4: - fix spelling mistakes and incorrect symbol name in doc

[dpdk-dev] [PATCH v4] eal: fix lib version for device generalization patches

2016-10-27 Thread Shreyansh Jain
On Thursday 27 October 2016 04:59 PM, Shreyansh Jain wrote: > index aa0c09a..db20567 100644 > --- a/doc/guides/rel_notes/release_16_11.rst > +++ b/doc/guides/rel_notes/release_16_11.rst > @@ -201,6 +201,32 @@ API Changes > * The ``file_name`` data type of ``struct rte_por

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

2016-10-27 Thread Shreyansh Jain
e 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/Makefile | 1 + app/test/test_soc.c | 404 +++

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

2016-10-27 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 v6 03/21] eal/linux: generalize PCI kernel unbinding driver to EAL

2016-10-27 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 v6 04/21] eal/linux: generalize PCI kernel driver extraction to EAL

2016-10-27 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 v6 02/21] eal: generalize PCI map/unmap resource to EAL

2016-10-27 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 v6 05/21] eal: define container macro

2016-10-27 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 v6 06/21] eal/soc: introduce very essential SoC infra definitions

2016-10-27 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 v6 07/21] eal/soc: add SoC PMD register/unregister logic

2016-10-27 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 v6 08/21] eal/soc: implement SoC device list and dump

2016-10-27 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 v6 09/21] eal: introduce command line enable SoC option

2016-10-27 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 v6 10/21] eal/soc: init SoC infra from EAL

2016-10-27 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 v6 12/21] eal/soc: extend and utilize devargs

2016-10-27 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 v6 13/21] eal/soc: add drv_flags

2016-10-27 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 v6 14/21] eal/soc: add intr_handle

2016-10-27 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 v6 15/21] eal/soc: add default scan for Soc devices

2016-10-27 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 v6 16/21] eal/soc: additional features for SoC

2016-10-27 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 v6 17/21] ether: utilize container_of for pci_drv

2016-10-27 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 v6 18/21] ether: verify we copy info from a PCI device

2016-10-27 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 v6 19/21] ether: extract function eth_dev_get_intr_handle

2016-10-27 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 v6 20/21] ether: introduce ethernet dev probe remove

2016-10-27 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 v6 21/21] eal/crypto: Support rte_soc_driver/device for cryptodev

2016-10-27 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 v7 00/21] Introduce SoC device/driver framework for EAL

2016-10-28 Thread Shreyansh Jain
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/Makefile | 1 + app/test/test_

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

2016-10-28 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 v7 02/21] eal: generalize PCI map/unmap resource to EAL

2016-10-28 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 v7 03/21] eal/linux: generalize PCI kernel unbinding driver to EAL

2016-10-28 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 v7 04/21] eal/linux: generalize PCI kernel driver extraction to EAL

2016-10-28 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 v7 05/21] eal: define container macro

2016-10-28 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 v7 06/21] eal/soc: introduce very essential SoC infra definitions

2016-10-28 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 v7 07/21] eal/soc: add SoC PMD register/unregister logic

2016-10-28 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 v7 08/21] eal/soc: implement SoC device list and dump

2016-10-28 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 v7 09/21] eal: introduce command line enable SoC option

2016-10-28 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 v7 10/21] eal/soc: init SoC infra from EAL

2016-10-28 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 v7 11/21] eal/soc: implement probing of drivers

2016-10-28 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 v7 12/21] eal/soc: extend and utilize devargs

2016-10-28 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 v7 14/21] eal/soc: add intr_handle

2016-10-28 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 v7 13/21] eal/soc: add drv_flags

2016-10-28 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 v7 15/21] eal/soc: add default scan for Soc devices

2016-10-28 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 v7 17/21] ether: utilize container_of for pci_drv

2016-10-28 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 v7 16/21] eal/soc: additional features for SoC

2016-10-28 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 v7 18/21] ether: verify we copy info from a PCI device

2016-10-28 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 v7 19/21] ether: extract function eth_dev_get_intr_handle

2016-10-28 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 v7 20/21] ether: introduce ethernet dev probe remove

2016-10-28 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 v7 21/21] eal/crypto: Support rte_soc_driver/device for cryptodev

2016-10-28 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 v7 00/21] Introduce SoC device/driver framework for EAL

2016-10-28 Thread Shreyansh Jain
On Friday 28 October 2016 05:56 PM, Shreyansh Jain wrote: > Introduction: > = > > This patch set is direct derivative of Jan's original series [1],[2]. > > - This version is based on master HEAD (ca41215) > > - In this, I am merging the series [11] bac

<    1   2   3   4   5