[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

[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 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

[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 v2] i40e: add VEB switching support for i40e

2016-02-23 Thread Zhe Tao
Signed-off-by: Zhe Tao VEB switching feature for i40e is used to enable the switching between the VSIs connect to the virtual bridge. The old implementation is setting the virtual bridge mode as VEPA which is port aggregation. Enable the switching ability by setting the loop back mode for the

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

2016-02-23 Thread Zhe Tao
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 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 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 0/2 v3] i40e: Add floating VEB support for i40e

2016-02-25 Thread Zhe Tao
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 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 2/2 v3] i40e: Add floating VEB support in i40e

2016-02-25 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] ixgbe: fix ixgbevf RX/TX function assignment

2016-02-28 Thread Zhe Tao
function when secondary process call the init function for eth dev. Signed-off-by: Zhe Tao --- drivers/net/ixgbe/ixgbe_ethdev.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 3e6fe86

[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 --- a

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

2016-01-21 Thread Zhe Tao
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 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 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 v3] i40e: fix olflags for vector Rx

2016-06-14 Thread Zhe Tao
: add vector Rx") Signed-off-by: Zhe Tao --- v2: Changed the comments according to the code change. v3: Fixed the issues reported by check-git-log.sh. drivers/net/i40e/i40e_rxtx_vec.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/net/i40e/i40e_rx

[dpdk-dev] [PATCH v11 0/3] i40e: add floating VEB support for i40e

2016-06-14 Thread Zhe Tao
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. This floating VEB only take effects on the specific version F/W which newer than 5.0. Zhe Tao (3): i40e: support floating VEB config

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

2016-06-14 Thread Zhe Tao
ans the traffic cannot go to ouside world. 2. doesn't need to connect to the phsical port which means when the physical link is down the floating VEB can still works fine. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_ethdev.c | 44 ++ drivers/net/i40

[dpdk-dev] [PATCH v11 2/3] i40e: add floating VEB support in i40e

2016-06-14 Thread Zhe Tao
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. Now the floating VEB feature is only avaiable for the FW version which newer than 5.0 (FW major version number > 5). Signed-off-by:

[dpdk-dev] [PATCH v11 3/3] i40e: add floating VEB extension support

2016-06-14 Thread Zhe Tao
loating VEB and one legacy VEB. VF can connect to floating VEB or legacy VEB according to the configuration. Signed-off-by: Zhe Tao --- doc/guides/nics/i40e.rst | 8 ++ drivers/net/i40e/i40e_ethdev.c | 56 -- drivers/net/i40e/i40e_ethdev.h | 1

[dpdk-dev] [PATCH v11 0/3] i40e: add floating VEB support for i40e

2016-06-14 Thread Zhe Tao
On Tue, Jun 14, 2016 at 01:57:11PM +0800, Zhe Tao wrote: > This patch-set add the support for floating VEB in i40e. > All the VFs VSIs can decide whether to connect to the legacy VEB/VEPA or > the floating VEB. When connect to the floating VEB a new floating VEB is > created. Now all

[dpdk-dev] [PATCH v12 0/2] i40e: add floating VEB support for i40e

2016-06-24 Thread Zhe Tao
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. This floating VEB only take effects on the specific version F/W which newer than 5.0. Zhe Tao (2): i40e: support floating VEB config

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

2016-06-24 Thread Zhe Tao
the 802.1Qbg spec. But for floating VEB, it has two major difference. 1. doesn't has a up link connection which means the traffic cannot go to outside world. 2. doesn't need to connect to the physical port which means when the physical link is down the floating VEB can still works fi

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

2016-06-24 Thread Zhe Tao
ing veb using "floating_veb_list". Like "-w 84:00.0,enable_floating_veb=1,floating_veb_list=1/3-4", means VF1, VF3, VF4 connect to the floating VEB, other VFs connect to the legacy VEB.The "/" is used for delimiter of the floating VEB list. Signed-off-by: Zhe Tao --- d

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

2016-06-27 Thread Zhe Tao
On Fri, Jun 24, 2016 at 12:14:14PM +0100, Ferruh Yigit wrote: > Hi Zhe, > > On 6/24/2016 9:29 AM, Zhe Tao wrote: > > Add the new floating VEB related arguments option in the devarg. > > Using this parameter, all the applications can decide whether to use legacy > &g

[dpdk-dev] [PATCH v13 0/2] i40e: add floating VEB support for i40e

2016-06-27 Thread Zhe Tao
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. This floating VEB only take effects on the specific version F/W which newer than 5.0. Zhe Tao (2): i40e: support floating VEB config

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

2016-06-27 Thread Zhe Tao
ard VEB: 1. doesn't has a up link connection which means the traffic cannot go to outside world. 2. doesn't need to connect to the physical port which means when the physical link is down the floating VEB can still works fine. Signed-off-by: Zhe Tao --- drivers/net/i40e

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

2016-06-27 Thread Zhe Tao
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. The floating VEB feature is only available for the FW version which newer than 5.0 (FW major version number > 5). Signed-off-by:

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

2016-06-27 Thread Zhe Tao
ard VEB: 1. doesn't has a up link connection which means the traffic cannot go to outside world. 2. doesn't need to connect to the physical port which means when the physical link is down the floating VEB can still works fine. Signed-off-by: Zhe Tao --- drivers/net/i40e

[dpdk-dev] [PATCH v14 0/2] i40e: add floating VEB support for i40e

2016-06-27 Thread Zhe Tao
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. This floating VEB only take effects on the specific version F/W which newer than 5.0. Zhe Tao (2): i40e: support floating VEB config

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

2016-06-27 Thread Zhe Tao
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. The floating VEB feature is only available for the FW version which newer than 5.0 (FW major version number > 5). Signed-off-by:

[dpdk-dev] [PATCH v15 0/2] i40e: add floating VEB support for i40e

2016-06-29 Thread Zhe Tao
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. This floating VEB only take effects on the specific version F/W which newer than 5.0. Zhe Tao (2): i40e: add floating VEB support i40e

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

2016-06-29 Thread Zhe Tao
oating VEB - even when the physical link on the NIC port is down. VFs VSIs connect either to the standard VEB/VEPA or to the floating VEB, they cannot connect to both of them. The PF, VMDQ and FD VSIs still connect to the normal VEB/VEPA. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_ethd

[dpdk-dev] [PATCH v15 2/2] i40e: add device args to enable a floating VEB

2016-06-29 Thread Zhe Tao
uires a NIC firmware version of 5.0 or greater. Signed-off-by: Zhe Tao --- doc/guides/nics/i40e.rst | 45 ++ doc/guides/rel_notes/release_16_07.rst | 8 ++ drivers/net/i40e/i40e_ethdev.c | 160 + drivers/net/i40e/i40e_ethdev.h

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

2016-03-02 Thread Zhe Tao
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. This floating VEB only take effects on the specific version F/W. Zhe Tao (2): support floating VEB config Add floating VEB support in

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

2016-03-02 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 --- doc

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

2016-03-02 Thread Zhe Tao
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. Now the floating VEB feature is only avaiable in the specific version of FW. Signed-off-by: Zhe Tao --- doc/guides/rel_notes

[dpdk-dev] [PATCH v2] ethdev: fix byte order inconsistence between fdir flow and mask

2016-03-02 Thread Zhe Tao
/cmdline.c b/app/test-pmd/cmdline.c > index 73298c9..13194c9 100644 > --- a/app/test-pmd/cmdline.c > +++ b/app/test-pmd/cmdline.c > @@ -8687,13 +8687,13 @@ cmd_flow_director_mask_parsed(void *parsed_result, > return; > } Acked-by: Zhe Tao

[dpdk-dev] i40e & ixgbe xmit issue: txe->next_id

2016-03-04 Thread Zhe Tao
Hi all, I have a question about why we need the txe->next_id field in the i40e&ixgbe Tx function? >From the current implementation, all the txe is initialized and free >sequentially, so we don't need this "next_id" field in our TX function, and when we decide the "last_id" for txe, we assume the t

[dpdk-dev] [PATCH v2] ixgbe: fix ixgbevf RX/TX function assignment

2016-03-08 Thread Zhe Tao
function when secondary process call the init function for eth dev. Fixes: abf7275bbaa2918 (ixgbe: move to drivers/net/) V2:add fixes line Signed-off-by: Zhe Tao --- drivers/net/ixgbe/ixgbe_ethdev.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v2 0/2] add VF MAC address generation

2016-03-08 Thread Zhe Tao
40e/i40e_ethdev_vf.c | 14 +++--- > drivers/net/i40e/i40e_pf.c | 3 +++ > 4 files changed, 16 insertions(+), 7 deletions(-) > > -- > 2.5.0 Acked-by: Zhe Tao

[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 to the

[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 to the

[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 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 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 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 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 --- a

[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 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 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 0/4 v3] i40e: add vector PMD support for FVL

2015-10-30 Thread Zhe Tao
update the release note PATCH v3: make the new patch set 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/common_linuxapp | 2

[dpdk-dev] [PATCH 1/4 v3] 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 3/4 v3] 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/4 v3] 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 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 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 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 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 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] 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 v1] i40: fix the VXLAN TSO issue

2016-07-06 Thread Zhe Tao
("i40e: VXLAN Tx checksum offload") Signed-off-by: Zhe Tao --- app/test-pmd/csumonly.c | 26 +++--- drivers/net/i40e/i40e_rxtx.c | 10 -- lib/librte_mbuf/rte_mbuf.h | 11 +++ 3 files changed, 38 insertions(+), 9 deletions(-) diff --git a/ap

[dpdk-dev] [PATCH v2] i40: fix the VXLAN TSO issue

2016-07-07 Thread Zhe Tao
VXLAN Tx checksum offload") Signed-off-by: Zhe Tao --- V2: Edited some comments for mbuf structure and i40e driver. app/test-pmd/csumonly.c | 26 +++--- drivers/net/i40e/i40e_rxtx.c | 12 +--- lib/librte_mbuf/rte_mbuf.h | 16 +++- 3 files c

[dpdk-dev] [PATCH v2] i40: fix the VXLAN TSO issue

2016-07-18 Thread Zhe Tao
On Thu, Jul 07, 2016 at 08:24:43PM +0800, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ananyev, Konstantin > > Sent: Thursday, July 07, 2016 11:51 AM > > To: Tao, Zhe; dev at dpdk.org > > Cc: Tao, Zhe; Wu, Jingjing > > S

[dpdk-dev] [PATCH v3] i40: fix the VXLAN TSO issue

2016-07-18 Thread Zhe Tao
AN Tx checksum offload") Signed-off-by: Zhe Tao --- v2: edited the comments v3: added external IP offload flag when TSO is enabled for tunnelling packets app/test-pmd/csumonly.c | 29 + drivers/net/i40e/i40e_rxtx.c | 12 +--- lib/librte_mbuf/rte_mbu

[dpdk-dev] [PATCH 0/2] NSH packet type support in i40e

2016-06-02 Thread Zhe Tao
| 3 +++ > doc/guides/rel_notes/release_16_07.rst | 2 ++ > drivers/net/i40e/i40e_rxtx.c | 27 +++ > lib/librte_mbuf/rte_mbuf.h | 7 +++ > 4 files changed, 39 insertions(+) > > -- > 2.4.0 Acked-by: Zhe Tao

[dpdk-dev] [PATCH] i40e: fix flexible payload selection

2016-06-02 Thread Zhe Tao
I40E_PRTQF_FLX_PIT_DEST_OFF_SHIFT) & \ > I40E_PRTQF_FLX_PIT_DEST_OFF_MASK)) > > -- > 2.4.0 Acked-by: Zhe Tao

[dpdk-dev] [PATCH v2 0/8] support reset of VF link

2016-06-07 Thread Zhe Tao
From: "zhe.tao" If the PF link is down and up, VF link will not work accordingly. This patch set addes the support of VF link reset. So, when VF receices the messges of physical link down/up. APP can reset the VF link and let it recover. PS: This patch set is splitted from a previous patch set,

[dpdk-dev] [PATCH v2 1/8] lib/librte_ether: support device reset

2016-06-07 Thread Zhe Tao
From: Wenzhuo Lu Add an API to reset the device. It's for VF device in this scenario, kernel PF + DPDK VF. When the PF port down/up, APP should call this API to reset VF port. Most likely, APP should call it in its management thread and guarantee the thread safe. Signed-off-by: Wenzhuo Lu Signe

[dpdk-dev] [PATCH v2 2/8] lib/librte_ether: defind RX/TX lock mode

2016-06-07 Thread Zhe Tao
. Signed-off-by: Wenzhuo Lu Signed-off-by: Zhe Tao Signed-off-by: zhe.tao --- lib/librte_ether/rte_ethdev.h | 62 +++ 1 file changed, 62 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 74e895f..4efb5e9 100644

[dpdk-dev] [PATCH v2 3/8] ixgbe: RX/TX with lock on VF

2016-06-07 Thread Zhe Tao
From: Wenzhuo Lu Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-b

[dpdk-dev] [PATCH v2 4/8] ixgbe: implement device reset on VF

2016-06-07 Thread Zhe Tao
From: Wenzhuo Lu Implement the device reset function. 1, Add the fake RX/TX functions. 2, The reset function tries to stop RX/TX by replacing the RX/TX functions with the fake ones and getting the locks to make sure the regular RX/TX finished. 3, After the RX/TX stopped, reset the VF port,

[dpdk-dev] [PATCH v2 5/8] igb: RX/TX with lock on VF

2016-06-07 Thread Zhe Tao
From: Wenzhuo Lu Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-b

[dpdk-dev] [PATCH v2 6/8] igb: implement device reset on VF

2016-06-07 Thread Zhe Tao
From: Wenzhuo Lu Implement the device reset function. 1, Add the fake RX/TX functions. 2, The reset function tries to stop RX/TX by replacing the RX/TX functions with the fake ones and getting the locks to make sure the regular RX/TX finished. 3, After the RX/TX stopped, reset the VF port,

[dpdk-dev] [PATCH v2 8/8] i40e: implement device reset on VF

2016-06-07 Thread Zhe Tao
From: "zhe.tao" Implement the device reset function. 1, Add the fake RX/TX functions. 2, The reset function tries to stop RX/TX by replacing the RX/TX functions with the fake ones and getting the locks to make sure the regular RX/TX finished. 3, After the RX/TX stopped, reset the VF port, a

[dpdk-dev] [PATCH v2 7/8] i40e: RX/TX with lock on VF

2016-06-07 Thread Zhe Tao
From: "zhe.tao" Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-by

[dpdk-dev] [PATCH v3 0/8] support reset of VF link

2016-06-07 Thread Zhe Tao
ck on VF igb: implement device reset on VF Zhe Tao (2): i40e: RX/TX with lock on VF i40e: implement device reset on VF v1: Added the implementation for the VF reset functionality. v2: Changed the i40e related operations during VF reset. v3: Resent the patches because of the mail

[dpdk-dev] [PATCH v3 2/8] lib/librte_ether: defind RX/TX lock mode

2016-06-07 Thread Zhe Tao
: Wenzhuo Lu Signed-off-by: Zhe Tao --- lib/librte_ether/rte_ethdev.h | 62 +++ 1 file changed, 62 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 74e895f..4efb5e9 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b

[dpdk-dev] [PATCH v3 1/8] lib/librte_ether: support device reset

2016-06-07 Thread Zhe Tao
Add an API to reset the device. It's for VF device in this scenario, kernel PF + DPDK VF. When the PF port down/up, APP should call this API to reset VF port. Most likely, APP should call it in its management thread and guarantee the thread safe. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rt

[dpdk-dev] [PATCH v3 3/8] ixgbe: RX/TX with lock on VF

2016-06-07 Thread Zhe Tao
Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-by: Wenzhuo Lu ---

[dpdk-dev] [PATCH v3 4/8] ixgbe: implement device reset on VF

2016-06-07 Thread Zhe Tao
Implement the device reset function. 1, Add the fake RX/TX functions. 2, The reset function tries to stop RX/TX by replacing the RX/TX functions with the fake ones and getting the locks to make sure the regular RX/TX finished. 3, After the RX/TX stopped, reset the VF port, and then release

[dpdk-dev] [PATCH v3 5/8] igb: RX/TX with lock on VF

2016-06-07 Thread Zhe Tao
Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-by: Wenzhuo Lu ---

[dpdk-dev] [PATCH v3 6/8] igb: implement device reset on VF

2016-06-07 Thread Zhe Tao
Implement the device reset function. 1, Add the fake RX/TX functions. 2, The reset function tries to stop RX/TX by replacing the RX/TX functions with the fake ones and getting the locks to make sure the regular RX/TX finished. 3, After the RX/TX stopped, reset the VF port, and then release

[dpdk-dev] [PATCH v3 7/8] i40e: RX/TX with lock on VF

2016-06-07 Thread Zhe Tao
Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-b

[dpdk-dev] [PATCH v3 8/8] i40e: implement device reset on VF

2016-06-07 Thread Zhe Tao
release the locks. Signed-off-by: Zhe Tao --- app/test-pmd/config.c | 3 + doc/guides/rel_notes/release_16_07.rst | 5 ++ drivers/net/i40e/i40e_ethdev.h | 7 +- drivers/net/i40e/i40e_ethdev_vf.c | 152 - drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH v4 0/8] support reset of VF link

2016-06-07 Thread Zhe Tao
ck on VF igb: implement device reset on VF Zhe Tao (2): i40e: RX/TX with lock on VF i40e: implement device reset on VF v1: Added the implementation for the VF reset functionality. v2: Changed the i40e related operations during VF reset. v3: Resent the patches because of the mail

[dpdk-dev] [PATCH v4 2/8] lib/librte_ether: defind RX/TX lock mode

2016-06-07 Thread Zhe Tao
: Wenzhuo Lu Signed-off-by: Zhe Tao --- lib/librte_ether/rte_ethdev.h | 62 +++ 1 file changed, 62 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 74e895f..4efb5e9 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b

[dpdk-dev] [PATCH v4 1/8] lib/librte_ether: support device reset

2016-06-07 Thread Zhe Tao
Add an API to reset the device. It's for VF device in this scenario, kernel PF + DPDK VF. When the PF port down/up, APP should call this API to reset VF port. Most likely, APP should call it in its management thread and guarantee the thread safe. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rt

[dpdk-dev] [PATCH v4 3/8] ixgbe: RX/TX with lock on VF

2016-06-07 Thread Zhe Tao
Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-by: Wenzhuo Lu ---

[dpdk-dev] [PATCH v4 4/8] ixgbe: implement device reset on VF

2016-06-07 Thread Zhe Tao
Implement the device reset function. 1, Add the fake RX/TX functions. 2, The reset function tries to stop RX/TX by replacing the RX/TX functions with the fake ones and getting the locks to make sure the regular RX/TX finished. 3, After the RX/TX stopped, reset the VF port, and then release

[dpdk-dev] [PATCH v4 5/8] igb: RX/TX with lock on VF

2016-06-07 Thread Zhe Tao
Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-by: Wenzhuo Lu ---

[dpdk-dev] [PATCH v4 6/8] igb: implement device reset on VF

2016-06-07 Thread Zhe Tao
Implement the device reset function. 1, Add the fake RX/TX functions. 2, The reset function tries to stop RX/TX by replacing the RX/TX functions with the fake ones and getting the locks to make sure the regular RX/TX finished. 3, After the RX/TX stopped, reset the VF port, and then release

[dpdk-dev] [PATCH v4 7/8] i40e: RX/TX with lock on VF

2016-06-07 Thread Zhe Tao
Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-b

[dpdk-dev] [PATCH v4 8/8] i40e: implement device reset on VF

2016-06-07 Thread Zhe Tao
release the locks. Signed-off-by: Zhe Tao --- doc/guides/rel_notes/release_16_07.rst | 5 ++ drivers/net/i40e/i40e_ethdev.h | 7 +- drivers/net/i40e/i40e_ethdev_vf.c | 152 - drivers/net/i40e/i40e_rxtx.c | 10 +++ drivers/net/i40e/i40e_rxtx.h

[dpdk-dev] [PATCH v2] i40e: fix olflags for vector RX

2016-06-13 Thread Zhe Tao
) Signed-off-by: Zhe Tao --- v2: Changed the comments according to the code change. drivers/net/i40e/i40e_rxtx_vec.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/net/i40e/i40e_rxtx_vec.c b/drivers/net/i40e/i40e_rxtx_vec.c index eef80d9..dd113f3 100644

[dpdk-dev] [PATCH v9 2/3] i40e: add floating VEB support in i40e

2016-06-13 Thread Zhe Tao
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. Now the floating VEB feature is only avaiable for the FW version which newer than 5.0 (FW major version number > 5). Signed-off-by:

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

2016-06-13 Thread Zhe Tao
ans the traffic cannot go to ouside world. 2. doesn't need to connect to the phsical port which means when the physical link is down the floating VEB can still works fine. Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_ethdev.c | 44 ++ drivers/ne

[dpdk-dev] [PATCH v9 0/3] i40e: add floating VEB support for i40e

2016-06-13 Thread Zhe Tao
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. This floating VEB only take effects on the specific version F/W which newer than 5.0. Zhe Tao (3): Support floating VEB config Add

  1   2   >