[dpdk-dev] [PATCH v3 0/6] Cisco Systems Inc. VIC Ethernet PMD - ENIC PMD

2014-11-23 Thread Sujith Sankar
ENIC PMD is the poll-mode driver for the Cisco Systems Inc. VIC to be used with DPDK suite. Sujith Sankar (6): ENIC PMD License ENIC PMD Makefile VNIC common code partially shared with ENIC kernel mode driver ENIC PMD specific code DPDK-ENIC PMD interface DPDK changes for accommodating

[dpdk-dev] [PATCH v3 1/6] ENIC PMD License

2014-11-23 Thread Sujith Sankar
Signed-off-by: Sujith Sankar --- lib/librte_pmd_enic/LICENSE | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 lib/librte_pmd_enic/LICENSE diff --git a/lib/librte_pmd_enic/LICENSE b/lib/librte_pmd_enic/LICENSE new file mode 100644 index 000..0ad2216 --- /

[dpdk-dev] [PATCH v3 2/6] ENIC PMD Makefile

2014-11-23 Thread Sujith Sankar
Signed-off-by: Sujith Sankar --- lib/librte_pmd_enic/Makefile | 67 1 file changed, 67 insertions(+) create mode 100644 lib/librte_pmd_enic/Makefile diff --git a/lib/librte_pmd_enic/Makefile b/lib/librte_pmd_enic/Makefile new file mode 100644 index 0

[dpdk-dev] [PATCH v3 3/6] VNIC common code partially shared with ENIC kernel mode driver

2014-11-23 Thread Sujith Sankar
Signed-off-by: Sujith Sankar --- lib/librte_pmd_enic/vnic/cq_desc.h | 126 lib/librte_pmd_enic/vnic/cq_enet_desc.h | 261 lib/librte_pmd_enic/vnic/rq_enet_desc.h | 76 +++ lib/librte_pmd_enic/vnic/vnic_cq.c | 117 lib/librte_pmd_enic/vnic/vnic_cq.h | 1

[dpdk-dev] [PATCH v3 4/6] ENIC PMD specific code

2014-11-23 Thread Sujith Sankar
Signed-off-by: Sujith Sankar --- lib/librte_pmd_enic/enic.h| 158 + lib/librte_pmd_enic/enic_clsf.c | 244 +++ lib/librte_pmd_enic/enic_compat.h | 142 lib/librte_pmd_enic/enic_main.c | 1328 + lib/librte_pmd_enic/enic_res.c| 22

[dpdk-dev] [PATCH v3 5/6] DPDK-ENIC PMD interface

2014-11-23 Thread Sujith Sankar
Signed-off-by: Sujith Sankar --- lib/librte_pmd_enic/enic_etherdev.c | 613 1 file changed, 613 insertions(+) create mode 100644 lib/librte_pmd_enic/enic_etherdev.c diff --git a/lib/librte_pmd_enic/enic_etherdev.c b/lib/librte_pmd_enic/enic_etherdev.c new f

[dpdk-dev] [PATCH v3 6/6] DPDK changes for accommodating ENIC PMD

2014-11-23 Thread Sujith Sankar
Signed-off-by: Sujith Sankar --- config/common_linuxapp | 5 + lib/Makefile | 1 + lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 7 +++ lib/librte_eal/linuxapp/eal/include/eal_pci_init.h | 1 + mk/rte.app.mk

[dpdk-dev] [PATCH v3 00/14] Patches for DPDK to support Power architecture

2014-11-23 Thread Chao Zhu
The set of patches add IBM Power architecture to the DPDK. It adds the required support to the EAL library. This set of patches doesn't support full DPDK function on Power processors. So a separate common configuration file is used for Power to turn off some un-migrated functions. To compile on

[dpdk-dev] [PATCH v3 01/14] Add compiling definations for IBM Power architecture

2014-11-23 Thread Chao Zhu
To make DPDK run on IBM Power architecture, configuration files for Power architecuture are added. Also, the compiling related .mk files are added. Signed-off-by: Chao Zhu --- config/common_linuxapp_powerpc | 394 +++ config/defconfig_ppc_64-power8-linuxapp-

[dpdk-dev] [PATCH v3 03/14] Add byte order operations for IBM Power architecture

2014-11-23 Thread Chao Zhu
This patch adds architecture specific byte order operations for IBM Power architecture. Power architecture support both big endian and little endian. This patch also adds a RTE_ARCH_BIG_ENDIAN micro. Signed-off-by: Chao Zhu --- config/defconfig_ppc_64-power8-linuxapp-gcc|1 + .../com

[dpdk-dev] [PATCH v3 02/14] Add atomic operations for IBM Power architecture

2014-11-23 Thread Chao Zhu
This patch adds architecture specific atomic operation file for IBM Power architecture CPU. Signed-off-by: Chao Zhu --- .../common/include/arch/ppc_64/rte_atomic.h| 415 1 files changed, 415 insertions(+), 0 deletions(-) create mode 100644 lib/librte_eal/common/inc

[dpdk-dev] [PATCH v3 05/14] Add prefetch operation for IBM Power architecture

2014-11-23 Thread Chao Zhu
This patch add architecture specific prefetch operations for IBM Power architecture. Signed-off-by: Chao Zhu --- .../common/include/arch/ppc_64/rte_prefetch.h | 61 1 files changed, 61 insertions(+), 0 deletions(-) create mode 100644 lib/librte_eal/common/include/arc

[dpdk-dev] [PATCH v3 04/14] Add CPU cycle operations for IBM Power architecture

2014-11-23 Thread Chao Zhu
IBM Power architecture doesn't have TSC register to get CPU cycles. This patch implements the time base register read instead of TSC register of x86 on IBM Power architecture. Signed-off-by: Chao Zhu --- .../common/include/arch/ppc_64/rte_cycles.h| 86 1 files chan

[dpdk-dev] [PATCH v3 06/14] Add spinlock operation for IBM Power architecture

2014-11-23 Thread Chao Zhu
This patch adds spinlock operations for IBM Power architecture. Signed-off-by: Chao Zhu --- .../common/include/arch/ppc_64/rte_spinlock.h | 73 1 files changed, 73 insertions(+), 0 deletions(-) create mode 100644 lib/librte_eal/common/include/arch/ppc_64/rte_spinlock

[dpdk-dev] [PATCH v3 07/14] Add vector memcpy for IBM Power architecture

2014-11-23 Thread Chao Zhu
The SSE based memory copy in DPDK only support x86. This patch adds altivec based memory copy functions for IBM Power architecture. This patch includes altivec.h which requires GCC version>= 4.8. Signed-off-by: Chao Zhu --- .../common/include/arch/ppc_64/rte_memcpy.h| 224 ++

[dpdk-dev] [PATCH v3 08/14] Add CPU flag checking for IBM Power architecture

2014-11-23 Thread Chao Zhu
IBM Power processor doesn't have CPU flag hardware registers. This patch uses aux vector software register to get CPU flags and add CPU flag checking support for IBM Power architecture. Signed-off-by: Chao Zhu --- app/test/test_cpuflags.c | 35 .../common/include

[dpdk-dev] [PATCH v3 09/14] Remove iopl operation for IBM Power architecture

2014-11-23 Thread Chao Zhu
iopl() call is mostly for the i386 architecture. In Power and other architecture, it doesn't exist. This patch modified rte_eal_iopl_init() and make it return -1 for Power and other architecture. Thus rte_config.flags will not contain EAL_FLG_HIGH_IOPL flag for other architecture. Signed-off-by: C

[dpdk-dev] [PATCH v3 11/14] Add huge page size define for IBM Power architecture

2014-11-23 Thread Chao Zhu
IBM Power architecture has different huge page sizes (16MB, 16GB) than x86.This patch defines RTE_PGSIZE_16M and RTE_PGSIZE_16G in the rte_page_sizes enum variable and adds huge page size support of DPDK for IBM Power architecture. Signed-off-by: Chao Zhu --- app/test/test_memzone.c

[dpdk-dev] [PATCH v3 10/14] Add cache size define for IBM Power Architecture

2014-11-23 Thread Chao Zhu
IBM Power architecture has different cache line size (128 bytes) than x86 (64 bytes). This patch defines CACHE_LINE_SIZE to 128 bytes to override the default value 64 bytes to support IBM Power Architecture. Signed-off-by: Chao Zhu --- app/test/test_malloc.c |8 mk/arch/ppc_64/r

[dpdk-dev] [PATCH v3 13/14] test_memzone:fix finding the second smallest segment

2014-11-23 Thread Chao Zhu
Curent implementation in test_memzone.c has bugs in finding the second smallest memory segment. It's the last smallest memory segment, but it's not the second smallest memory segment. This bug may cause test failure in some cases. This patch fixes this bug. Signed-off-by: Chao Zhu --- app/test/t

[dpdk-dev] [PATCH v3 14/14] Fix the compiling of test-pmd on IBM Power Architecture

2014-11-23 Thread Chao Zhu
This patch fixes compiling problems on IBM Power architecture and turn on the test-pmd compiling option in configuration file. Actually, this is an big endian compiling fix. Signed-off-by: Chao Zhu --- app/test-pmd/config.c | 33 +++-- config/common_linuxap

[dpdk-dev] [PATCH v3 12/14] Add eal memory support for IBM Power Architecture

2014-11-23 Thread Chao Zhu
The mmap of hugepage files on IBM Power starts from high address to low address. This is different from x86. This patch modified the memory segment detection code to get the correct memory segment layout on Power architecture. This patch also added a commond ARCH_PPC_64 defination for 64 bit system

[dpdk-dev] [PATCH v6 0/8] link bonding

2014-11-23 Thread Thomas Monjalon
2014-11-21 19:36, Thomas Monjalon: > 2014-11-21 17:07, Doherty, Declan: > > Hey Thomas, have you had a chance to have a look at this patchset, if you > > have any comments or issues can you let me know asap, as the patch sets for > > link bonding modes 4 & 5 are dependent on this set and I don't wa

[dpdk-dev] [PATCH v3 01/14] Add compiling definations for IBM Power architecture

2014-11-23 Thread Neil Horman
On Sun, Nov 23, 2014 at 08:22:09PM -0500, Chao Zhu wrote: > To make DPDK run on IBM Power architecture, configuration files for > Power architecuture are added. Also, the compiling related .mk files are > added. > > Signed-off-by: Chao Zhu > --- > config/common_linuxapp_powerpc | 3

[dpdk-dev] [PATCH v3 6/6] DPDK changes for accommodating ENIC PMD

2014-11-23 Thread Neil Horman
On Sun, Nov 23, 2014 at 09:38:19PM +0530, Sujith Sankar wrote: > Signed-off-by: Sujith Sankar > --- > config/common_linuxapp | 5 + > lib/Makefile | 1 + > lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 7 +++ > lib/l