net/ixgbe: support detection of hot swapped SFP/SFP+
PATCH 1/1 net/ixgbe: support detection of hot swapped SFP/SFP+
From: Srinivasan Jayarajan <[email protected]>
Adds support to use a different SFP/SFP+ without restarting the DPDK app. rte_eth_dev_stop()/rte_eth_dev_start() will need to be called on the port to detect the SFP/SFP+ change.
--- drivers/net/ixgbe/ixgbe_ethdev.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +13 -0
@@ -2520,6 +2520,19 @@ static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) status =ixgbe_pf_reset_hw (hw);if (status !=0 )return -1 ; + +/* Set phy type as unknown so that PHY scan is always done */ + hw->phy.type = ixgbe_phy_unknown; + +/* Identify PHY and related function pointers */ + status = hw->phy.ops.init (hw); + +if (status ==IXGBE_ERR_SFP_NOT_SUPPORTED ) { +PMD_INIT_LOG (ERR ,"Found unsupported SFP in " +"ixgbe_dev_start(): %d" , status); +return -1 ; + } + hw->mac.ops.start_hw (hw); hw->mac.get_link_status = true;
Signature · 1 line
1.8.1.4
Hi Srini,
Quoted 31 lines
-----Original Message-----
From: Srini J [mailto:[email protected]]
Sent: Thursday, April 20, 2017 6:48 PM
To: Lu, Wenzhuo; Ananyev, Konstantin
Cc: [email protected]; Srinivasan Jayarajan
Subject: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+From: Srinivasan Jayarajan <[email protected]>
Adds support to use a different SFP/SFP+ without restarting the DPDK app. rte_eth_dev_stop()/rte_eth_dev_start() will need to be called on the port to detect the SFP/SFP+ change.
Signed-off-by Srinivasan Jayarajan <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +3
-0@@ -2520,6 +2520,19 @@ static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) status =ixgbe_pf_reset_hw (hw);if (status !=0 )return -1 ; + +/* Set phy type as unknown so that PHY scan is always done */ + hw->phy.type = ixgbe_phy_unknown;
drivers/net/ixgbe/ixgbe_ethdev.c static int eth_ixgbevf_pci_remove(struct · line 2536
Quoted 10 lines
drivers/net/ixgbe/ixgbe_ethdev.c +10
-0+ +/* Identify PHY and related function pointers */ + status = hw->phy.ops.init (hw); + +if (status ==IXGBE_ERR_SFP_NOT_SUPPORTED ) { +PMD_INIT_LOG (ERR ,"Found unsupported SFP in " +"ixgbe_dev_start(): %d" , status); +return -1 ; + } +
I have the concern if it's a good idea to move the functions from dev_init to dev_start. Especially this function named init. Anyway, let's listen to others opinion.
Quoted 5 lines
drivers/net/ixgbe/ixgbe_ethdev.c +0
-1hw->mac.ops.start_hw (hw); hw->mac.get_link_status = true; --1.8.1.4
Hi Wenzhuo,
I understand your concern. I had to do this change
to support hot swap of SFP/SFP+ modules without restarting the DPDK app. If we have some other mechanism in pipeline to support hot swap of SFP/SFP+ modules, then my changes can be ignored. I just wanted to share the changes which worked for me back to the community.
Regards,
Srini
Quoted 53 lines · Wenzhuo
Hi Srini,
Quoted 31 lines
-----Original Message-----
From: Srini J [mailto:[email protected]]
Sent: Thursday, April 20, 2017 6:48 PM
To: Lu, Wenzhuo; Ananyev, Konstantin
Cc: [email protected]; Srinivasan Jayarajan
Subject: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+From: Srinivasan Jayarajan <[email protected]>
Adds support to use a different SFP/SFP+ without restarting the DPDK app. rte_eth_dev_stop()/rte_eth_dev_start() will need to be called on the port to detect the SFP/SFP+ change.
Signed-off-by Srinivasan Jayarajan <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +3
-0@@ -2520,6 +2520,19 @@ static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) status =ixgbe_pf_reset_hw (hw);if (status !=0 )return -1 ; + +/* Set phy type as unknown so that PHY scan is always done */ + hw->phy.type = ixgbe_phy_unknown;drivers/net/ixgbe/ixgbe_ethdev.c static int eth_ixgbevf_pci_remove(struct · line 2536
Quoted 10 lines
drivers/net/ixgbe/ixgbe_ethdev.c +10
-0+ +/* Identify PHY and related function pointers */ + status = hw->phy.ops.init (hw); + +if (status ==IXGBE_ERR_SFP_NOT_SUPPORTED ) { +PMD_INIT_LOG (ERR ,"Found unsupported SFP in " +"ixgbe_dev_start(): %d" , status); +return -1 ; + } +I have the concern if it's a good idea to move the functions from
dev_inittodev_start. Especially this function named init. Anyway, let's listen to others opinion.Quoted 5 lines
drivers/net/ixgbe/ixgbe_ethdev.c +0
-1hw->mac.ops.start_hw (hw); hw->mac.get_link_status = true; --1.8.1.4
Hi Srini,
Quoted 7 lines
-----Original Message-----
From: Srinivasan J [mailto:[email protected]]
Sent: Monday, April 24, 2017 2:24 PM
To: Lu, Wenzhuo
Cc: Ananyev, Konstantin; [email protected]
Subject: Re: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+
Quoted 6 lines
Hi Wenzhuo,
I understand your concern. I had to do this change to support hot
swap of SFP/SFP+ modules without restarting the DPDK app. If we have some other mechanism in pipeline to support hot swap of SFP/SFP+ modules, then my changes can be ignored. I just wanted to share the changes which worked for me back to the community.
I think restarting the APP is not necessary. You can uninit the port, then re-init the port. Please reference http://dpdk.org/doc/guides/prog_guide/port_hotplug_framework.html to see if it can help.
Quoted 60 lines
Regards,
SriniQuoted 36 lines · Wenzhuo
Hi Srini,
Quoted 34 lines
-----Original Message-----
From: Srini J [mailto:[email protected]]
Sent: Thursday, April 20, 2017 6:48 PM
To: Lu, Wenzhuo; Ananyev, Konstantin
Cc: [email protected]; Srinivasan Jayarajan
Subject: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+From: Srinivasan Jayarajan <[email protected]>
Adds support to use a different SFP/SFP+ without restarting the DPDK app. rte_eth_dev_stop()/rte_eth_dev_start() will need to be called on the port to detect the SFP/SFP+ change.
Signed-off-by Srinivasan Jayarajan <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +6
-0@@ -2520,6 +2520,19 @@ static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) status =ixgbe_pf_reset_hw (hw);if (status !=0 )return -1 ; + +/* Set phy type as unknown so that PHY scan is always done */ + hw->phy.type = ixgbe_phy_unknown; + +/* Identify PHY and related function pointers */ + status = hw->phy.ops.init (hw);Quoted 8 lines
drivers/net/ixgbe/ixgbe_ethdev.c static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) · line 2535
Quoted 7 lines
drivers/net/ixgbe/ixgbe_ethdev.c +7
-0+ +if (status ==IXGBE_ERR_SFP_NOT_SUPPORTED ) { +PMD_INIT_LOG (ERR ,"Found unsupported SFP in " +"ixgbe_dev_start(): %d" , status); +return -1 ; + } +I have the concern if it's a good idea to move the functions from
dev_initto
dev_start. Especially this function named init.Quoted 9 lines
Anyway, let's listen to others opinion.
Quoted 5 lines
drivers/net/ixgbe/ixgbe_ethdev.c +0
-1hw->mac.ops.start_hw (hw); hw->mac.get_link_status = true; --1.8.1.4
Hi Wenzhuo,
Port hot-plug would require the DPDK app to
dynamically mange ports and the kernel to support PCI hot-plugging. When multiple ports are detached/attached (SFP's plugged in/out), would the DPDK port id's remain same? If not, app needs to handle port id change for a give NIC.
While port hot-plug can be used to dynamically handle SFP hot-plugging, I feel it's not the optimal solution.
Regards,
Srini
Quoted 79 lines · Wenzhuo
Hi Srini,
Quoted 7 lines
-----Original Message-----
From: Srinivasan J [mailto:[email protected]]
Sent: Monday, April 24, 2017 2:24 PM
To: Lu, Wenzhuo
Cc: Ananyev, Konstantin; [email protected]
Subject: Re: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+Quoted 6 lines
Hi Wenzhuo,
I understand your concern. I had to do this change to support hot
swap of SFP/SFP+ modules without restarting the DPDK app. If we have some other mechanism in pipeline to support hot swap of SFP/SFP+ modules, then my changes can be ignored. I just wanted to share the changes which worked for me back to the community.I think restarting the APP is not necessary. You can uninit the port, then re-init the port. Please reference http://dpdk.org/doc/guides/prog_guide/port_hotplug_framework.html to see if it can help.
Quoted 60 lines
Regards,
SriniQuoted 36 lines · Wenzhuo
Hi Srini,
Quoted 34 lines
-----Original Message-----
From: Srini J [mailto:[email protected]]
Sent: Thursday, April 20, 2017 6:48 PM
To: Lu, Wenzhuo; Ananyev, Konstantin
Cc: [email protected]; Srinivasan Jayarajan
Subject: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+From: Srinivasan Jayarajan <[email protected]>
Adds support to use a different SFP/SFP+ without restarting the DPDK app. rte_eth_dev_stop()/rte_eth_dev_start() will need to be called on the port to detect the SFP/SFP+ change.
Signed-off-by Srinivasan Jayarajan <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +6
-0@@ -2520,6 +2520,19 @@ static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) status =ixgbe_pf_reset_hw (hw);if (status !=0 )return -1 ; + +/* Set phy type as unknown so that PHY scan is always done */ + hw->phy.type = ixgbe_phy_unknown; + +/* Identify PHY and related function pointers */ + status = hw->phy.ops.init (hw);Quoted 8 lines
drivers/net/ixgbe/ixgbe_ethdev.c static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) · line 2535
Quoted 7 lines
drivers/net/ixgbe/ixgbe_ethdev.c +7
-0+ +if (status ==IXGBE_ERR_SFP_NOT_SUPPORTED ) { +PMD_INIT_LOG (ERR ,"Found unsupported SFP in " +"ixgbe_dev_start(): %d" , status); +return -1 ; + } +I have the concern if it's a good idea to move the functions from
dev_initto
dev_start. Especially this function named init.Quoted 9 lines
Anyway, let's listen to others opinion.
Quoted 5 lines
drivers/net/ixgbe/ixgbe_ethdev.c +0
-1hw->mac.ops.start_hw (hw); hw->mac.get_link_status = true; --1.8.1.4
Hi Srini,
Quoted 7 lines
-----Original Message-----
From: Srinivasan J [mailto:[email protected]]
Sent: Monday, April 24, 2017 6:51 PM
To: Lu, Wenzhuo
Cc: Ananyev, Konstantin; [email protected]
Subject: Re: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+
Quoted 6 lines
Hi Wenzhuo,
Port hot-plug would require the DPDK app to dynamically mange
ports and the kernel to support PCI hot-plugging.
When multiple ports are detached/attached (SFP's plugged in/out), would the DPDK port id's remain same? If not, app needs to handle port id change for a give NIC.
Yes, APP needs to handle the port id change. Agree this patch is a much simpler solution than the port hot-plug. So I don’t object it :)
Quoted 94 lines
While port hot-plug can be used to dynamically handle SFP hot-plugging, I feel it's not the optimal solution.
Regards,
SriniQuoted 11 lines · Wenzhuo
Hi Srini,
Quoted 8 lines
-----Original Message-----
From: Srinivasan J [mailto:[email protected]]
Sent: Monday, April 24, 2017 2:24 PM
To: Lu, Wenzhuo
Cc: Ananyev, Konstantin; [email protected]
Subject: Re: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+Quoted 7 lines
Quoted 6 lines
Hi Wenzhuo,
I understand your concern. I had to do this change
to support hot swap of SFP/SFP+ modules without restarting the DPDK app. If we have some other mechanism in pipeline to support hot swap of SFP/SFP+ modules, then my changes can be ignored. I just wanted to share the changes which worked for me back to the community.I think restarting the APP is not necessary. You can uninit the port, then
re-init the port.
Quoted 1 line
Please reference
http://dpdk.org/doc/guides/prog_guide/port_hotplug_framework.html to see if it can help.
Quoted 63 lines
Quoted 63 lines
Regards,
SriniQuoted 38 lines · Wenzhuo
Hi Srini,
Quoted 36 lines
-----Original Message-----
From: Srini J [mailto:[email protected]]
Sent: Thursday, April 20, 2017 6:48 PM
To: Lu, Wenzhuo; Ananyev, Konstantin
Cc: [email protected]; Srinivasan Jayarajan
Subject: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+From: Srinivasan Jayarajan <[email protected]>
Adds support to use a different SFP/SFP+ without restarting the DPDK app. rte_eth_dev_stop()/rte_eth_dev_start() will need to be called on the port to detect the SFP/SFP+ change.
Signed-off-by Srinivasan Jayarajan <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +7
-0@@ -2520,6 +2520,19 @@ static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) status =ixgbe_pf_reset_hw (hw);if (status !=0 )return -1 ; + +/* Set phy type as unknown so that PHY scan is always done */ + hw->phy.type = ixgbe_phy_unknown; + +/* Identify PHY and related function pointers */ + status = hw->phy.ops.init (hw); +Quoted 8 lines
drivers/net/ixgbe/ixgbe_ethdev.c static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) · line 2535
Quoted 6 lines
drivers/net/ixgbe/ixgbe_ethdev.c +6
-0+if (status ==IXGBE_ERR_SFP_NOT_SUPPORTED ) { +PMD_INIT_LOG (ERR ,"Found unsupported SFP in " +"ixgbe_dev_start(): %d" , status); +return -1 ; + } +I have the concern if it's a good idea to move the functions from
dev_initto
dev_start. Especially this function named init.Quoted 9 lines
Anyway, let's listen to others opinion.
Quoted 5 lines
drivers/net/ixgbe/ixgbe_ethdev.c +0
-1hw->mac.ops.start_hw (hw); hw->mac.get_link_status = true; --1.8.1.4
Hi,
Do we need an explicit "Acked-by" keyword for this
patch to be accepted and applied?
Thanks,
Srini
Quoted 113 lines · Wenzhuo
Hi Srini,
Quoted 7 lines
-----Original Message-----
From: Srinivasan J [mailto:[email protected]]
Sent: Monday, April 24, 2017 6:51 PM
To: Lu, Wenzhuo
Cc: Ananyev, Konstantin; [email protected]
Subject: Re: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+Quoted 6 lines
Hi Wenzhuo,
Port hot-plug would require the DPDK app to dynamically mange
ports and the kernel to support PCI hot-plugging.
When multiple ports are detached/attached (SFP's plugged in/out), would the DPDK port id's remain same? If not, app needs to handle port id change for a give NIC.Yes, APP needs to handle the port id change. Agree this patch is a much simpler solution than the port hot-plug. So I don’t object it :)
Quoted 94 lines
While port hot-plug can be used to dynamically handle SFP hot-plugging, I feel it's not the optimal solution.
Regards,
SriniQuoted 11 lines · Wenzhuo
Hi Srini,
Quoted 8 lines
-----Original Message-----
From: Srinivasan J [mailto:[email protected]]
Sent: Monday, April 24, 2017 2:24 PM
To: Lu, Wenzhuo
Cc: Ananyev, Konstantin; [email protected]
Subject: Re: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+Quoted 7 lines
Quoted 6 lines
Hi Wenzhuo,
I understand your concern. I had to do this change
to support hot swap of SFP/SFP+ modules without restarting the DPDK app. If we have some other mechanism in pipeline to support hot swap of SFP/SFP+ modules, then my changes can be ignored. I just wanted to share the changes which worked for me back to the community.I think restarting the APP is not necessary. You can uninit the port, then
re-init the port.
Quoted 1 line
Please reference
http://dpdk.org/doc/guides/prog_guide/port_hotplug_framework.html to see if it can help.
Quoted 63 lines
Quoted 63 lines
Regards,
SriniQuoted 38 lines · Wenzhuo
Hi Srini,
Quoted 36 lines
-----Original Message-----
From: Srini J [mailto:[email protected]]
Sent: Thursday, April 20, 2017 6:48 PM
To: Lu, Wenzhuo; Ananyev, Konstantin
Cc: [email protected]; Srinivasan Jayarajan
Subject: [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+From: Srinivasan Jayarajan <[email protected]>
Adds support to use a different SFP/SFP+ without restarting the DPDK app. rte_eth_dev_stop()/rte_eth_dev_start() will need to be called on the port to detect the SFP/SFP+ change.
Signed-off-by Srinivasan Jayarajan <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +7
-0@@ -2520,6 +2520,19 @@ static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) status =ixgbe_pf_reset_hw (hw);if (status !=0 )return -1 ; + +/* Set phy type as unknown so that PHY scan is always done */ + hw->phy.type = ixgbe_phy_unknown; + +/* Identify PHY and related function pointers */ + status = hw->phy.ops.init (hw); +Quoted 8 lines
drivers/net/ixgbe/ixgbe_ethdev.c static int eth_ixgbevf_pci_remove(struct rte_pci_device *pci_dev) · line 2535
Quoted 6 lines
drivers/net/ixgbe/ixgbe_ethdev.c +6
-0+if (status ==IXGBE_ERR_SFP_NOT_SUPPORTED ) { +PMD_INIT_LOG (ERR ,"Found unsupported SFP in " +"ixgbe_dev_start(): %d" , status); +return -1 ; + } +I have the concern if it's a good idea to move the functions from
dev_initto
dev_start. Especially this function named init.Quoted 9 lines
Anyway, let's listen to others opinion.
Quoted 5 lines
drivers/net/ixgbe/ixgbe_ethdev.c +0
-1hw->mac.ops.start_hw (hw); hw->mac.get_link_status = true; --1.8.1.4
06/05/2017 15:51, Srinivasan J:
Quoted 3 lines
Hi,
Do we need an explicit "Acked-by" keyword for this
patch to be accepted and applied?
Yes, given it is not a trivial patch, an ack from the maintainer is required. Anyway, it has been submitted too late for 17.05 testing.
Hi, Srini
There is a bit confusion. Your patch shows that your code is added into the function eth_ixgbevf_pci_remove( ). But it is not. It is added into the fucntion ixgbe_dev_start( ), right ?
So would you please rebase it to R 17.05 ?
Which type of ixgbe device id did you tested ?
There are many MAC types with different device id.
The function ixgbe_pf_reset_hw(hw) is called before your adding code.ixgbe_pf_reset_hw() calls hw->mac.ops.reset_hw( ) which may points to following different function for different MAC type. Ixgbe_reset_hw_82598( ) calls hw->phy.ops.init(hw) if hw->phy.reset_disable == false .Ixgbe_reset_hw_82599( ) calls hw->phy.ops.init(hw) unconditionally.ixgbe_reset_hw_X540( ) doesn't' call pw->phy.ops.init(hw). For X540, hw->phy.ops.init points to ixgbe_init_phy_ops_generic() which only initialize some function pointers. Ixgbe_rest_hw_x550em() calls hw->phy.ops.init(hw) unconditionally.
And for VF, ixgbe_reset_hw_vf( ) and ixgbevf_hv_reset_hw_vf( ) don't call hw->phy.ops.init(hw) anywhere.
Thanks & Best Regards
-Wei
Quoted 16 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Sunday, May 7, 2017 6:36 AM
To: Srinivasan J <[email protected]>
Cc: [email protected]; Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+06/05/2017 15:51, Srinivasan J:
Quoted 3 lines
Hi,
Do we need an explicit "Acked-by" keyword for this
patch to be accepted and applied?Yes, given it is not a trivial patch, an ack from the maintainer is required. Anyway, it has been submitted too late for 17.05 testing.
Hi Wei,
Yes the changes are in ixgbe_dev_start( ), the patch shows
the function as eth_ixgbevf_pci_remove() probably due to the way diff recognizes the change. I have tested the change using Intel Corporation 82599ES.
Thanks,
Srini
Quoted 38 lines · Wei
Hi, Srini
There is a bit confusion. Your patch shows that your code is added into the function
eth_ixgbevf_pci_remove( ). But it is not. It is added into the fucntionixgbe_dev_start( ), right ?
So would you please rebase it to R 17.05 ?Which type of ixgbe device id did you tested ?
There are many MAC types with different device id.
The function
ixgbe_pf_reset_hw(hw)is called before your adding code.ixgbe_pf_reset_hw()callshw->mac.ops.reset_hw( )which may points to following different function for different MAC type.Ixgbe_reset_hw_82598( )callshw->phy.ops.init(hw)ifhw->phy.reset_disable== false .Ixgbe_reset_hw_82599( )callshw->phy.ops.init(hw)unconditionally.ixgbe_reset_hw_X540( )doesn't' callpw->phy.ops.init(hw). For X540,hw->phy.ops.initpoints toixgbe_init_phy_ops_generic()which only initialize some function pointers.Ixgbe_rest_hw_x550em()callshw->phy.ops.init(hw)unconditionally.And for VF,
ixgbe_reset_hw_vf( )andixgbevf_hv_reset_hw_vf( )don't callhw->phy.ops.init(hw)anywhere.Thanks & Best Regards
-WeiQuoted 16 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Sunday, May 7, 2017 6:36 AM
To: Srinivasan J <[email protected]>
Cc: [email protected]; Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+06/05/2017 15:51, Srinivasan J:
Quoted 3 lines
Hi,
Do we need an explicit "Acked-by" keyword for this
patch to be accepted and applied?Yes, given it is not a trivial patch, an ack from the maintainer is required. Anyway, it has been submitted too late for 17.05 testing.
Quoted 5 lines · Srinivasan J
Hi Wei,
Yes the changes are inixgbe_dev_start( ), the patch shows
the function aseth_ixgbevf_pci_remove()probably due to the way diff recognizes the change. I have tested the change using Intel Corporation 82599ES.
Hi Srinivasan, Wei,
What is the latest status of the patch? Are all issues pointed by Wie addressed in the patch, or are we waiting for a new version?
Thanks,
ferruh
Quoted 43 lines
Thanks,
SriniQuoted 38 lines · Wei
Hi, Srini
There is a bit confusion. Your patch shows that your code is added into the function
eth_ixgbevf_pci_remove( ). But it is not. It is added into the fucntionixgbe_dev_start( ), right ?
So would you please rebase it to R 17.05 ?Which type of ixgbe device id did you tested ?
There are many MAC types with different device id.
The function
ixgbe_pf_reset_hw(hw)is called before your adding code.ixgbe_pf_reset_hw()callshw->mac.ops.reset_hw( )which may points to following different function for different MAC type.Ixgbe_reset_hw_82598( )callshw->phy.ops.init(hw)ifhw->phy.reset_disable== false .Ixgbe_reset_hw_82599( )callshw->phy.ops.init(hw)unconditionally.ixgbe_reset_hw_X540( )doesn't' callpw->phy.ops.init(hw). For X540,hw->phy.ops.initpoints toixgbe_init_phy_ops_generic()which only initialize some function pointers.Ixgbe_rest_hw_x550em()callshw->phy.ops.init(hw)unconditionally.And for VF,
ixgbe_reset_hw_vf( )andixgbevf_hv_reset_hw_vf( )don't callhw->phy.ops.init(hw)anywhere.Thanks & Best Regards
-WeiQuoted 16 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Sunday, May 7, 2017 6:36 AM
To: Srinivasan J <[email protected]>
Cc: [email protected]; Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+06/05/2017 15:51, Srinivasan J:
Quoted 3 lines
Hi,
Do we need an explicit "Acked-by" keyword for this
patch to be accepted and applied?Yes, given it is not a trivial patch, an ack from the maintainer is required. Anyway, it has been submitted too late for 17.05 testing.
HI, Srini
Sorry for late response.
As I have pointed out that Ixgbe_reset_hw_82599( ) calls hw->phy.ops.init(hw) unconditionally, I think it is no need to call hw->phy.ops.init(hw) after ixgbe_pf_reset_hw(hw) at least for 82599. I also think that only moving "hw->phy.type = ixgbe_phy_unknown" just before ixgbe_pf_reset_hw(hw) is OK.
What's more, how about X540 and X550 ?
I have just got a X540 and a X550 NIC with copper interface, so I only can plug in/out the RJ45 line to help test it.
Is your patch designed for plugging out original SFP and then plugging in another different type of SFP ?
By the way, I'd like you provide more details on how to test your patch? With testpmd ? Or other app ?
Thanks
-Wei
Quoted 75 lines
-----Original Message-----
From: Yigit, Ferruh
Sent: Thursday, June 29, 2017 9:00 PM
To: Srinivasan J <[email protected]>; Dai, Wei <[email protected]>
Cc: Thomas Monjalon <[email protected]>; [email protected]; Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+Quoted 5 lines · Srinivasan J
Hi Wei,
Yes the changes are inixgbe_dev_start( ), the patch shows
the function aseth_ixgbevf_pci_remove()probably due to the way diff recognizes the change. I have tested the change using Intel Corporation 82599ES.Hi Srinivasan, Wei,
What is the latest status of the patch? Are all issues pointed by Wie addressed in the patch, or are we waiting for a new version?
Thanks,
ferruhQuoted 8 lines
Thanks,
SriniQuoted 3 lines · Wei
Hi, Srini
There is a bit confusion. Your patch shows that your code is added into
the function
eth_ixgbevf_pci_remove( ).Quoted 9 lines
Quoted 9 lines
But it is not. It is added into the fucntion
ixgbe_dev_start( ), right ? So would you please rebase it to R 17.05 ?Which type of ixgbe device id did you tested ?
There are many MAC types with different device id.
The function
ixgbe_pf_reset_hw(hw)is called before your adding code.ixgbe_pf_reset_hw()callshw->mac.ops.reset_hw( )which may points tofollowing different function for different MAC type.
Quoted 1 line
Quoted 1 line
Ixgbe_reset_hw_82598( )callshw->phy.ops.init(hw)if
hw->phy.reset_disable== false .Quoted 2 lines
Quoted 2 lines
Ixgbe_reset_hw_82599( )callshw->phy.ops.init(hw)unconditionally.ixgbe_reset_hw_X540( )doesn't' callpw->phy.ops.init(hw). For X540,
hw->phy.ops.initpoints toixgbe_init_phy_ops_generic()which only initialize some function pointers.Quoted 3 lines
Quoted 3 lines
Ixgbe_rest_hw_x550em()callshw->phy.ops.init(hw)unconditionally.And for VF,
ixgbe_reset_hw_vf( )andixgbevf_hv_reset_hw_vf( )don'tcall
hw->phy.ops.init(hw)anywhere.Quoted 6 lines
Quoted 6 lines
Thanks & Best Regards
-WeiQuoted 2 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of ThomasMonjalon
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Sent: Sunday, May 7, 2017 6:36 AM
To: Srinivasan J <[email protected]>
Cc: [email protected]; Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+06/05/2017 15:51, Srinivasan J:
Quoted 3 lines
Hi,
Do we need an explicit "Acked-by" keyword for
this patch to be accepted and applied?Yes, given it is not a trivial patch, an ack from the maintainer is required. Anyway, it has been submitted too late for 17.05 testing.
Quoted 8 lines · Wei
HI, Srini
Sorry for late response.
As I have pointed out that
Ixgbe_reset_hw_82599( )callshw->phy.ops.init(hw)unconditionally, I think it is no need to callhw->phy.ops.init(hw)afterixgbe_pf_reset_hw(hw)at least for 82599. I also think that only moving "hw->phy.type=ixgbe_phy_unknown" just beforeixgbe_pf_reset_hw(hw)is OK.
Quoted 6 lines
What's more, how about X540 and X550 ?
I have just got a X540 and a X550 NIC with copper interface, so I only can plug in/out the RJ45 line to help test it.Is your patch designed for plugging out original SFP and then plugging in another different type of SFP ?
By the way, I'd like you provide more details on how to test your patch? With testpmd ? Or other app ?
This is an old patch, with no update for a while.
If this is still needed please shout, otherwise patch will be removed.
Thanks,
ferruh
Quoted 80 lines
Thanks
-WeiQuoted 75 lines
-----Original Message-----
From: Yigit, Ferruh
Sent: Thursday, June 29, 2017 9:00 PM
To: Srinivasan J <[email protected]>; Dai, Wei <[email protected]>
Cc: Thomas Monjalon <[email protected]>; [email protected]; Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+Quoted 5 lines · Srinivasan J
Hi Wei,
Yes the changes are inixgbe_dev_start( ), the patch shows
the function aseth_ixgbevf_pci_remove()probably due to the way diff recognizes the change. I have tested the change using Intel Corporation 82599ES.Hi Srinivasan, Wei,
What is the latest status of the patch? Are all issues pointed by Wie addressed in the patch, or are we waiting for a new version?
Thanks,
ferruhQuoted 8 lines
Thanks,
SriniQuoted 3 lines · Wei
Hi, Srini
There is a bit confusion. Your patch shows that your code is added into
the function
eth_ixgbevf_pci_remove( ).Quoted 9 lines
Quoted 9 lines
But it is not. It is added into the fucntion
ixgbe_dev_start( ), right ? So would you please rebase it to R 17.05 ?Which type of ixgbe device id did you tested ?
There are many MAC types with different device id.
The function
ixgbe_pf_reset_hw(hw)is called before your adding code.ixgbe_pf_reset_hw()callshw->mac.ops.reset_hw( )which may points tofollowing different function for different MAC type.
Quoted 1 line
Quoted 1 line
Ixgbe_reset_hw_82598( )callshw->phy.ops.init(hw)if
hw->phy.reset_disable== false .Quoted 2 lines
Quoted 2 lines
Ixgbe_reset_hw_82599( )callshw->phy.ops.init(hw)unconditionally.ixgbe_reset_hw_X540( )doesn't' callpw->phy.ops.init(hw). For X540,
hw->phy.ops.initpoints toixgbe_init_phy_ops_generic()which only initialize some function pointers.Quoted 3 lines
Quoted 3 lines
Ixgbe_rest_hw_x550em()callshw->phy.ops.init(hw)unconditionally.And for VF,
ixgbe_reset_hw_vf( )andixgbevf_hv_reset_hw_vf( )don'tcall
hw->phy.ops.init(hw)anywhere.Quoted 6 lines
Quoted 6 lines
Thanks & Best Regards
-WeiQuoted 2 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of ThomasMonjalon
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Sent: Sunday, May 7, 2017 6:36 AM
To: Srinivasan J <[email protected]>
Cc: [email protected]; Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: support detection of hot swapped SFP/SFP+06/05/2017 15:51, Srinivasan J:
Quoted 3 lines
Hi,
Do we need an explicit "Acked-by" keyword for
this patch to be accepted and applied?Yes, given it is not a trivial patch, an ack from the maintainer is required. Anyway, it has been submitted too late for 17.05 testing.