Skip to contentSkip to conversation

doc: add known PHY link up issue for i40e

PATCH Superseded Jeff Guo 3 participants 10 messages Oct 11, 2018 – Nov 16, 2018

lore
Share & tools
lore

Jeff Guo

author
#0 lore raw

PATCH 1/1 doc: add known PHY link up issue for i40e

When application stop i40e nics and quit itself, if i40e nics be rebinded from pmd to kernel driver, sometimes PHY can not be link up again any more.

---
 doc/guides/rel_notes/known_issues.rst | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
doc/guides/rel_notes/known_issues.rst +27 -0
index 95e4ce6..3378bb7 100644
@@ -759,3 +759,30 @@ Netvsc driver and application restart
 
 **Driver/Module**:
    ``uio_hv_generic`` module.
+
+
+PHY link up failed when rebind i40e nics to kernel driver
+---------------------------------------------------------
+
+**Description**:
+   When application stop i40e nics and quit itself, if i40e nics be rebinded
+   from pmd to kernel driver, sometimes PHY can not be link up again any more.
+
+**Implication**:
+   when DPDK application quit and invoke the function ``i40e_dev_stop``, I40e
+   pmd will set PHY to be link down. After these unexpected configure which not
+   come from kernel driver, it will encounter link configure failure by using
+   kernel driver config tools ``ifconfig``. It is a known PHY link configure
+   synchronous issue in i40e kernel driver. The fix has been addressed in 2.7.4
+   rc version. So if the i40e kernel driver is < 2.7.4 and before the fix be
+   backported into the privous versions, use these kernel drivers will perhaps
+   have this issue.
+
+**Resolution/Workaround**:
+   If it does not help by re-insmod kernel driver, please reboot system.
+
+**Affected E0nvironment/Platform**:
+   All.
+
+**Driver/Module**:
+   Poll Mode Driver (PMD).
Signature · 1 line
2.7.4
#1 lore raw

Hi Jeff:

Quoted 10 lines

-----Original Message-----
From: Guo, Jia
Sent: Thursday, October 11, 2018 4:09 AM
To: Zhang, Qi Z <[email protected]>; Xing, Beilei <[email protected]>; Mcnamara, John <[email protected]>; Kovacevic, Marko <[email protected]>
Cc: Wu, Jingjing <[email protected]>; [email protected]; Guo, Jia <[email protected]>; Zhang, Helin <[email protected]>
Subject: [PATCH] doc: add known PHY link up issue for i40e

Quoted 2 lines

When application stop i40e nics and quit itself, if i40e nics be rebinded from pmd to kernel driver, sometimes PHY can not be link up again any more.

Better use capital letter for NIC , PMD.

s/stop/stops

s/rebinded/rebound

s/can not/cannot

Quoted 24 lines
---
 doc/guides/rel_notes/known_issues.rst | 27
+++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
doc/guides/rel_notes/known_issues.rst +8 -0
index 95e4ce6..3378bb7 100644
@@ -759,3 +759,30 @@ Netvsc driver and application restart
 
 **Driver/Module**:
    ``uio_hv_generic`` module.
+
+
+PHY link up failed when rebind i40e nics to kernel driver
+---------------------------------------------------------
+
+**Description**:
+   When application stop i40e nics and quit itself, if i40e nics be rebinded
+   from pmd to kernel driver, sometimes PHY can not be link up again any
Quoted 1 line

more.

Besides the spell, grammar fix as previous, I think the content here should be swapped with the content in **Implication**

Quoted 7 lines
doc/guides/rel_notes/known_issues.rst +3 -0
+
+**Implication**:
+   when DPDK application quit and invoke the function ``i40e_dev_stop``,

I40e
+ pmd will set PHY to be link down. After these unexpected configure
which not
+ come from kernel driver,

Not very clear about this statement.
Are you going to say:

Before DPDK application quit, it will invoke the function ````i40e_dev_stop`` which will set PHY to link down. This is the situation that some kernel driver may not able to handle link status correctly after it retakes control of the device.

I think some reword is necessary here

Quoted 2 lines

+ it will encounter link configure failure by using
+ kernel driver config tools ``ifconfig``. It is a known PHY link configure

No need "kernel driver config tools ``ifconfig``" , just ``ifconfig`` should be enough

doc/guides/rel_notes/known_issues.rst Netvsc driver and application restart · line 782

Quoted 11 lines

+ synchronous issue in i40e kernel driver. The fix has been addressed in
2.7.4

doc/guides/rel_notes/known_issues.rst +2 -0
+   rc version. So if the i40e kernel driver is < 2.7.4 and before the fix be
+   backported into the privous versions, use these kernel drivers will

perhaps

doc/guides/rel_notes/known_issues.rst +4 -0
+   have this issue.
 
 
+
+**Resolution/Workaround**:
+   If it does not help by re-insmod kernel driver, please reboot system.

remove and re-insert?

If it does not help by remove and insert i40e kernel driver, please reboot the system.

doc/guides/rel_notes/known_issues.rst

Quoted 2 lines
doc/guides/rel_notes/known_issues.rst +2 -0
+
+**Affected E0nvironment/Platform**:

Environment

Quoted 6 lines
doc/guides/rel_notes/known_issues.rst +4 -1
+   All.
+
+**Driver/Module**:
+   Poll Mode Driver (PMD).
--

2.7.4

author
#2 lore raw

Hi, qi

Mostly accept, please check v2 version for that, thanks.

Best regards,
Jeff Guo

-----Original Message-----
From: Zhang, Qi Z
Sent: Saturday, October 20, 2018 2:05 AM
To: Guo, Jia <[email protected]>; Xing, Beilei <[email protected]>; Mcnamara, John <[email protected]>; Kovacevic, Marko <[email protected]>
Cc: Wu, Jingjing <[email protected]>; [email protected]; Zhang, Helin <[email protected]>
Subject: RE: [PATCH] doc: add known PHY link up issue for i40e

Hi Jeff:

Quoted 10 lines

-----Original Message-----
From: Guo, Jia
Sent: Thursday, October 11, 2018 4:09 AM
To: Zhang, Qi Z <[email protected]>; Xing, Beilei <[email protected]>; Mcnamara, John <[email protected]>; Kovacevic, Marko <[email protected]>
Cc: Wu, Jingjing <[email protected]>; [email protected]; Guo, Jia <[email protected]>; Zhang, Helin <[email protected]>
Subject: [PATCH] doc: add known PHY link up issue for i40e

Quoted 2 lines

When application stop i40e nics and quit itself, if i40e nics be rebinded from pmd to kernel driver, sometimes PHY can not be link up again any more.

Better use capital letter for NIC , PMD.

s/stop/stops

s/rebinded/rebound

s/can not/cannot

Quoted 25 lines
---
 doc/guides/rel_notes/known_issues.rst | 27
+++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
doc/guides/rel_notes/known_issues.rst +9 -0
index 95e4ce6..3378bb7 100644
@@ -759,3 +759,30 @@ Netvsc driver and application restart
 
 **Driver/Module**:
    ``uio_hv_generic`` module.
+
+
+PHY link up failed when rebind i40e nics to kernel driver
+---------------------------------------------------------
+
+**Description**:
+   When application stop i40e nics and quit itself, if i40e nics be rebinded
+   from pmd to kernel driver, sometimes PHY can not be link up again 
+any
Quoted 1 line

more.

Besides the spell, grammar fix as previous, I think the content here should be swapped with the content in **Implication**

Quoted 8 lines
doc/guides/rel_notes/known_issues.rst +4 -0
+
+**Implication**:
+   when DPDK application quit and invoke the function 
+``i40e_dev_stop``,

I40e
+ pmd will set PHY to be link down. After these unexpected configure
which not
+ come from kernel driver,

Not very clear about this statement.
Are you going to say:

Before DPDK application quit, it will invoke the function ````i40e_dev_stop`` which will set PHY to link down. This is the situation that some kernel driver may not able to handle link status correctly after it retakes control of the device.

I think some reword is necessary here

Quoted 3 lines

+ it will encounter link configure failure by using
+ kernel driver config tools ``ifconfig``. It is a known PHY link
+ configure

No need "kernel driver config tools ``ifconfig``" , just ``ifconfig`` should be enough

doc/guides/rel_notes/known_issues.rst Netvsc driver and application restart · line 782

Quoted 13 lines

+ synchronous issue in i40e kernel driver. The fix has been
+ addressed in
2.7.4

doc/guides/rel_notes/known_issues.rst +3 -0
+   rc version. So if the i40e kernel driver is < 2.7.4 and before the fix be
+   backported into the privous versions, use these kernel drivers 
+ will

perhaps

doc/guides/rel_notes/known_issues.rst +4 -0
+   have this issue.
 
 
+
+**Resolution/Workaround**:
+   If it does not help by re-insmod kernel driver, please reboot system.

remove and re-insert?

If it does not help by remove and insert i40e kernel driver, please reboot the system.

doc/guides/rel_notes/known_issues.rst

Quoted 2 lines
doc/guides/rel_notes/known_issues.rst +2 -0
+
+**Affected E0nvironment/Platform**:

Environment

Quoted 6 lines
doc/guides/rel_notes/known_issues.rst +4 -1
+   All.
+
+**Driver/Module**:
+   Poll Mode Driver (PMD).
--

2.7.4

author
#3 lore raw

PATCH v2 1/1 doc: add known PHY link up issue for i40e

In reply to Jeff Guo

If bind i40e NICs with PMD and run application, after application quits, some kernel driver may not be able to set PHY to link up again by ``ifconfig`` after NICs be rebound to kernel driver.

---
v2->v1:
refine some typo and word.

---
 doc/guides/rel_notes/known_issues.rst | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
doc/guides/rel_notes/known_issues.rst +27 -0
index 95e4ce6..f4e3519 100644
@@ -759,3 +759,30 @@ Netvsc driver and application restart
 
 **Driver/Module**:
    ``uio_hv_generic`` module.
+
+
+PHY link up failed when rebind i40e NICs to kernel driver
+---------------------------------------------------------
+
+**Description**:
+   If bind i40e NICs with PMD and run application, after application quits, some
+   kernel driver may not be able to set PHY to link up again by ``ifconfig``
+   after NICs be rebound to kernel driver.
+
+**Implication**:
+   Before application quits, it will invokes the function ``i40e_dev_stop``,
+   which will set PHY to link down. This is the situation that some kernel
+   driver may not be able to handle link status correctly after it retakes
+   control of the device. It is a known PHY link configure synchronous issue in
+   i40e kernel driver. The fix has been addressed in 2.7.4 rc version. So if
+   the i40e kernel driver is < 2.7.4 and before the fix be backported into the
+   previous versions, it will encounter this issue.
+
+**Resolution/Workaround**:
+   If it does not help by remove and reinsert i40e kernel driver, please reboot system.
+
+**Affected Environment/Platform**:
+   All.
+
+**Driver/Module**:
+   Poll Mode Driver (PMD).
Signature · 1 line
2.7.4
#4 lore raw
Quoted 42 lines

-----Original Message-----
From: Guo, Jia
Sent: Thursday, November 8, 2018 12:18 AM
To: Xing, Beilei <[email protected]>; Kovacevic, Marko <[email protected]>; Mcnamara, John <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Guo, Jia <[email protected]>; Zhang, Helin <[email protected]>; Wu, Jingjing <[email protected]>
Subject: [PATCH V2] doc: add known PHY link up issue for i40e

If bind i40e NICs with PMD and run application, after application quits, some kernel driver may not be able to set PHY to link up again by ``ifconfig`` after NICs be rebound to kernel driver.

---
v2->v1:
refine some typo and word.

---
 doc/guides/rel_notes/known_issues.rst | 27
+++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
doc/guides/rel_notes/known_issues.rst +7 -0
index 95e4ce6..f4e3519 100644
@@ -759,3 +759,30 @@ Netvsc driver and application restart
 
 **Driver/Module**:
    ``uio_hv_generic`` module.
+
+
+PHY link up failed when rebind i40e NICs to kernel driver
+---------------------------------------------------------
+
+**Description**:
+   If bind i40e NICs with PMD and run application, after application quits,

some

doc/guides/rel_notes/known_issues.rst Netvsc driver and application restart · line 770

Quoted 2 lines
doc/guides/rel_notes/known_issues.rst +2 -0
+   kernel driver may not be able to set PHY to link up again by ``ifconfig``
+   after NICs be rebound to kernel driver.

Should we switch the content of "description" and "implication"?

Quoted 23 lines
doc/guides/rel_notes/known_issues.rst +6 -0
+
+**Implication**:
+   Before application quits, it will invokes the function ``i40e_dev_stop``,
+   which will set PHY to link down. This is the situation that some kernel
+   driver may not be able to handle link status correctly after it retakes
+   control of the device. It is a known PHY link configure synchronous issue

in

doc/guides/rel_notes/known_issues.rst +2 -0
+   i40e kernel driver. The fix has been addressed in 2.7.4 rc version. So if
+   the i40e kernel driver is < 2.7.4 and before the fix be backported into

the

doc/guides/rel_notes/known_issues.rst +4 -0
+   previous versions, it will encounter this issue.
+
+**Resolution/Workaround**:
+   If it does not help by remove and reinsert i40e kernel driver, please

reboot system.

doc/guides/rel_notes/known_issues.rst +6 -1
+
+**Affected Environment/Platform**:
+   All.
+
+**Driver/Module**:
+   Poll Mode Driver (PMD).
--

2.7.4

author
#5 lore raw
Quoted 31 lines · Qi Z
Quoted 31 lines

-----Original Message-----
From: Guo, Jia
Sent: Thursday, November 8, 2018 12:18 AM
To: Xing, Beilei <[email protected]>; Kovacevic, Marko <[email protected]>; Mcnamara, John <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Guo, Jia <[email protected]>; Zhang, Helin <[email protected]>; Wu, Jingjing <[email protected]>
Subject: [PATCH V2] doc: add known PHY link up issue for i40e

If bind i40e NICs with PMD and run application, after application quits, some kernel driver may not be able to set PHY to link up again by ``ifconfig`` after NICs be rebound to kernel driver.

---
v2->v1:
refine some typo and word.

---
  doc/guides/rel_notes/known_issues.rst | 27
+++++++++++++++++++++++++++
  1 file changed, 27 insertions(+)
doc/guides/rel_notes/known_issues.rst +0 -0
index 95e4ce6..f4e3519 100644
@@ -759,3 +759,30 @@ Netvsc driver and application restart
 
Quoted 13 lines

doc/guides/rel_notes/known_issues.rst Netvsc driver and application restart · line 770

Quoted 12 lines
doc/guides/rel_notes/known_issues.rst +7 -0
  **Driver/Module**:
     ``uio_hv_generic`` module.
+
+
+PHY link up failed when rebind i40e NICs to kernel driver
+---------------------------------------------------------
+
+**Description**:
+   If bind i40e NICs with PMD and run application, after application quits,

some

doc/guides/rel_notes/known_issues.rst +2 -0
+   kernel driver may not be able to set PHY to link up again by ``ifconfig``
+   after NICs be rebound to kernel driver.

Should we switch the content of "description" and "implication"?

I think **Description** is aim to explain the meaning of the title and give the detail of the phenomenon to acknowledge it.

And **Implication** is what is the true thing behind the phenomenon and show which version will be expected to fix. I believe

other part in document is the same and it will no have a big gap here. If you find the problem, please give your solid reason here.

Anyway, i think it should be fine and want you could accept my explanation.

Quoted 23 lines
Quoted 23 lines
doc/guides/rel_notes/known_issues.rst +6 -0
+
+**Implication**:
+   Before application quits, it will invokes the function ``i40e_dev_stop``,
+   which will set PHY to link down. This is the situation that some kernel
+   driver may not be able to handle link status correctly after it retakes
+   control of the device. It is a known PHY link configure synchronous issue

in

doc/guides/rel_notes/known_issues.rst +2 -0
+   i40e kernel driver. The fix has been addressed in 2.7.4 rc version. So if
+   the i40e kernel driver is < 2.7.4 and before the fix be backported into

the

doc/guides/rel_notes/known_issues.rst +4 -0
+   previous versions, it will encounter this issue.
+
+**Resolution/Workaround**:
+   If it does not help by remove and reinsert i40e kernel driver, please

reboot system.

doc/guides/rel_notes/known_issues.rst +6 -1
+
+**Affected Environment/Platform**:
+   All.
+
+**Driver/Module**:
+   Poll Mode Driver (PMD).
--

2.7.4

#6 lore raw
Quoted 58 lines

-----Original Message-----
From: Guo, Jia
Sent: Thursday, November 8, 2018 7:22 PM
To: Zhang, Qi Z <[email protected]>; Xing, Beilei <[email protected]>; Kovacevic, Marko <[email protected]>; Mcnamara, John <[email protected]>
Cc: [email protected]; Zhang, Helin <[email protected]>; Wu, Jingjing <[email protected]>
Subject: Re: [PATCH V2] doc: add known PHY link up issue for i40e

Quoted 31 lines · Qi Z
Quoted 31 lines

-----Original Message-----
From: Guo, Jia
Sent: Thursday, November 8, 2018 12:18 AM
To: Xing, Beilei <[email protected]>; Kovacevic, Marko <[email protected]>; Mcnamara, John <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Guo, Jia <[email protected]>; Zhang, Helin <[email protected]>; Wu, Jingjing <[email protected]>
Subject: [PATCH V2] doc: add known PHY link up issue for i40e

If bind i40e NICs with PMD and run application, after application quits, some kernel driver may not be able to set PHY to link up again by ``ifconfig`` after NICs be rebound to kernel driver.

---
v2->v1:
refine some typo and word.

---
  doc/guides/rel_notes/known_issues.rst | 27
+++++++++++++++++++++++++++
  1 file changed, 27 insertions(+)
doc/guides/rel_notes/known_issues.rst +0 -0
index 95e4ce6..f4e3519 100644
@@ -759,3 +759,30 @@ Netvsc driver and application restart
 
Quoted 12 lines
Quoted 10 lines
doc/guides/rel_notes/known_issues.rst +8 -0
  **Driver/Module**:
     ``uio_hv_generic`` module.
+
+
+PHY link up failed when rebind i40e NICs to kernel driver
+---------------------------------------------------------
+
+**Description**:
+   If bind i40e NICs with PMD and run application, after application
+quits,
Quoted 2 lines

some
+ kernel driver may not be able to set PHY to link up again by

``ifconfig``

Quoted 6 lines
Quoted 2 lines
Quoted 1 line

+ after NICs be rebound to kernel driver.

Should we switch the content of "description" and "implication"?

I think **Description** is aim to explain the meaning of the title and give the detail of the phenomenon to acknowledge it.

That's similar as what I understand.

Quoted 3 lines

And **Implication** is what is the true thing behind the phenomenon and show which version will be expected to fix. I believe

My understand for **implication** is, it should include the information about the result and impact due to the issue.

Here the issue is:
Some kernel driver not able to handle link status correctly after DPDK app set PHY to down."

The implication is:
Link can't be turn up after NIC be rebound to kernel driver.

So the word below looks like the result that user will suffer by this issue, so I think it should be included in implication section.

If bind i40e NICs with PMD and run application, after application quits,
some kernel driver may not be able to set PHY to link up again by `ifconfig`` after NICs be rebound to kernel driver

while the "true thing behind the phenomenon" could still be included in description.

Anyway, I'm not expert for this, I can be totally wrong, its good chance that someone can help to explain for this :)

Thanks
Qi

Quoted 35 lines

other part in document is the same and it will no have a big gap here. If you find the problem, please give your solid reason here.

Anyway, i think it should be fine and want you could accept my explanation.

Quoted 3 lines

doc/guides/rel_notes/known_issues.rst Netvsc driver and application restart

Quoted 3 lines
doc/guides/rel_notes/known_issues.rst +3 -0
+
+**Implication**:
+   Before application quits, it will invokes the function

``i40e_dev_stop``,

Quoted 6 lines
Quoted 6 lines
doc/guides/rel_notes/known_issues.rst +4 -0
+   which will set PHY to link down. This is the situation that some kernel
+   driver may not be able to handle link status correctly after it retakes
+   control of the device. It is a known PHY link configure
+synchronous issue

in
+ i40e kernel driver. The fix has been addressed in 2.7.4 rc version. So

if

Quoted 17 lines
Quoted 17 lines

+ the i40e kernel driver is < 2.7.4 and before the fix be
+ backported into
the

doc/guides/rel_notes/known_issues.rst +5 -0
+   previous versions, it will encounter this issue.
+
+**Resolution/Workaround**:
+   If it does not help by remove and reinsert i40e kernel driver,
+please

reboot system.

doc/guides/rel_notes/known_issues.rst +6 -1
+
+**Affected Environment/Platform**:
+   All.
+
+**Driver/Module**:
+   Poll Mode Driver (PMD).
--

2.7.4

author
#7 lore raw

PATCH v3 1/1 doc: add known PHY link up issue for i40e

In reply to Jeff Guo

Some kernel drivers are not able to handle the link status correctly after DPDK application sets the PHY to link down.

---
 doc/guides/rel_notes/known_issues.rst | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
doc/guides/rel_notes/known_issues.rst +28 -0
index 95e4ce6..03fe163 100644
@@ -759,3 +759,31 @@ Netvsc driver and application restart
 
 **Driver/Module**:
    ``uio_hv_generic`` module.
+
+
+PHY link up fails when rebinding i40e NICs to kernel driver
+-----------------------------------------------------------
+
+**Description**:
+   Some kernel drivers are not able to handle the link status correctly
+   after DPDK application sets the PHY to link down.
+
+**Implication**:
+   The link status can't be set to "up" after the NIC is rebound to the
+   kernel driver. Before a DPDK application quits it will invokes the
+   function ``i40e_dev_stop()`` which will sets the PHY to link down. Some
+   kernel drivers may not be able to handle the link status correctly after
+   it retakes control of the device. This is a known PHY link configuration
+   issue in the i40e kernel driver. The fix has been addressed in the 2.7.4 rc
+   version. So if the i40e kernel driver is < 2.7.4 and doesn't have the
+   fix backported it will encounter this issue.
+
+**Resolution/Workaround**:
+   First try to remove and reinsert the i40e kernel driver. If that fails
+   reboot the system.
+
+**Affected Environment/Platform**:
+   All.
+
+**Driver/Module**:
+   Poll Mode Driver (PMD).
Signature · 1 line
2.7.4
Acked-by on v3 1/1
#8 lore raw

One very small spelling fix

doc/guides/rel_notes/known_issues.rst Netvsc driver and application restart · line 773

Quoted 10 lines
doc/guides/rel_notes/known_issues.rst +10 -0
+PHY link up fails when rebinding i40e NICs to kernel driver
+-----------------------------------------------------------
+
+**Description**:
+   Some kernel drivers are not able to handle the link status correctly
+   after DPDK application sets the PHY to link down.
+
+**Implication**:
+   The link status can't be set to "up" after the NIC is rebound to the
+   kernel driver. Before a DPDK application quits it will invokes the

Invokes/ invoke

Everything else looks fine to me.

You can add my ack in the next quick fix.

Applied
#9 lore raw
Quoted 28 lines

-----Original Message-----
From: Kovacevic, Marko
Sent: Friday, November 16, 2018 1:41 AM
To: Guo, Jia <[email protected]>; Xing, Beilei <[email protected]>; Mcnamara, John <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Zhang, Helin <[email protected]>; Wu, Jingjing <[email protected]>
Subject: RE: [PATCH V3] doc: add known PHY link up issue for i40e

One very small spelling fix

doc/guides/rel_notes/known_issues.rst Netvsc driver and application restart · line 773

Quoted 10 lines
doc/guides/rel_notes/known_issues.rst +10 -0
+PHY link up fails when rebinding i40e NICs to kernel driver
+-----------------------------------------------------------
+
+**Description**:
+   Some kernel drivers are not able to handle the link status correctly
+   after DPDK application sets the PHY to link down.
+
+**Implication**:
+   The link status can't be set to "up" after the NIC is rebound to the
+   kernel driver. Before a DPDK application quits it will invokes the

Invokes/ invoke

Quoted 5 lines

Everything else looks fine to me.

You can add my ack in the next quick fix.

Applied to dpdk-next-net-intel with the typo fix.

Thanks
Qi