[dpdk-dev] [PATCH v2] test-pmd: Fix pointer aliasing error

2014-12-04 Thread Michael Qiu
in function rte_raw_cksum() try to convert 'const char *' to 'const uint16_t *'. This patch is one workaround fix. Signed-off-by: Michael Qiu --- lib/librte_net/rte_ip.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_net/rte_ip.h b/lib/librt

[dpdk-dev] [PATCH] VFIO: Avoid to enable vfio while the module not loaded

2014-12-04 Thread Michael Qiu
: Setting up memory... This may make user confuse, this patch make it reasonable and much more soomth to user. Signed-off-by: Michael Qiu --- lib/librte_eal/common/include/rte_common.h | 37 ++ lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 23 +-- 2

[dpdk-dev] [PATCH v3] test-pmd: Fix pointer aliasing error

2014-12-04 Thread Michael Qiu
in function rte_raw_cksum() try to convert 'const char *' to 'const uint16_t *'. This patch is one workaround fix. Signed-off-by: Michael Qiu --- v3 --> v2: use uintptr_t instead of unsigned long to save pointer. v2 --> v1: Workaround soluti

[dpdk-dev] [PATCH v3] Fix two compile issues with i686 platform

2014-12-04 Thread Michael Qiu
, but RTE_PGSIZE_16M and RTE_PGSIZE_16G are always 64-bit. Define RTE_PGSIZE_16G only in 64 bit platform to avoid this issue. Signed-off-by: Michael Qiu --- v3 ---> v2 Change RTE_PGSIZE_16G from ULL to UL to keep all entries consistent V2 ---> v1 Change tw

[dpdk-dev] [PATCH v2] VFIO: Avoid to enable vfio while the module not loaded

2014-12-04 Thread Michael Qiu
: Setting up memory... This may make user confuse, this patch make it reasonable and much more soomth to user. Signed-off-by: Michael Qiu --- v2 --> v1: 1. Move check_module() from rte_common.h to eal_private.h and rename to rte_eal_check_module(). To make

[dpdk-dev] [PATCH v3] VFIO: Avoid to enable vfio while the module not loaded

2014-12-08 Thread Michael Qiu
: Setting up memory... This may make user confuse, this patch make it reasonable and much more soomth to user. Signed-off-by: Michael Qiu --- v3 --> v2: 1. Add error log in rte_eal_check_module() 2. Some code clean up. v2 --> v1: 1. Move check_module() from rte_commo

[dpdk-dev] [PATCH v4] VFIO: Avoid to enable vfio while the module not loaded

2014-12-08 Thread Michael Qiu
: Setting up memory... This may make user confuse, this patch make it reasonable and much more soomth to user. Signed-off-by: Michael Qiu --- v4 --> v3: 1. Remove RTE_LOG for params check 2. Remove "vfio" module check as "vfio_iommu_type1" loaded

[dpdk-dev] [PATCH v5] VFIO: Avoid to enable vfio while the module not loaded

2014-12-10 Thread Michael Qiu
: Setting up memory... This may make user confuse, this patch make it reasonable and much more soomth to user. Signed-off-by: Michael Qiu --- v5 --> v4 1. Move rte_eal_check_module() body to eal.c 2. Clean up "unsupported IOMMU type" log v4 --> v3: 1. Re

[dpdk-dev] [PATCH] Avoid possible memory cpoy when sort hugepages

2014-12-10 Thread Michael Qiu
remove this check. This patch also includes some coding style fix. Signed-off-by: Michael Qiu --- lib/librte_eal/linuxapp/eal/eal_memory.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH 1/2 v4] Fix compile issue with hugepage_sz in 32-bit system

2014-12-10 Thread Michael Qiu
sizes for IBM Power The root cause is that size_t is 32-bit in i686 platform, but RTE_PGSIZE_16M and RTE_PGSIZE_16G are always 64-bit. Force hugepage_sz to always 64-bit to avoid this issue. Signed-off-by: Michael Qiu --- v4 ---> v3 Change hugepage_sz from size_t to uint6

[dpdk-dev] [PATCH 2/2] Fix compile issue of eal with icc compile

2014-12-10 Thread Michael Qiu
n i686 platform "void *" is 32-bit. It is safe to cast to size_t and make it works in both 32 & 64-bit platform. Signed-off-by: Michael Qiu --- lib/librte_eal/linuxapp/eal/eal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal.

[dpdk-dev] [PATCH 0/2 v4] Fix two compile issues with i686 platform

2014-12-10 Thread Michael Qiu
These two issues are both introuduced by commit b77b5639: mem: add huge page sizes for IBM Power Michael Qiu (2): Fix compile issue with hugepage_sz in 32-bit system Fix compile issue of eal with icc compile lib/librte_eal/common/eal_common_memory.c | 2 +- lib/librte_eal/common

[dpdk-dev] [PATCH v6] VFIO: Avoid to enable vfio while the module not loaded

2014-12-10 Thread Michael Qiu
: Setting up memory... This may make user confuse, this patch make it reasonable and much more soomth to user. Signed-off-by: Michael Qiu --- v6 --> v5 1. Change rte_eal_check_module() to normal function instead of inline 2. limit fscanf to get 29 charactors not incl

[dpdk-dev] [PATCH] ixgbe: fix segmentation fault when start secondary process

2014-12-18 Thread Michael Qiu
when secondary process startup. Reported-by: Yong Liu Signed-off-by: Michael Qiu --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c index 9401916

[dpdk-dev] [PATCH v2] ixgbe: fix segmentation fault when start secondary process

2014-12-19 Thread Michael Qiu
when secondary process startup. Reported-by: Yong Liu Signed-off-by: Michael Qiu --- v2 --> v1: Log clean up lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c b/lib/librte_pmd_ix

[dpdk-dev] [PATCH 1/2] examples/tep_term: Fix l4_len issue

2016-10-18 Thread Michael Qiu
l4_len is not fixed, althrough mostly it is a fixed value, but when guest using iperf to do some tests, the l4_len will have another 12 bytes optional fields. Fixes: 2bb43bd4350a("examples/tep_term: add TSO offload configuration") Signed-off-by: Michael Qiu --- examples/tep_terminati

[dpdk-dev] [PATCH 2/2] examples/tep_term: Fix packet len for multi-seg mbuf

2016-10-18 Thread Michael Qiu
For multi-seg mbuf, ip->total_length should be pkt_len subtract ether len. Fixes: 4abe471ed6fc("examples/tep_term: implement VXLAN processing") Signed-off-by: Michael Qiu --- examples/tep_termination/vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding

2015-08-07 Thread Michael Qiu
For some ethnet-switch like intel RRC, all the packet forwarded out by DPDK will be dropped in switch side, so the packet generator will never receive the packet. Signed-off-by: Michael Qiu --- app/test-pmd/csumonly.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test-pmd

[dpdk-dev] [PATCH] librte_eal: Fix wrong header file for old gcc version

2015-08-24 Thread Michael Qiu
For __SSE3__, the corresponding header file should be pmmintrin.h, tmmintrin.h works for __SSSE3__. Signed-off-by: Michael Qiu --- lib/librte_eal/common/include/arch/x86/rte_vect.h | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/common/include/arch/x86/rte_vect.h b/lib

[dpdk-dev] [PATCH v2] lib/librte_sched: Fix compile with gcc 4.3.4

2015-12-02 Thread Michael Qiu
hed: enable SSE optimizations in config") Signed-off-by: Michael Qiu --- v2 --> v1: include header file rte_vect.h instead of gcc version check change __AVX__ to __SSE2__ since all vector function are SSE2 related. lib/librte_sched/rte_sched.c | 9 +++-- 1 file changed, 7 ins

[dpdk-dev] [PATCH v3] lib/librte_sched: Fix compile with gcc 4.3.4

2015-12-02 Thread Michael Qiu
hed: enable SSE optimizations in config") Signed-off-by: Michael Qiu --- v3 --> v2: reformat commit log move rte_vect.h inside RTE_SCHED_VECTOR v2 --> v1: include header file rte_vect.h instead of gcc version check change __AVX__ to __SSE2__ since all vector funct

[dpdk-dev] [PATCH] ip_pipeline: Fix compile issue with strict-aliasing

2015-12-09 Thread Michael Qiu
From: root strict-aliasing Signed-off-by: Michael Qiu --- .../ip_pipeline/pipeline/pipeline_routing_be.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/ip_pipeline/pipeline/pipeline_routing_be.c b/examples/ip_pipeline/pipeline

[dpdk-dev] [PATCH] examples/ip_pipeline: Fix compile issue with strict-aliasing

2015-12-09 Thread Michael Qiu
strict-aliasing rules This because the code break strict-aliasing rule. The patch solve this issue. Fixes: 0ae7275810f1 (examples/ip_pipeline: add more functions to routing pipeline) Signed-off-by: Michael Qiu --- examples/ip_pipeline/pipeline/pipeline_routing_be.c | 11 --- 1 file

[dpdk-dev] [PATCH] examples/netmap_compat: Fix compile issue with POLLRDNORM

2015-12-11 Thread Michael Qiu
patibility example) In suse11 sp3, POLLRDNORM will not be defined because "__USE_XOPEN" issue. This patch add check if it is not defined, define it. Signed-off-by: Michael Qiu --- examples/netmap_compat/lib/compat_netmap.c | 8 1 file changed, 8 insertions(+) diff --git a/ex

[dpdk-dev] [PATCH] librte_pmd_ixgbe: Add queue start failure check

2015-01-15 Thread Michael Qiu
For ixgbe, when queue start failure, for example, mbuf allocate failure, the device will still start success, which could be an issue. Add return status check of queue start to avoid this issue. Signed-off-by: Michael Qiu --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 6 +- lib

[dpdk-dev] [PATCH v2] librte_pmd_ixgbe: Add queue start failure check

2015-01-27 Thread Michael Qiu
For ixgbe, when queue start failure, for example, mbuf allocate failure, the device will still start success, which could be an issue. Add return status check of queue start to avoid this issue. Signed-off-by: Michael Qiu --- v2 --> v1 . remove duplicated error message

[dpdk-dev] [PATCH 1/2] fm10k: Add Atwood Channel Support

2016-01-11 Thread Michael Qiu
Atwood Channel is intel 25G NIC, and this patch add the support in DPDK. Signed-off-by: Michael Qiu --- drivers/net/fm10k/base/fm10k_osdep.h| 4 lib/librte_eal/common/include/rte_pci_dev_ids.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/fm10k/base

[dpdk-dev] [PATCH 2/2] fm10k: update doc for Atwood Channel

2016-01-11 Thread Michael Qiu
Atwood Channel is 20GbE NIC and belongs to Intel FM10K family, update the doc for it. Signed-off-by: Michael Qiu --- doc/guides/rel_notes/release_2_3.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/rel_notes/release_2_3.rst b/doc/guides/rel_notes/release_2_3.rst index

[dpdk-dev] [PATCH] lib/librte_eal: Fix compile issue with gcc 5.3.1

2016-01-28 Thread Michael Qiu
mcpy for AVX512 platforms") Signed-off-by: Michael Qiu --- app/test/test_memcpy_perf.c | 2 +- lib/librte_eal/common/include/arch/x86/rte_memcpy.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_memcpy_perf.c b/app/test/test_memcpy_

[dpdk-dev] [PATCH] ixgbe: Fix disable interrupt twice

2016-01-29 Thread Michael Qiu
upt already been disabled in stop stage. Since it is enabled in init stage, better remove from stop stage. Fixes: 0eb609239efd ("ixgbe: enable Rx queue interrupts for PF and VF") Signed-off-by: Michael Qiu --- drivers/net/ixgbe/ixgbe_ethdev.c | 6 -- 1 file changed, 6 deletions(-)

[dpdk-dev] [PATCH v2] ixgbe: Fix disable interrupt twice

2016-01-29 Thread Michael Qiu
upt already been disabled in stop stage. Since it is enabled in init stage, better remove from stop stage. Fixes: 0eb609239efd ("ixgbe: enable Rx queue interrupts for PF and VF") Signed-off-by: Michael Qiu --- v2 --> v1: fix error in commit log word "interrupte" driver

[dpdk-dev] [PATCH] testpmd: Fix wrong message when no port started

2015-02-03 Thread Michael Qiu
The log message is wrong when no port started. Signed-off-by: Michael Qiu --- app/test-pmd/testpmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 773b8af..ebf9448 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd

[dpdk-dev] [PATCH] eal_pci: Fix max_vfs missing for none igb_uio driver

2015-02-11 Thread Michael Qiu
max_vfs will only be created by igb_uio driver, for other drivers like vfio or pci_uio_generic, max_vfs will miss. But sriov_numvfs is not driver related, just get the vf numbers from that field. Signed-off-by: Michael Qiu --- lib/librte_eal/linuxapp/eal/eal_pci.c | 2 +- 1 file changed, 1

[dpdk-dev] [PATCH v2] eal_pci: Fix max_vfs missing for none igb_uio driver

2015-02-11 Thread Michael Qiu
max_vfs will only be created by igb_uio driver, for other drivers like vfio or pci_uio_generic, max_vfs will miss. But sriov_numvfs is not driver related, just get the vf numbers from that field. Signed-off-by: Michael Qiu --- v2 --> v1: backport for kernel version less than 3.8

[dpdk-dev] [PATCH] librte_eal/common: Fix cast from pointer to integer of different size

2015-03-02 Thread Michael Qiu
/i686-native-linuxapp-gcc/include/rte_memcpy.h:592:23: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] dstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16; Type 'long long' is 64-bit in i686 platform while 'void *' is 32-bit. Si

[dpdk-dev] [PATCH] app/test-pmd: Fix log issue without nic binded

2015-03-02 Thread Michael Qiu
As hotplug has been enabled, start the testpmd with no nic binded will show one error log "Please stop the ports first": Interactive-mode selected Please stop the ports first Done testpmd> This issue is cause by the logic of check link status. Signed-off-by: Michael Qiu ---

[dpdk-dev] [PATCH v2] librte_eal/common: Fix cast from pointer to integer of different size

2015-03-03 Thread Michael Qiu
/i686-native-linuxapp-gcc/include/rte_memcpy.h:592:23: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] dstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16; Type 'long long' is 64-bit in i686 platform while 'void *' is 32-bit. Si

[dpdk-dev] [PATCH v3] librte_eal/common: Fix cast from pointer to integer of different size

2015-03-05 Thread Michael Qiu
./i686-native-linuxapp-gcc/include/rte_memcpy.h:592:23: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] dstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16; Type 'long long' is 64-bit in i686 platform while 'void *' is 32-bit.

[dpdk-dev] [PATCH 0/3] dpdk2.0-rc1 build error fix

2015-03-05 Thread Michael Qiu
This patch set is to fix dpdk2.0-rc1 compile error. Michael Qiu (3): librte_hash: Fix unsupported instruction `crc32' in i686 platform app/test: Fix size_t printf formart issue librte_eal/common: Fix redeclaration of enumerator ?REG_EAX? app/test/test_h

[dpdk-dev] [PATCH 1/3] librte_hash: Fix unsupported instruction `crc32' in i686 platform

2015-03-05 Thread Michael Qiu
CC rte_hash.o Error: unsupported instruction `crc32' The root cause is that i686 platform does not support 'crc32q' Need make it only available in x86_64 platform Signed-off-by: Michael Qiu --- lib/librte_hash/rte_hash_crc.h | 4 1 file changed, 4 insertions(+) d

[dpdk-dev] [PATCH 2/3] app/test: Fix size_t printf formart issue

2015-03-05 Thread Michael Qiu
test_hash.c: In function ?test_crc32_hash_alg_equiv?: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?size_t? [-Werror=format] According to C99, for size_t type should use formart "%zu" Signed-off-by: Michael Qiu --- app/test/test_hash.c

[dpdk-dev] [PATCH 3/3] librte_eal/common: Fix redeclaration of enumerator ‘REG_EAX’

2015-03-05 Thread Michael Qiu
include/rte_cpuflags.h:154:2: error: redeclaration of enumerator ?REG_EAX? In file included from /usr/include/signal.h:358:0, from /usr/include/sys/wait.h:30, from /root/dpdk/app/test/test_mp_secondary.c:50: /usr/include/sys/ucontext.h:180:3: note: previous definit

[dpdk-dev] [PATCH 3/3 v2] =?UTF-8?q?librte=5Feal/common:=20Fix=20redeclaration=20of?= =?UTF-8?q?=20enumerator=20=E2=80=98REG=5FEAX=E2=80=99?=

2015-03-05 Thread Michael Qiu
include/rte_cpuflags.h:154:2: error: redeclaration of enumerator ?REG_EAX? In file included from /usr/include/signal.h:358:0, from /usr/include/sys/wait.h:30, from /root/dpdk/app/test/test_mp_secondary.c:50: /usr/include/sys/ucontext.h:180:3: note: previous definit

[dpdk-dev] [PATCH 3/3 v3] =?UTF-8?q?librte=5Feal/common:=20Fix=20redeclaration=20of?= =?UTF-8?q?=20enumerator=20=E2=80=98REG=5FEAX=E2=80=99?=

2015-03-05 Thread Michael Qiu
definition of ?REG_EAX? was here In i686, from REG_EAX to REG_EDX are all defined in /usr/include/sys/ucontext.h Rename to CPU_REG_EAX to avoid this issue. Signed-off-by: Michael Qiu --- v3 --> v2: Fix signed-off-by field v2 --> v1: rename CPU_REG_EAX to RTE_R

[dpdk-dev] [PATCH 2/3 v2] app/test: Fix size_t printf format issue

2015-03-05 Thread Michael Qiu
test_hash.c: In function ?test_crc32_hash_alg_equiv?: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?size_t? [-Werror=format] According to C99, for size_t type should use format "%zu" Signed-off-by: Michael Qiu --- v2 --> v1:

[dpdk-dev] [PATCH 1/3 v2] librte_hash: Fix unsupported instruction `crc32' in i686 platform

2015-03-06 Thread Michael Qiu
CC rte_hash.o Error: unsupported instruction `crc32' The root cause is that i686 platform does not support 'crc32q' Need make it only available in x86_64 platform Signed-off-by: Michael Qiu --- v2 --> v1: Make crc32 instruction only works in X86 platform lib/librte_h

[dpdk-dev] [PATCH] librte_eal/common: Fix cast from pointer to integer of different size

2015-03-06 Thread Michael Qiu
./i686-native-linuxapp-gcc/include/rte_memcpy.h:592:23: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] dstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16; Type 'long long' is 64-bit in i686 platform while 'void *' is 32-bit.

[dpdk-dev] [PATCH 2/3 v3] app/test: Fix size_t printf format issue

2015-03-06 Thread Michael Qiu
test_hash.c: In function ?test_crc32_hash_alg_equiv?: error: format ?%lu? expects argument of type ?long unsigned int?, but argument 2 has type ?size_t? [-Werror=format] According to C99, for size_t type should use format "%zu" Signed-off-by: Michael Qiu Acked-by: Bruce Richards

[dpdk-dev] [PATCH] librte_pmd_fm10k: Set pointer to NULL after free

2015-03-06 Thread Michael Qiu
It could be a potential not safe issue. Signed-off-by: Michael Qiu --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_fm10k/fm10k_ethdev.c b/lib/librte_pmd_fm10k/fm10k_ethdev.c index 07ea1e7..30962d3 100644

[dpdk-dev] [PATCH 1/3 v3] librte_hash: Fix unsupported instruction `crc32' in i686 platform

2015-03-09 Thread Michael Qiu
CC rte_hash.o Error: unsupported instruction `crc32' The root cause is that i686 platform does not support 'crc32q' Need make it only available in x86_64 platform Signed-off-by: Michael Qiu Acked-by: Yerden Zhumabekov --- v3 --> v2: Add sub function for #else which r

[dpdk-dev] [PATCH] testpmd: Fix action of operationg invalid port

2015-03-09 Thread Michael Qiu
Currently, if try to start/stop/close one invalid prot, no error shows in testpmd. This is a bug, need check the port number. Signed-off-by: Michael Qiu --- app/test-pmd/config.c | 3 +++ app/test-pmd/testpmd.c | 14 -- 2 files changed, 15 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH] common/rte_memcpy: Fix x86intrin.h missed

2015-03-13 Thread Michael Qiu
rte_memcpy.h(46): catastrophic error: cannot open source file "x86intrin.h" For icc and old gcc, this header is not included. Signed-off-by: Michael Qiu --- lib/librte_eal/common/include/arch/x86/rte_memcpy.h | 20 1 file changed, 20 insertions(+) diff -

[dpdk-dev] [PATCH] librte_hash: Fix crc32 error when complie i686 in x86_64

2015-03-23 Thread Michael Qiu
When compile target i686 in platform x86_64, the stud fuction will be called, and return zero. This patch fix this issue. Signed-off-by: Michael Qiu --- lib/librte_hash/rte_hash_crc.h | 35 ++- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/lib

[dpdk-dev] [PATCH] fm10k: Fix queue start twice failed

2015-03-25 Thread Michael Qiu
When use "port 0 rxq 0 start" in testpmd twice, the rx queue 0 on port 0 will failed to work. The root casue is the rxqctl enable bit need to reset if already enabled. Signed-off-by: Michael Qiu --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 56 + 1 fi

[dpdk-dev] [PATCH] vhost: Fix Segmentation fault of NULL address

2015-03-26 Thread Michael Qiu
Function gpa_to_vva() could return zero, while this will lead a Segmentation fault. This patch is to fix this issue. Signed-off-by: Michael Qiu --- lib/librte_vhost/vhost_rxtx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c

[dpdk-dev] [PATCH v2 1/2] fm10k: add Intel Boulder Rapid NIC support

2015-10-26 Thread Michael Qiu
Boulder Rapid is Intel new NIC within fm10k family. This patch make DPDK driver support this new NIC. Signed-off-by: Michael Qiu Acked-by : Jing Chen Acked-by : Shaopeng He --- drivers/net/fm10k/base/fm10k_osdep.h| 4 lib/librte_eal/common/include/rte_pci_dev_ids.h | 2 ++ 2

[dpdk-dev] [PATCH v2 2/2] doc: release note update for Boulder Rapid Support

2015-10-26 Thread Michael Qiu
Update the release note for Intel's new NIC Boulder Rapid. Signed-off-by: Michael Qiu --- doc/guides/rel_notes/release_2_2.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index ab1c25f..7b34786 100644

[dpdk-dev] [PATCH v2 0/2] Intel new NIC Boulder Rapid support

2015-10-26 Thread Michael Qiu
Boulder Rapid is a new 100G NIC of Intel fm10k family, this patch set enable it in DPDK. change log: V2 --> v1 update the release notes Michael Qiu (2): fm10k: add Intel Boulder Rapid NIC support doc: release note update for Boulder Rapid Support doc/guides/rel_notes/release_

[dpdk-dev] [RFC PATCH] librte_pmd_fm10k: Add hotplug support for fm10k

2015-05-31 Thread Michael Qiu
Add hotplug support for fm10k Signed-off-by: Michael Qiu --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 134 ++-- 1 file changed, 129 insertions(+), 5 deletions(-) diff --git a/lib/librte_pmd_fm10k/fm10k_ethdev.c b/lib/librte_pmd_fm10k/fm10k_ethdev.c index 7f5f513

[dpdk-dev] [PATCH 1/2] examples/distributor: Fix compile issue

2015-11-26 Thread Michael Qiu
t;struct rte_mbuf *" to "const void *". Signed-off-by: Michael Qiu --- examples/distributor/main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 972bddb..a4d8e34 100644 --- a/examples/di

[dpdk-dev] [PATCH 2/2] Fix compile issue in i686 platform

2015-11-26 Thread Michael Qiu
In i686 platform, long is 32bit, so XXX_CYCLECOUNTER_MASK need define as 'ULL' Signed-off-by: Michael Qiu --- drivers/net/e1000/igb_ethdev.c | 2 +- drivers/net/i40e/i40e_ethdev.c | 2 +- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) di

[dpdk-dev] [PATCH] app/test: Fix compile issue with icc

2015-11-26 Thread Michael Qiu
app/test/test_cryptodev_perf.c(1837): error #192: unrecognized character escape sequence printf("\n%u\t%u\t\%u\t\t%u\t\t%u", dev_num, 0, "\%u" is the root cause of this issue, just fix it. Signed-off-by: Michael Qiu --- app/test/test_cryptodev_perf.c | 2 +- 1 file change

[dpdk-dev] [PATCH] lib/librte_sched: Fix compile with gcc 4.3.4

2015-11-26 Thread Michael Qiu
gcc 4.3.4 does not include "immintrin.h", and will post below error: lib/librte_sched/rte_sched.c:56:23: error: immintrin.h: No such file or directory To avoid this issue, a gcc version check is need and a flag to indicate vector ablility. Signed-off-by: Michael Qiu

[dpdk-dev] [PATCH 1/2 v2] examples/distributor: Fix compile issue

2015-11-27 Thread Michael Qiu
uf *" to "void *". Fixes: 07db4a975094 ("examples/distributor: new sample app") Signed-off-by: Michael Qiu --- v2 --> v1: convert "const void *" to "void *" to avoid CLANG issue. add "Fixes" line in commit log examples/distributor

[dpdk-dev] [PATCH 2/2 v2] Fix compile issue in i686 platform

2015-11-27 Thread Michael Qiu
ieee1588 functions for device time") Signed-off-by: Michael Qiu --- v2 --> v1: add "Fixes" line in commit log drivers/net/e1000/igb_ethdev.c | 2 +- drivers/net/i40e/i40e_ethdev.c | 2 +- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- 3 files changed, 3 insertio

[dpdk-dev] [PATCH] BugFix: VFIO never works

2015-07-10 Thread Michael Qiu
Commit 35b3313e322b ("pci: merge mapping functions for linux and bsd") introduced a bug that all vfio will be blocked. Root cause is that VFIO_PRESENT is unaccessable in eal common level. This patch is to fix this. Signed-off-by: Michael Qiu --- lib/librte_eal/common/eal_co

[dpdk-dev] [PATCH 1/2 v5] fm10k: Free queues when close port

2015-07-14 Thread Michael Qiu
When close a port, lots of memory should be released, such as software rings, queues, etc. Signed-off-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 31 +++ 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b

[dpdk-dev] [PATCH 0/2 v5] Enable hotplug support for fm10k

2015-07-14 Thread Michael Qiu
v2 --> v1: remove __rte_unused flag Michael Qiu (2): fm10k: Free queues when close port fm10k: Add hotplug support for fm10k drivers/net/fm10k/fm10k_ethdev.c | 134 +-- 1 file changed, 129 insertions(+), 5 deletions(-) -- 1.9.3

[dpdk-dev] [PATCH 2/2 v5] fm10k: Add hotplug support for fm10k

2015-07-14 Thread Michael Qiu
Add hotplug support for fm10k. Signed-off-by: Michael Qiu Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 97 +++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c

[dpdk-dev] [PATCH] testpmd: Fix segment fault when port ID greater than 76

2015-07-29 Thread Michael Qiu
In testpmd, when using "rx_vlan add 1 77", it will be a segment fault Because the port ID should be less than 32. Signed-off-by: Michael Qiu --- app/test-pmd/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c ind

[dpdk-dev] [PATCH] test-pmd: show pci address in port info

2015-07-29 Thread Michael Qiu
pci address is one important info for port. This patch make it visible for port info. Signed-off-by: Michael Qiu --- app/test-pmd/config.c | 13 + 1 file changed, 13 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 1d29146..c7db5bc 100644 --- a/app

[dpdk-dev] [PATCH] librte_pmd_fm10k: Fix max_vfs issue in fm10k PMD

2015-06-02 Thread Michael Qiu
In DPDK, max_vfs means vf numbers created, not the max number vfs the device supported. Signed-off-by: Michael Qiu Acked-by Jing Chen --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_fm10k/fm10k_ethdev.c b/lib

[dpdk-dev] [PATCH 0/2] Compile fixes in SUSE11 SP3 i686 platform

2016-03-25 Thread Michael Qiu
In SUSE11 SP3 i686 platform with gcc version 4.5.1, there is some compile issues. This patch set is try to fix them. Michael Qiu (2): lib/librte_lpm: Fix anonymous union initialization issue drivers/crypto: Fix anonymous union initialization in crypto drivers/crypto/null

[dpdk-dev] [PATCH 2/2] drivers/crypto: Fix anonymous union initialization in crypto

2016-03-25 Thread Michael Qiu
'{}', otherwise it will report an error. Fixes: 26c2e4ad5ad4 ("cryptodev: add capabilities discovery") Signed-off-by: Michael Qiu --- drivers/crypto/null/null_crypto_pmd_ops.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/null/null

[dpdk-dev] [PATCH 1/2] lib/librte_lpm: Fix anonymous union initialization issue

2016-03-25 Thread Michael Qiu
t;lpm: fix big endian support") Signed-off-by: Michael Qiu --- lib/librte_lpm/rte_lpm.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index af5811c..efd507e 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/

[dpdk-dev] [PATCH 1/2 v2] lib/librte_lpm: Fix anonymous union initialization issue

2016-03-30 Thread Michael Qiu
t;lpm: fix big endian support") Signed-off-by: Michael Qiu --- v2 --> v1: Fixes whilespace issue around "=" lib/librte_lpm/rte_lpm.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c

[dpdk-dev] [PATCH] fm10k: add Intel Boulder Rapid NIC support

2015-09-25 Thread Michael Qiu
Boulder Rapid is Intel new NIC within fm10k family. This patch make DPDK driver support this new NIC. Signed-off-by: Michael Qiu --- drivers/net/fm10k/base/fm10k_osdep.h| 4 lib/librte_eal/common/include/rte_pci_dev_ids.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a

[dpdk-dev] [PATCH 1/2 v2] fm10k: Add Atwood Channel Support

2016-02-04 Thread Michael Qiu
Atwood Channel is intel 25G NIC, and this patch add the support in DPDK. Signed-off-by: Michael Qiu Acked-by: John McNamara --- drivers/net/fm10k/base/fm10k_osdep.h| 4 lib/librte_eal/common/include/rte_pci_dev_ids.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a

[dpdk-dev] [PATCH 2/2 v2] fm10k: update doc for Atwood Channel

2016-02-04 Thread Michael Qiu
Atwood Channel is 25GbE NIC and belongs to Intel FM10K family, update the doc for it. Signed-off-by: Michael Qiu Acked-by: John McNamara --- Change log: 1. modify 20GbE to 25GbE doc/guides/rel_notes/release_2_3.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH 0/2 v2] Enable hotplug support for fm10k

2015-06-10 Thread Michael Qiu
Hotplug feature is supported in EAL, this patch set is to enable this feature in driver side. Michael Qiu (2): fm10k: Free queues when close port fm10k: Add hotplug support for fm10k drivers/net/fm10k/fm10k_ethdev.c | 134 +-- 1 file changed, 129

[dpdk-dev] [PATCH 1/2] fm10k: Free queues when close port

2015-06-10 Thread Michael Qiu
When close a port, lots of memory should be released, such as software rings, queues, etc. Signed-off-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c

[dpdk-dev] [PATCH 2/2] fm10k: Add hotplug support for fm10k

2015-06-10 Thread Michael Qiu
Add hotplug support for fm10k. Signed-off-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 97 +++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index e310698..0d3eaf1

[dpdk-dev] [PATCH v2] ixgbe: reset hardware stat when initialize

2015-06-11 Thread Michael Qiu
When initialize the hardware, the stat should be reset. Otherwise when detach then attach port, the stat will not be re-init to zero. Signed-off-by: Michael Qiu --- Change log: v2 --> v1: change the folder of driver drivers/net/ixgbe/ixgbe_ethdev.c | 6 ++ 1 file changed

[dpdk-dev] [PATCH 1/2 v2] fm10k: Free queues when close port

2015-06-17 Thread Michael Qiu
When close a port, lots of memory should be released, such as software rings, queues, etc. Signed-off-by: Michael Qiu --- change log: v2 --> v1: remove __rte_unused flag drivers/net/fm10k/fm10k_ethdev.c | 37 + 1 file changed, 33 insertions(+), 4 deleti

[dpdk-dev] [PATCH 2/2 v2] fm10k: Add hotplug support for fm10k

2015-06-17 Thread Michael Qiu
Add hotplug support for fm10k. Signed-off-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 97 +++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index e310698..0d3eaf1

[dpdk-dev] [PATCH 0/2 v3] Enable hotplug support for fm10k

2015-06-19 Thread Michael Qiu
Hotplug feature is supported in EAL, this patch set is to enable this feature in driver side. change log: v3-->v2: reset queue numbers to zero. v2 --> v1: remove __rte_unused flag Michael Qiu (2): fm10k: Free queues when close port fm10k: Add hotplug s

[dpdk-dev] [PATCH 1/2 v3] fm10k: Free queues when close port

2015-06-19 Thread Michael Qiu
When close a port, lots of memory should be released, such as software rings, queues, etc. Signed-off-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 39 +++ 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/drivers/net/fm10k

[dpdk-dev] [PATCH 2/2 v2] fm10k: Add hotplug support for fm10k

2015-06-19 Thread Michael Qiu
Add hotplug support for fm10k. Signed-off-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 97 +++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 6a14633..38d1eb7

[dpdk-dev] [PATCH] testpmd: Fix wrong message in testpmd

2015-06-24 Thread Michael Qiu
0 Closing ports... Port 0 is now not stopped Done testpmd> Signed-off-by: Michael Qiu --- app/test-pmd/testpmd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 3057791..907cda3 100644 --- a/app/test-pmd/testpmd.c +++ b/

[dpdk-dev] [PATCH 0/2 v4] Enable hotplug support for fm10k

2015-06-26 Thread Michael Qiu
Hotplug feature is supported in EAL, this patch set is to enable this feature in driver side. change log: v4 --> v3: rebase code. v3 --> v2: reset queue numbers to zero. v2 --> v1: remove __rte_unused flag Michael Qiu (2): fm10k: Free qu

[dpdk-dev] [PATCH 1/2 v4] fm10k: Free queues when close port

2015-06-26 Thread Michael Qiu
When close a port, lots of memory should be released, such as software rings, queues, etc. Signed-off-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c

[dpdk-dev] [PATCH 2/2 v4] fm10k: Add hotplug support for fm10k

2015-06-26 Thread Michael Qiu
Add hotplug support for fm10k. Signed-off-by: Michael Qiu Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 97 +++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c