[dpdk-dev] [PATCH 1/2 v3] i40e: support floating VEB config

2016-02-25 Thread Zhe Tao
Add the new floating related argument option in the EAL. Using this parameter, all the samples can decide whether to use legacy VEB/VEPA, or floating VEB. Even the floating argument is provided in the EAL, but this floating feature are only support for FVL so far. Signed-off-by: Zhe Tao

[dpdk-dev] [PATCH 0/2 v3] i40e: Add floating VEB support for i40e

2016-02-25 Thread Zhe Tao
to both of them. The PF and VMDQ,FD VSIs connect to the old legacy VEB/VEPA. All the VEB/VEPA concepts are not specific for FVL, they are defined in the 802.1Qbg spec. Zhe Tao (2): support floating VEB config Add floating VEB support in i40e doc/guides/rel_notes/release_16_04.rst | 2

[dpdk-dev] [PATCH 2/2 v2] i40e: Add floating VEB support in i40e

2016-02-23 Thread Zhe Tao
of them. The PF and VMDQ,FD VSIs still connect to the old legacy VEB/VEPA. All the VEB/VEPA concepts are not specific for FVL, they are defined in the 802.1Qbg spec. Signed-off-by: Zhe Tao --- doc/guides/rel_notes/release_16_04.rst | 2 + drivers/net/i40e/Makefile | 2 +- drivers

[dpdk-dev] [PATCH 1/2 v2] i40e: support floating VEB config

2016-02-23 Thread Zhe Tao
Add the new floating related argument option in the EAL. Using this parameter, all the samples can decide whether to use legacy VEB/VEPA, or floating VEB. Even the floating argument is provided in the EAL, but this floating feature are only support for FVL so far. Signed-off-by: Zhe Tao

[dpdk-dev] [PATCH 0/2 v2] i40e: Add floating VEB support for i40e

2016-02-23 Thread Zhe Tao
to both of them. The PF and VMDQ,FD VSIs connect to the old legacy VEB/VEPA. All the VEB/VEPA concepts are not specific for FVL, they are defined in the 802.1Qbg spec. Zhe Tao (2): support floating VEB config Add floating VEB support in i40e doc/guides/rel_notes/release_16_04.rst | 2

[dpdk-dev] [PATCH] i40e: add VEB switching support for i40e

2016-02-23 Thread Zhe Tao
On Fri, Feb 19, 2016 at 01:17:41PM +0800, Wu, Jingjing wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zhe Tao > > Sent: Thursday, January 21, 2016 2:50 PM > > To: dev at dpdk.org > > Subject: [dpdk-

[dpdk-dev] [PATCH 2/2] i40e: Add floating VEB support in i40e

2016-01-21 Thread Zhe Tao
of them. The PF and VMDQ,FD VSIs connect to the old legacy VEB/VEPA. Signed-off-by: Zhe Tao --- drivers/net/i40e/Makefile | 2 +- drivers/net/i40e/i40e_ethdev.c | 92 ++ drivers/net/i40e/i40e_ethdev.h | 3 ++ drivers/net/i40e/i40e_pf.c | 10

[dpdk-dev] PATCH 1/2] i40e: support floating VEB config

2016-01-21 Thread Zhe Tao
Add the new floating related argument option in the EAL. using this parameter, all the samples can decide whether to use legacy VEB/VEPA, or floating VEB. Signed-off-by: Zhe Tao --- lib/librte_eal/common/eal_common_options.c | 4 lib/librte_eal/common/eal_internal_cfg.h | 1 + lib

[dpdk-dev] [PATCH 0/2] Add floating VEB support for i40e

2016-01-21 Thread Zhe Tao
to both of them. The PF and VMDQ,FD VSIs connect to the old legacy VEB/VEPA. Zhe Tao (2): support floating VEB config Add floating VEB support in i40e drivers/net/i40e/Makefile | 2 +- drivers/net/i40e/i40e_ethdev.c | 92 ++ drivers/net

[dpdk-dev] [PATCH] i40e: add VEB switching support for i40e

2016-01-21 Thread Zhe Tao
connect to PF or VFs. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_ethdev.c | 48 +++--- 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index bf6220d..ba2ba9e 100644

[dpdk-dev] [PATCH v2] i40e: configure the vector PMD option as no for default for l3fwd undefined ptype issue

2015-11-24 Thread Zhe Tao
annot work properly on that kind of drivers. Configure the vector PMD option as no for default as a work around for l3fwd. After the l3fwd app can handle the undefined ptype or the i40e vPMD can return the ptype, the option will be set as yes for default again. Signed-off-by: Zhe Tao -

[dpdk-dev] [PATCH] i40e: configure the vector PMD option as no for default for l3fwd undefined ptype issue

2015-11-18 Thread Zhe Tao
Configure the vector PMD option as no for default as a work around for l3fwd. After the l3fwd app can handle the undefined ptype or the i40e vPMD can return the ptype, the option will be set as yes for default again. Signed-off-by: Zhe Tao --- config/common_bsdapp | 2 +- config

[dpdk-dev] [PATCH 4/4 v4] add RX and TX selection function for FVL

2015-10-30 Thread Zhe Tao
To support FVL PMD can select which RX and TX function should be used according to the queue config. Signed-off-by: Zhe Tao --- doc/guides/rel_notes/release_2_2.rst | 4 + drivers/net/i40e/i40e_ethdev.c | 20 +++- drivers/net/i40e/i40e_ethdev.h | 6 ++ drivers/net/i40e

[dpdk-dev] [PATCH 3/4 v4] add vector PMD scatter RX for FVL

2015-10-30 Thread Zhe Tao
To support the multiple segments in one packets when the received pkts exceed one buffer size. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx.c | 9 +++ drivers/net/i40e/i40e_rxtx.h | 3 + drivers/net/i40e/i40e_rxtx_vec.c | 118 --- 3

[dpdk-dev] [PATCH 2/4 v4] add vector PMD TX for FVL

2015-10-30 Thread Zhe Tao
The way to increase the performance of the vPMD TX is to use some fast mbuf release method compares to the scalar TX. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx.c | 8 ++ drivers/net/i40e/i40e_rxtx.h | 3 + drivers/net/i40e/i40e_rxtx_vec.c | 163

[dpdk-dev] [PATCH 1/4 v4] add vector PMD RX for FVL

2015-10-30 Thread Zhe Tao
The vPMD RX function uses the multi-buffer and SSE instructions to accelerate the RX speed, but now the pktype cannot be supported by the vPMD RX, because it will decrease the performance heavily. Signed-off-by: Zhe Tao --- config/common_bsdapp | 2 + config/common_linuxapp

[dpdk-dev] [PATCH 0/4 v4] i40e: add vector PMD support for FVL

2015-10-30 Thread Zhe Tao
update the release note PATCH v3: make the new patch set PATCH v4: fix some format issues Zhe Tao (4): add vector PMD RX for FVL add vector PMD TX for FVL add vector PMD scatter RX for FVL add RX and TX selection function for FVL config/common_bsdapp | 2 + config

[dpdk-dev] [PATCH 4/4 v3] add RX and TX selection function for FVL

2015-10-30 Thread Zhe Tao
To support FVL PMD can select which RX and TX function should be used according to the queue config. Signed-off-by: Zhe Tao --- doc/guides/rel_notes/release_2_2.rst | 4 + drivers/net/i40e/i40e_ethdev.c | 20 +++- drivers/net/i40e/i40e_ethdev.h | 6 ++ drivers/net/i40e

[dpdk-dev] [PATCH 8/8 v2] update the release note

2015-10-30 Thread Zhe Tao
update the release note Signed-off-by: Zhe Tao --- doc/guides/rel_notes/release_2_2.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index bc9b00f..c78ceca 100644 --- a/doc/guides/rel_notes/release_2_2.rst

[dpdk-dev] [PATCH 7/8 v2] move all the extra definition out of share code

2015-10-30 Thread Zhe Tao
move all the exta definition out of share code Signed-off-by: Zhe Tao --- drivers/net/i40e/base/i40e_type.h | 13 - drivers/net/i40e/i40e_ethdev.c| 11 ++- drivers/net/i40e/i40e_ethdev.h| 6 ++ drivers/net/i40e/i40e_ethdev_vf.c | 11 ++- drivers/net/i40e

[dpdk-dev] [PATCH 6/8 v2] change the postion of data prefetch for splitter packets

2015-10-30 Thread Zhe Tao
according to ixgbe vector implementation, change the data prefetch position Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx_vec.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/i40e/i40e_rxtx_vec.c b/drivers/net/i40e/i40e_rxtx_vec.c index

[dpdk-dev] [PATCH 5/8 v2] edit the comments

2015-10-30 Thread Zhe Tao
edit the comments for the minimum packets support for vector RX Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx_vec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx_vec.c b/drivers/net/i40e/i40e_rxtx_vec.c index b2993e9..6f89002 100644

[dpdk-dev] [PATCH 4/8 v2] add RX and TX selection function for FVL

2015-10-30 Thread Zhe Tao
To support FVL PMD can select which RX and TX function should be used according to the queue config. Signed-off-by: Zhe Tao --- drivers/net/i40e/base/i40e_type.h | 10 +++ drivers/net/i40e/i40e_ethdev.c| 19 +++- drivers/net/i40e/i40e_ethdev_vf.c | 27 -- drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH 3/8 v2] add vector PMD scatter RX for FVL

2015-10-30 Thread Zhe Tao
To support the multiple segments in one packets when the received pkts exceed one buffer size. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx.c | 9 drivers/net/i40e/i40e_rxtx.h | 3 ++ drivers/net/i40e/i40e_rxtx_vec.c | 103 +++ 3

[dpdk-dev] [PATCH 2/8 v2] add vector PMD TX for FVL

2015-10-30 Thread Zhe Tao
The way to increase the performance of the vPMD TX is to use some fast mbuf release method compares to the scalar TX. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx.c | 8 ++ drivers/net/i40e/i40e_rxtx.h | 3 + drivers/net/i40e/i40e_rxtx_vec.c | 162

[dpdk-dev] [PATCH 1/8 v2] add vector PMD RX for FVL

2015-10-30 Thread Zhe Tao
The vPMD RX function uses the multi-buffer and SSE instructions to accelerate the RX speed, but now the pktype cannot be supported by the vPMD RX, because it will decrease the performance heavily. Signed-off-by: Zhe Tao --- config/common_bsdapp | 2 + config/common_linuxapp

[dpdk-dev] [PATCH 0/8 v2] i40e: add vector PMD support for FVL

2015-10-30 Thread Zhe Tao
This patch set add the vector PMD support for FVL. FVL vPMD works like the way ixgbe does All the functionality is tested Zhe Tao (8): add vector PMD RX for FVL add vector PMD TX for FVL add vector PMD scatter RX for FVL add RX and TX selection function for FVL edit the comments

[dpdk-dev] [PATCH v3] i40e: add link flow control support for FVL

2015-10-30 Thread Zhe Tao
the related LFC enable/disable registers. PMD driver also need to configure the related registers to control how often to send the pause frame and what the value in the pause frame. Signed-off-by: Zhe Tao --- PATCH V1: add the LFC support for i40e PATCH v2: move the LFC parameters init

[dpdk-dev] [PATCH v2] i40e: add link flow control support for FVL

2015-10-29 Thread Zhe Tao
the related LFC enable/disable registers. PMD driver also need to configure the related registers to control how often to send the pause frame and what the value in the pause frame. Signed-off-by: Zhe Tao --- PATCH V1: Add the LFC support for i40e PATCH v2: move the LFC parameters init

[dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets

2015-09-29 Thread Zhe Tao
Every time we started to receive the packets, the start queue number should be the one that just received the packets, should not start from zero! Signed-off-by: Zhe Tao --- examples/dpdk_qat/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dpdk_qat/main.c b

[dpdk-dev] [PATCH 4/4] add RX and TX selection function for FVL

2015-09-28 Thread Zhe Tao
To support FVL PMD can select which RX and TX function should be used according to the queue config. Signed-off-by: Zhe Tao --- drivers/net/i40e/base/i40e_type.h | 10 +++ drivers/net/i40e/i40e_ethdev.c| 19 +++- drivers/net/i40e/i40e_ethdev_vf.c | 27 -- drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH 3/4] add vector PMD scatter RX for FVL

2015-09-28 Thread Zhe Tao
To support the multiple segments in one packets when the received pkts exceed one buffer size. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx.c | 9 drivers/net/i40e/i40e_rxtx.h | 3 ++ drivers/net/i40e/i40e_rxtx_vec.c | 103 +++ 3

[dpdk-dev] [PATCH 2/4] add vector PMD TX for FVL

2015-09-28 Thread Zhe Tao
The way to increase the performance of the vPMD TX is to use some fast mbuf release method compares to the scalar TX. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx.c | 8 ++ drivers/net/i40e/i40e_rxtx.h | 3 + drivers/net/i40e/i40e_rxtx_vec.c | 162

[dpdk-dev] [PATCH 1/4] add vector PMD RX for FVL

2015-09-28 Thread Zhe Tao
The vPMD RX function uses the multi-buffer and SSE instructions to accelerate the RX speed, but now the pktype cannot be supported by the vPMD RX, because it will decrease the performance heavily. Signed-off-by: Zhe Tao --- config/common_bsdapp | 2 + config/common_linuxapp

[dpdk-dev] [PATCH 0/4] i40e: add vector PMD support for FVL

2015-09-28 Thread Zhe Tao
This patch set add the vector PMD support for FVL. FVL vPMD works like the way ixgbe does All the functionality is tested Zhe Tao (4): add vector PMD RX for FVL add vector PMD TX for FVL add vector PMD scatter RX for FVL add RX and TX selection function for FVL config/common_bsdapp

[dpdk-dev] [PATCH] i40e: add link flow control support for FVL

2015-09-25 Thread Zhe Tao
the related LFC enable/disable registers. PMD driver also need to configure the related registers to control how often to send the pause frame and what the value in the pause frame. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_ethdev.c | 170 - drivers

[dpdk-dev] [PATCH] eal: change to prevent memory leak in eal debug

2015-09-21 Thread Zhe Tao
Free the memory allocated by the backtrace_symbols to prevent the memory leak Signed-off-by: Zhe Tao --- lib/librte_eal/bsdapp/eal/eal_debug.c | 6 ++ lib/librte_eal/linuxapp/eal/eal_debug.c | 6 ++ 2 files changed, 12 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal/eal_debug.c

[dpdk-dev] [PATCH v2] lpm: fix extended flag check when adding a "depth small" entry

2015-07-30 Thread Zhe Tao
When adding a "depth small" entry, if its extended flag is not set and its depth is smaller than the one in the tbl24, nothing should be done otherwise will operate on the wrong memory area. Signed-off-by: Zhe Tao --- PATCH v2: Edit to keep line size below 80 characters PATCH v1: Fi

[dpdk-dev] [PATCH] lpm: fix extended flag check when adding a "depth small" entry

2015-07-28 Thread Zhe Tao
When adding a "depth small" entry, if its extended flag is not set and its depth is smaller than the one in the tbl24, nothing should be done otherwise will operate on the wrong memory area. Signed-off-by: Zhe Tao --- lib/librte_lpm/rte_

[dpdk-dev] [PATCH v3] i40e: Fix the endian issue for the i40e read registers functions

2015-07-17 Thread Zhe Tao
Signed-off-by: Zhe Tao --- PATCH v3: Edit the subject make it more clear PATCH v2: Edit the comments make it more clear PATCH v1: Add the endian conversion for registers operations. drivers/net/i40e/base/i40e_osdep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[dpdk-dev] [PATCH v2] Fix the endian issue for the i40e read registers functions

2015-07-17 Thread Zhe Tao
When using the Power big endian CPU for i40e NIC, the current i40e related registers operations will cause a problem, because the i40e registers are little endian which is inconsistent with big endian CPU. Add the conversion for the inconsistency. Signed-off-by: Zhe Tao --- PATCH v2: Edit

[dpdk-dev] [PATCH] i40e: Fix the endian issue for the i40e read registers functions

2015-07-14 Thread Zhe Tao
for i40e. Signed-off-by: Zhe Tao --- drivers/net/i40e/base/i40e_osdep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_osdep.h b/drivers/net/i40e/base/i40e_osdep.h index 3ce8057..d35c494 100644 --- a/drivers/net/i40e/base/i40e_osdep.h +++ b/drivers

[dpdk-dev] [PATCH] i40e: Fix the issue when resetting the stats for i40e, the stats information will be lost before next time getting the stats

2015-07-09 Thread Zhe Tao
update immediately Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_ethdev.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 5fb6b4c..c9cc317 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e

[dpdk-dev] [PATCH v3] i40e:Fix the Descriptor Done check mechanism for i40e

2015-07-09 Thread Zhe Tao
field is still 0x1 which means NIC has not finished the operation on this descriptor. Use the 0xF to check the DD status to avoid the above issue happens. Signed-off-by: Zhe Tao --- Patch v3 changes: -Fix typo for the patch Patch v2 changes: -Fix the DD check mechanism for other functions

[dpdk-dev] [PATCH v2] i40e:Fix the Description Done check mechanism for i40e

2015-07-08 Thread Zhe Tao
on this descriptor. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_fdir.c | 3 ++- drivers/net/i40e/i40e_rxtx.c | 10 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c index 4bf98d0..f3cb757 100644 --- a/drivers/net/i40e

[dpdk-dev] [PATCH] i40e: Fix the clean up function for i40e, the DD bits are multiplex with descriptor type field. so cannot use "not zero" as the rule for the completion of Tx descriptor

2015-07-04 Thread Zhe Tao
on this descriptor. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 2de0ac4..5d33f62 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e

[dpdk-dev] [RFC] i40e: Add the LFC(link flow control) support for the FVL

2015-07-03 Thread Zhe Tao
and wait their response. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_ethdev.c | 169 - drivers/net/i40e/i40e_ethdev.h | 11 +++ 2 files changed, 177 insertions(+), 3 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e

<    1   2