net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices
PATCH 1/1 net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the allow_unsupported_sfps parameter inherited from the mainline Linux driver.
--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
drivers/net/ixgbe/base/ixgbe_x550.c +13 -1
@@ -1538,9 +1538,21 @@ STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown: +/* Copper SFPs are not officially supported for x550em devices, but can +* often be made to work at fixed 1G speeds. Pretend they're 1g_sx +* modules here to allow g.Fast DSL SFPs to work. +*/ case ixgbe_sfp_type_1g_cu_core0: +EWARN (hw,"Pretending that unsupported 1g_cu SFP is 1g_sx\n" ); + *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; +break ;case ixgbe_sfp_type_1g_cu_core1: +EWARN (hw,"Pretending that unsupported 1g_cu SFP is 1g_sx\n" ); + *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; +break ; +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
Signature · 1 line
2.25.1
Please, could we have a review of this patch?
+Cc new ixgbe maintainers
07/03/2022 23:34, [email protected]:
Quoted 41 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainline Linux driver.Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)drivers/net/ixgbe/base/ixgbe_x550.c +13
-1@@ -1538,9 +1538,21 @@ STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown: +/* Copper SFPs are not officially supported for x550em devices, but can +* often be made to work at fixed 1G speeds. Pretend they're 1g_sx +* modules here to allow g.Fast DSL SFPs to work. +*/ case ixgbe_sfp_type_1g_cu_core0: +EWARN (hw,"Pretending that unsupported 1g_cu SFP is 1g_sx\n" ); + *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; +break ;case ixgbe_sfp_type_1g_cu_core1: +EWARN (hw,"Pretending that unsupported 1g_cu SFP is 1g_sx\n" ); + *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; +break ; +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
Quoted 11 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, April 13, 2022 10:21 PM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Wang, Haiyue <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices
Quoted 15 lines
Please, could we have a review of this patch?
+Cc new ixgbe maintainers07/03/2022 23:34, [email protected]:
Quoted 10 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainline Linux driver.Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>
I think we need a devargs for this feature with well documentation
So, it should not break existing behavior by default, but allow people to take risk if they know what they are doing.
Thanks
Qi
Quoted 40 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32
Quoted 10 lines
--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32
ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 10 lines
drivers/net/ixgbe/base/ixgbe_x550.c +5
-1case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown: +/* Copper SFPs are not officially supported for x550em devices, but can +* often be made to work at fixed 1G speeds. Pretend they're 1g_sx +* modules here to allow g.Fast DSL SFPs to work. +*/ case ixgbe_sfp_type_1g_cu_core0: + EWARN(hw, "Pretending that unsupported 1g_cu SFP is1g_sx\n");
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; +break ;case ixgbe_sfp_type_1g_cu_core1: + EWARN(hw, "Pretending that unsupported 1g_cu SFP is1g_sx\n");
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; +break ; +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
Quoted 38 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, May 19, 2022 8:15 PM
To: Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 10 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, April 13, 2022 10:21 PM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Wang, Haiyue <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 12 lines
Please, could we have a review of this patch?
+Cc new ixgbe maintainers07/03/2022 23:34, [email protected]:
Quoted 7 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainline
Quoted 9 lines
Linux driver.
Quoted 3 lines
Quoted 3 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>I think we need a devargs for this feature with well documentation So, it should not break existing behavior by default, but allow people to take risk if they know what they are doing.
there was already a patch submitted to IWL mailing list for this feature in the base driver, which was rejected.
https://patchwork.ozlabs.org/project/intel-wired-lan/patch/[email protected]/
Quoted 45 lines
Thanks
QiQuoted 4 lines
Quoted 4 lines
--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 12 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32
Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32
ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +1
-1case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown: +/* Copper SFPs are not officially supported for x550em devices, but can
Quoted 24 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+* often be made to work at fixed 1G speeds. Pretend they're 1g_sx +* modules here to allow g.Fast DSL SFPs to work. +*/ case ixgbe_sfp_type_1g_cu_core0: + EWARN(hw, "Pretending that unsupported 1g_cu SFP is1g_sx\n");
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; +break ;case ixgbe_sfp_type_1g_cu_core1: + EWARN(hw, "Pretending that unsupported 1g_cu SFP is1g_sx\n");
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; +break ; +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
Quoted 61 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Saturday, May 21, 2022 2:03 AM
To: Zhang, Qi Z <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 38 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, May 19, 2022 8:15 PM
To: Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 11 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, April 13, 2022 10:21 PM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Wang, Haiyue <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 13 lines
Please, could we have a review of this patch?
+Cc new ixgbe maintainers07/03/2022 23:34, [email protected]:
Quoted 8 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainlineQuoted 9 lines
Linux driver.
Quoted 3 lines
Quoted 3 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>I think we need a devargs for this feature with well documentation So, it should not break existing behavior by default, but allow people to take risk if they know what they are doing.
Quoted 4 lines
there was already a patch submitted to IWL mailing list for this feature in the base driver, which was rejected.
https://patchwork.ozlabs.org/project/intel-wired-
lan/patch/[email protected]/
OK, thanks for sharing this,
But base on the concern of the previous comment
" As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of RX_ILOS and some Intel Ethernet products don't support that."
We may have a risk to accept the code as default behavior
But devargs is allowed in DPDK for device-specific features.
Quoted 48 lines
Quoted 48 lines
Thanks
QiQuoted 4 lines
Quoted 4 lines
--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 14 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32
Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32
ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +2
-1case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown: +/* Copper SFPs are not officially supported for x550em +devices, but can
Quoted 24 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+* often be made to work at fixed 1G speeds. Pretend they're 1g_sx +* modules here to allow g.Fast DSL SFPs to work. +*/ case ixgbe_sfp_type_1g_cu_core0: + EWARN(hw, "Pretending that unsupported 1g_cu SFP is1g_sx\n");
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; +break ;case ixgbe_sfp_type_1g_cu_core1: + EWARN(hw, "Pretending that unsupported 1g_cu SFP is1g_sx\n");
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; +break ; +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
Quoted 83 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 23, 2022 1:37 AM
To: Jeff Daly <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 60 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Saturday, May 21, 2022 2:03 AM
To: Zhang, Qi Z <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 38 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, May 19, 2022 8:15 PM
To: Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 11 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, April 13, 2022 10:21 PM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Wang, Haiyue <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 13 lines
Please, could we have a review of this patch?
+Cc new ixgbe maintainers07/03/2022 23:34, [email protected]:
Quoted 8 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainlineQuoted 9 lines
Linux driver.
Quoted 3 lines
Quoted 3 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>I think we need a devargs for this feature with well documentation So, it should not break existing behavior by default, but allow people to take risk if they know what they are doing.
Quoted 4 lines
there was already a patch submitted to IWL mailing list for this feature in the base driver, which was rejected.
https://patchwork.ozlabs.org/project/intel-wired-
lan/patch/[email protected]/OK, thanks for sharing this,
Quoted 9 lines
But base on the concern of the previous comment
" As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don't support that."We may have a risk to accept the code as default behavior
But devargs is allowed in DPDK for device-specific features.
ok, I will submit a revised patch that uses a devargs (or whatever) switch to allow the behavior when selected explicitly.
But, can we *please* STOP marking patches as superseded when a follow-up patch
hasn't been submitted yet!? I've marked the patch as 'Changes Requested' for now.
When I submit a follow-up I will set this one to superseded.
Quoted 50 lines
Quoted 18 lines
Quoted 18 lines
Thanks
QiQuoted 12 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32
Quoted 10 lines
--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32
ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +2
-1case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown: +/* Copper SFPs are not officially supported for x550em +devices, but can
Quoted 1 line
Quoted 1 line
drivers/net/ixgbe/base/ixgbe_x550.c +1
-0+* often be made to work at fixed 1G speeds. Pretend they're 1g_sx
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 4 lines
drivers/net/ixgbe/base/ixgbe_x550.c +3
-0+* modules here to allow g.Fast DSL SFPs to work. +*/ case ixgbe_sfp_type_1g_cu_core0: + EWARN(hw, "Pretending that unsupported 1g_cu SFP is1g_sx\n");
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; +break ;case ixgbe_sfp_type_1g_cu_core1: + EWARN(hw, "Pretending that unsupported 1g_cu SFP is1g_sx\n");
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; +break ; +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
Quoted 107 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Monday, May 23, 2022 10:14 PM
To: Zhang, Qi Z <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 10 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 23, 2022 1:37 AM
To: Jeff Daly <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 51 lines
Caution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 47 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Saturday, May 21, 2022 2:03 AM
To: Zhang, Qi Z <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 35 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, May 19, 2022 8:15 PM
To: Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Yang, Qiming <[email protected]>; Wu,
Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 20 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, April 13, 2022 10:21 PM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Wang, Haiyue <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesPlease, could we have a review of this patch?
+Cc new ixgbe maintainers07/03/2022 23:34, [email protected]:
Quoted 4 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually
work.
Quoted 19 lines
Quoted 14 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainlineQuoted 9 lines
Linux driver.
Quoted 3 lines
Quoted 3 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>I think we need a devargs for this feature with well documentation So, it should not break existing behavior by default, but allow people to take risk if they know what they are doing.
Quoted 4 lines
there was already a patch submitted to IWL mailing list for this feature in the base driver, which was rejected.
https://patchwork.ozlabs.org/project/intel-wired-
lan/patch/[email protected]/Quoted 6 lines
OK, thanks for sharing this,
But base on the concern of the previous comment
" As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don't supportthat."
Quoted 5 lines
We may have a risk to accept the code as default behavior
But devargs is allowed in DPDK for device-specific features.
Quoted 7 lines
ok, I will submit a revised patch that uses a devargs (or whatever) switch to allow the behavior when selected explicitly.
But, can we *please* STOP marking patches as superseded when a follow-up patch
hasn't been submitted yet!? I've marked the patch as 'Changes Requested' for
now.
Sure, I should follow, thanks to correct his, but a little bit surprise, why this looks like a big deal, it just a shortcut when I expected a new version will come then I skip one status change, I think mailing list already have everything about the patch status for you.
Quoted 1 line
When I submit a follow-up I will set this one to superseded
Actually you did NOT change the below patch to superseded after you send a new version (I did this) and you didn't reply my last question yet.
https://patchwork.dpdk.org/project/dpdk/list/?series=23046
Quoted 54 lines
Quoted 54 lines
Quoted 25 lines
Quoted 25 lines
Thanks
QiQuoted 18 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32
Quoted 10 lines
--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32
ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +2
-1case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown: +/* Copper SFPs are not officially supported for x550em +devices, but Quoted 3 lines
Quoted 3 lines
can
Quoted 2 lines
Quoted 2 lines
drivers/net/ixgbe/base/ixgbe_x550.c +2
-0+ * often be made to work at fixed 1G speeds. Pretend + they're1g_sx
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+* modules here to allow g.Fast DSL SFPs to work. +*/ case ixgbe_sfp_type_1g_cu_core0: + EWARN(hw, "Pretending that unsupported 1g_cu SFP + is1g_sx\n");
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +5
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; +break ;case ixgbe_sfp_type_1g_cu_core1: + EWARN(hw, "Pretending that unsupported 1g_cu SFP + is1g_sx\n");
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; +break ; +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
Quoted 132 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 23, 2022 7:22 PM
To: Jeff Daly <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 69 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Monday, May 23, 2022 10:14 PM
To: Zhang, Qi Z <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 57 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 23, 2022 1:37 AM
To: Jeff Daly <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 43 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Saturday, May 21, 2022 2:03 AM
To: Zhang, Qi Z <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 31 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, May 19, 2022 8:15 PM
To: Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Yang, Qiming <[email protected]>; Wu,
Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 16 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, April 13, 2022 10:21 PM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Wang, Haiyue <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the
X550 devicesPlease, could we have a review of this patch?
+Cc new ixgbe maintainersQuoted 19 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
07/03/2022 23:34, [email protected]:
Quoted 5 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually
work.
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainlineLinux driver.
Quoted 3 lines
Quoted 3 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>I think we need a devargs for this feature with well documentation So, it should not break existing behavior by default, but allow people to take risk if they know what they are
doing.
Quoted 21 lines
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
there was already a patch submitted to IWL mailing list for this feature in the base driver, which was rejected.
https://patchwork.ozlabs.org/project/intel-wired-
lan/patch/[email protected]/Quoted 7 lines
OK, thanks for sharing this,
But base on the concern of the previous comment
" As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don't supportthat."
Quoted 5 lines
We may have a risk to accept the code as default behavior
But devargs is allowed in DPDK for device-specific features.
Quoted 6 lines
ok, I will submit a revised patch that uses a devargs (or whatever) switch to allow the behavior when selected explicitly.
But, can we *please* STOP marking patches as superseded when a follow-up patch
hasn't been submitted yet!? I've marked the patch as 'Changes
Quoted 8 lines
Requested' for
Quoted 1 line
now.
Sure, I should follow, thanks to correct his, but a little bit surprise, why this looks like a big deal, it just a shortcut when I expected a new version will come then I skip one status change, I think mailing list already have everything about the patch status for you.
Maybe I'm not understanding the terms being used then in the mailing list status. If you expect a new version (that doesn't exist yet) then wouldn't this be more
aptly "Changes Requested" vs. "Superseded". Superseded implies there's a new
version that exists and this current one no longer applies. If I just came onto the mailing list and read a patch that was marked "Superseded" and looked for the new one and didn't find it, I'd be very confused. If I read a patch that was marked "Changes Requested", I'd know that this was the last patch sent by the developer and that there would be a follow-up to this one sometime.
Quoted 7 lines
Quoted 1 line
When I submit a follow-up I will set this one to superseded
Actually you did NOT change the below patch to superseded after you send a new version (I did this) and you didn't reply my last question yet.
https://patchwork.dpdk.org/project/dpdk/list/?series=23046
why am I confused here? The patch you linked above is not related to this patch. The patch series linked above is an update to the hotplug patches that were requested prior. (I screwed up the initial new series submission I admit, and marked those as superseded).
*This* patch however I've not submitted a new update for yet.
And I don't see where you asked a question ?
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 25 lines
Quoted 25 lines
Thanks
QiQuoted 18 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32
Quoted 10 lines
--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32
ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +2
-1case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown: +/* Copper SFPs are not officially supported for x550em +devices, but Quoted 3 lines
Quoted 3 lines
can
Quoted 2 lines
Quoted 2 lines
drivers/net/ixgbe/base/ixgbe_x550.c +2
-0+ * often be made to work at fixed 1G speeds. Pretend + they're1g_sx
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 · line 1549
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+* modules here to allow g.Fast DSL SFPs to work. +*/ case ixgbe_sfp_type_1g_cu_core0: + EWARN(hw, "Pretending that unsupported 1g_cu SFP + is1g_sx\n");
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 · line 1555
Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +5
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; +break ;case ixgbe_sfp_type_1g_cu_core1: + EWARN(hw, "Pretending that unsupported 1g_cu SFP + is1g_sx\n");
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; +break ; +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
Quoted 156 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Wednesday, May 25, 2022 11:23 PM
To: Zhang, Qi Z <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 10 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 23, 2022 7:22 PM
To: Jeff Daly <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 66 lines
Caution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 62 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Monday, May 23, 2022 10:14 PM
To: Zhang, Qi Z <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 50 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 23, 2022 1:37 AM
To: Jeff Daly <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 36 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Saturday, May 21, 2022 2:03 AM
To: Zhang, Qi Z <[email protected]>; Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 24 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, May 19, 2022 8:15 PM
To: Thomas Monjalon <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Yang, Qiming <[email protected]>; Wu,
Wenjun1 <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the
X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 8 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, April 13, 2022 10:21 PM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Jeff Daly <jeffd@silicom- usa.com>; Wang, Haiyue <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1Quoted 56 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the
X550 devicesPlease, could we have a review of this patch?
+Cc new ixgbe maintainersQuoted 20 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
07/03/2022 23:34, [email protected]:
Quoted 5 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually
work.
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainlineLinux driver.
Quoted 3 lines
Quoted 3 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>I think we need a devargs for this feature with well documentation So, it should not break existing behavior by default, but allow people to take risk if they know what they are
doing.
Quoted 21 lines
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
there was already a patch submitted to IWL mailing list for this feature in the base driver, which was rejected.
https://patchwork.ozlabs.org/project/intel-wired-
lan/patch/[email protected]/Quoted 7 lines
OK, thanks for sharing this,
But base on the concern of the previous comment
" As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don't supportthat."
Quoted 5 lines
We may have a risk to accept the code as default behavior
But devargs is allowed in DPDK for device-specific features.
Quoted 6 lines
ok, I will submit a revised patch that uses a devargs (or whatever) switch to allow the behavior when selected explicitly.
But, can we *please* STOP marking patches as superseded when a follow-up patch
hasn't been submitted yet!? I've marked the patch as 'ChangesQuoted 8 lines
Requested' for
Quoted 1 line
now.
Sure, I should follow, thanks to correct his, but a little bit surprise, why this looks like a big deal, it just a shortcut when I expected a new version will come then I skip one status change, I think mailing list already have everything about the patch status for you.
Quoted 11 lines
Maybe I'm not understanding the terms being used then in the mailing list status.
If you expect a new version (that doesn't exist yet) then wouldn't this be more
aptly "Changes Requested" vs. "Superseded". Superseded implies there's a
new
version that exists and this current one no longer applies. If I just came onto the mailing list and read a patch that was marked "Superseded" and looked for the new one and didn't find it, I'd be very confused. If I read a patch that was marked "Changes Requested", I'd know that this was the last patch sent by the developer and that there would be a follow-up to this one sometime.
OK, I just thought we already get a agreement in the mailing list for introducing a devargs , so I move ahead But I understand your concern now.
Quoted 15 lines
Quoted 8 lines
Quoted 2 lines
When I submit a follow-up I will set this one to superseded
Actually you did NOT change the below patch to superseded after you send a new version (I did this) and you didn't reply my last question yet.
https://patchwork.dpdk.org/project/dpdk/list/?series=23046why am I confused here? The patch you linked above is not related to this patch.
The patch series linked above is an update to the hotplug patches that were requested prior. (I screwed up the initial new series submission I admit, and marked those as superseded).
Quoted 3 lines
*This* patch however I've not submitted a new update for yet.
And I don't see where you asked a question ?
Sorry, I put the wrong link, it should be below patch
http://patches.dpdk.org/project/dpdk/patch/[email protected]/
When you submit the new version, you didn't supersede this, this give me confusion somehow, so I guess we are even now😊
btw, I saw you have replied the answer, so we are aligned on that thread also
Quoted 56 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Thanks
QiQuoted 4 lines
Quoted 4 lines
--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32
Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32ixgbe_supported_sfp_modules_X550em(struct
ixgbe_hw*hw,bool
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 10 lines
Quoted 10 lines
Quoted 7 lines
*linear)
Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +2
-1case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown: +/* Copper SFPs are not officially supported for x550em +devices, but can
Quoted 2 lines
Quoted 2 lines
drivers/net/ixgbe/base/ixgbe_x550.c +2
-0+ * often be made to work at fixed 1G speeds. Pretend + they're1g_sx
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 · line 1549
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+* modules here to allow g.Fast DSL SFPs to work. +*/ case ixgbe_sfp_type_1g_cu_core0: + EWARN(hw, "Pretending that unsupported 1g_cu + SFP is1g_sx\n");
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 · line 1555
Quoted 6 lines
drivers/net/ixgbe/base/ixgbe_x550.c +5
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; +break ;case ixgbe_sfp_type_1g_cu_core1: + EWARN(hw, "Pretending that unsupported 1g_cu + SFP is1g_sx\n");
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +4
-0+ *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; +break ; +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
Wang, Haiyue
NAKdrivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 27 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Tuesday, March 8, 2022 06:35
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Daly, Jeff <[email protected]>; Wang, Haiyue <[email protected]>
Subject: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesFrom: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainline Linux driver.Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
NACK.
As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of RX_ILOS and some Intel Ethernet products don't support that.
And the DPDK keeps the same design with kernel.
Quoted 2 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-1--2.25.1
14/04/2022 03:31, Wang, Haiyue:
Quoted 23 lines
From: [email protected] <[email protected]>
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)
Quoted 19 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainline Linux driver.Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)NACK.
Quoted 2 lines
As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don't support that.
So what is the solution?
Quoted 1 line
And the DPDK keeps the same design with kernel.
It should not be a justification for limiting DPDK features.
Quoted 32 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday, April 14, 2022 17:42
To: Wang, Haiyue <[email protected]>
Cc: Daly, Jeff <[email protected]>; [email protected]; Stephen Douthit <[email protected]>
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices14/04/2022 03:31, Wang, Haiyue:
Quoted 15 lines
From: [email protected] <[email protected]>
Quoted 14 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainline Linux driver.Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool*linear)
Quoted 3 lines
NACK.
Quoted 8 lines
Quoted 2 lines
As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don't support that.So what is the solution?
Quoted 1 line
And the DPDK keeps the same design with kernel.
It should not be a justification for limiting DPDK features.
Um, this is upstream version driver to keep the same behavior.
There are also some kind of custom release ...
Quoted 1 line
14/04/2022 14:13, Wang, Haiyue:
Quoted 31 lines
From: Thomas Monjalon <[email protected]>
Quoted 30 lines
14/04/2022 03:31, Wang, Haiyue:
Quoted 15 lines
From: [email protected] <[email protected]>
Quoted 14 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inherited from the mainline Linux driver.Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool
Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool*linear)
Quoted 5 lines
NACK.
As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don't support that.So what is the solution?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
And the DPDK keeps the same design with kernel.
It should not be a justification for limiting DPDK features.
Um, this is upstream version driver to keep the same behavior.
There are also some kind of custom release ...
I don't understand.
Upstream DPDK (and Linux) must support a maximum of hardware and setup. Why rejecting adding such compatibility?
Quoted 56 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday, April 14, 2022 8:19 AM
To: Wang, Haiyue <[email protected]>
Cc: Jeff Daly <[email protected]>; [email protected]; Stephen Douthit <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
14/04/2022 14:13, Wang, Haiyue:
Quoted 10 lines
From: Thomas Monjalon <[email protected]>
Quoted 9 lines
14/04/2022 03:31, Wang, Haiyue:
Quoted 8 lines
From: [email protected] <[email protected]>
Quoted 7 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inheritedfrom the mainline Linux driver.
Quoted 16 lines
Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 7 lines
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32ixgbe_supported_sfp_modules_X550em(struct
ixgbe_hw*hw, bool*linear)
Quoted 1 line
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
NACK.
As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don'tsupport that.
Quoted 7 lines
Quoted 6 lines
So what is the solution?
Quoted 1 line
And the DPDK keeps the same design with kernel.
It should not be a justification for limiting DPDK features.
Quoted 9 lines
Quoted 3 lines
Um, this is upstream version driver to keep the same behavior.
There are also some kind of custom release ...
I don't understand.
Upstream DPDK (and Linux) must support a maximum of hardware and setup.
Why rejecting adding such compatibility?
so, I will ask a question directly in case people just aren't inclined to make a suggestion (and perhaps this should be also directed to the Linux kernel driver mailing list), but if there's a driver option: module_param(allow_unsupported_sfp, uint, 0) to allow enabling non-official support of some SFPs, then I can't image that it wouldn't also be acceptable to add: module_param(cu_sfp_as sx, uint, 0) to be able to select whether to enable this specific handling as well?
if a patch of this nature is acceptable to Linux driver maintainers, then it would also be here as well according to your explanation of the NACK, correct?
Quoted 71 lines · On Thu, 14 Apr 2022 15:11:46 +0000 Jeff Daly <[email protected]> wrote:
Quoted 54 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday, April 14, 2022 8:19 AM
To: Wang, Haiyue <[email protected]>
Cc: Jeff Daly <[email protected]>; [email protected]; Stephen Douthit <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
14/04/2022 14:13, Wang, Haiyue:
Quoted 10 lines
From: Thomas Monjalon <[email protected]>
Quoted 9 lines
14/04/2022 03:31, Wang, Haiyue:
Quoted 8 lines
From: [email protected] <[email protected]>
Quoted 7 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inheritedfrom the mainline Linux driver.
Quoted 16 lines
Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 7 lines
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32ixgbe_supported_sfp_modules_X550em(struct
ixgbe_hw*hw, bool*linear)
Quoted 1 line
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
NACK.
As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don'tsupport that.
Quoted 7 lines
Quoted 6 lines
So what is the solution?
Quoted 1 line
And the DPDK keeps the same design with kernel.
It should not be a justification for limiting DPDK features.
Quoted 9 lines
Quoted 3 lines
Um, this is upstream version driver to keep the same behavior.
There are also some kind of custom release ...
I don't understand.
Upstream DPDK (and Linux) must support a maximum of hardware and setup.
Why rejecting adding such compatibility?so, I will ask a question directly in case people just aren't inclined to make a suggestion (and perhaps this should be also directed to the Linux kernel driver mailing list), but if there's a driver option:
module_param(allow_unsupported_sfp, uint, 0)to allow enabling non-official support of some SFPs, then I can't image that it wouldn't also be acceptable to add:module_param(cu_sfp_as sx, uint, 0)to be able to select whether to enable this specific handling as well?
Quoted 2 lines
if a patch of this nature is acceptable to Linux driver maintainers, then it would also be here as well according to your explanation of the NACK, correct?
Makes sense for DPDK to have a similar option to enable (at your own risk) SFP's. But:
- there is no equivalent of module_params in DPDK; you will have to think of something
- should print message that when enabled the driver is no longer supported. use at your own risk.
14/04/2022 17:43, Stephen Hemminger:
Quoted 60 lines
Quoted 58 lines · On Thu, 14 Apr 2022 15:11:46 +0000 Jeff Daly <[email protected]> wrote:
From: Thomas Monjalon <[email protected]>
Quoted 40 lines
14/04/2022 14:13, Wang, Haiyue:
Quoted 10 lines
From: Thomas Monjalon <[email protected]>
Quoted 9 lines
14/04/2022 03:31, Wang, Haiyue:
Quoted 8 lines
From: [email protected] <[email protected]>
Quoted 7 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inheritedfrom the mainline Linux driver.
Quoted 16 lines
Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 7 lines
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32ixgbe_supported_sfp_modules_X550em(struct
ixgbe_hw*hw, bool*linear)
Quoted 1 line
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
NACK.
As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don'tsupport that.
Quoted 7 lines
Quoted 6 lines
So what is the solution?
Quoted 1 line
And the DPDK keeps the same design with kernel.
It should not be a justification for limiting DPDK features.
Quoted 9 lines
Quoted 3 lines
Um, this is upstream version driver to keep the same behavior.
There are also some kind of custom release ...
I don't understand.
Upstream DPDK (and Linux) must support a maximum of hardware and setup.
Why rejecting adding such compatibility?so, I will ask a question directly in case people just aren't inclined to make a suggestion (and perhaps this should be also directed to the Linux kernel driver mailing list), but if there's a driver option:
module_param(allow_unsupported_sfp, uint, 0)to allow enabling non-official support of some SFPs, then I can't image that it wouldn't also be acceptable to add:module_param(cu_sfp_as sx, uint, 0)to be able to select whether to enable this specific handling as well?
Quoted 6 lines
Quoted 2 lines
if a patch of this nature is acceptable to Linux driver maintainers, then it would also be here as well according to your explanation of the NACK, correct?
Makes sense for DPDK to have a similar option to enable (at your own risk) SFP's. But:
- there is no equivalent ofmodule_paramsin DPDK; you will have to think of something
We have devargs which is supposed to be used per port with the option -a. In future, I would like to use devargs with another option which is not necessarily tight to a port, so it can be per-driver. The devargs syntax already allows to configure a driver, example:
class=eth/driver=foo,param=bar
Quoted 1 line
- should print message that when enabled the driver is no longer supported.
It could be supported by Silicom.
Quoted 1 line
use at your own risk.
Quoted 85 lines
From: Thomas Monjalon [mailto:[email protected]]
Sent: Thursday, 14 April 2022 19.0714/04/2022 17:43, Stephen Hemminger:
Quoted 10 lines
Quoted 8 lines · On Thu, 14 Apr 2022 15:11:46 +0000 Jeff Daly <[email protected]> wrote:
From: Thomas Monjalon <[email protected]>
Quoted 7 lines
14/04/2022 14:13, Wang, Haiyue:
Quoted 6 lines
From: Thomas Monjalon <[email protected]>
Quoted 5 lines
14/04/2022 03:31, Wang, Haiyue:
Quoted 4 lines
From: [email protected] <[email protected]>
Quoted 3 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553
family
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
of devices but treat them as 1G SX modules since they
usually
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
work. Print a warning though since support isn't
validated,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
similar to what already happens for other unofficially
supported
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
SFPs enabled via the
allow_unsupported_sfpsparameterinherited
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
from the mainline Linux driver.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c STATIC s32 · line 1538
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw,bool
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
*linear)
Quoted 4 lines
NACK.
As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP
modules
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
require the use of
RX_ILOSand some Intel Ethernet productsdon't
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
support that.
Quoted 10 lines
Quoted 6 lines
So what is the solution?
Quoted 1 line
And the DPDK keeps the same design with kernel.
It should not be a justification for limiting DPDK features.
Um, this is upstream version driver to keep the same behavior.
There are also some kind of custom release ...
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
I don't understand.
Upstream DPDK (and Linux) must support a maximum of hardware and setup.
Why rejecting adding such compatibility?so, I will ask a question directly in case people just aren't
inclined to make a suggestion
Quoted 1 line
Quoted 1 line
(and perhaps this should be also directed to the Linux kernel
driver mailing list), but
Quoted 1 line
Quoted 1 line
if there's a driver option: module_param(allow_unsupported_sfp,
uint, 0) to allow
Quoted 1 line
Quoted 1 line
enabling non-official support of some SFPs, then I can't image that
it wouldn't also be
Quoted 1 line
Quoted 1 line
acceptable to add:
module_param(cu_sfp_as sx, uint, 0)to be ableto select whether
Quoted 3 lines
Quoted 3 lines
to enable this specific handling as well?
if a patch of this nature is acceptable to Linux driver
maintainers, then it would also be
Quoted 3 lines
Quoted 1 line
here as well according to your explanation of the NACK, correct?
Makes sense for DPDK to have a similar option to enable (at your own
risk) SFP's.
Quoted 2 lines
But:
- there is no equivalent ofmodule_paramsin DPDK; you will have
Quoted 8 lines
to think of something
We have devargs which is supposed to be used per port with the option - a.
In future, I would like to use devargs with another option which is not necessarily tight to a port, so it can be per-driver. The devargs syntax already allows to configure a driver, example:
class=eth/driver=foo,param=bar
I have a very strong preference for per-driver options over per-port options!
Per-port options are difficult to work with when the application detects the hardware configuration at runtime. E.g. when using modular hardware, where different types of NICs may be plugged into a NIC module slot.
Quoted 5 lines
Quoted 2 lines
- should print message that when enabled the driver is no longer
supported.
It could be supported by Silicom.
There's more to "supported by" than meets the eye: When an ODM designs products using Intel chips, some sort of customer support from Intel field application engineers is expected by the ODM. We cannot expect Silicom to provide design support to anyone but their own customers. E.g. if the NIC is behaving weird at the hardware bring-up phase, where it might be any type of problem, Silicom will not be able to provide the kind of support required. My point is: There is a difference between community support and customer support.
Let me throw up an idea for consideration... I'm trying to think out of the box here, so please forgive me if I'm stepping on anyone's toes with this suggestion:
If Intel doesn't want to take on the responsibility and support for this feature graciously donated by Silicom (which is obviously Intel's own decision to make), but the DPDK community thinks the feature is beneficial, perhaps Silicom could be accepted as the maintainer of this part of the driver? The driver would still come with a big fat disclaimer saying that this feature is not supported by Intel, but maintained by Silicom, who also provides community support for it.
The worst case alternative is a fork or separate add-on patch set offered by the donor. This has certainly happened to other projects. Don't get me wrong, we are not there at all regarding this feature! I'm just wondering if we can make the DPDK project even more inclusive, so we can avoid forks and add-on patch sets now and in the future.
-Morten
Quoted 27 lines
-----Original Message-----
From: Morten Brørup <[email protected]>
Sent: Tuesday, April 19, 2022 17:12
To: Thomas Monjalon <[email protected]>; Daly, Jeff <[email protected]>; Stephen Hemminger <[email protected]>
Cc: Wang, Haiyue <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; Mcnamara, John <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 10 lines
From: Thomas Monjalon [mailto:[email protected]]
Sent: Thursday, 14 April 2022 19.07Quoted 1 line
- should print message that when enabled the driver is no longer
supported.
It could be supported by Silicom.
There's more to "supported by" than meets the eye: When an ODM designs products using Intel chips, some sort of customer support from Intel field application engineers is expected by the ODM. We cannot expect Silicom to provide design support to anyone but their own customers. E.g. if the NIC is behaving weird at the hardware bring-up phase, where it might be any type of problem, Silicom will not be able to provide the kind of support required. My point is: There is a difference between community support and customer support.
Quoted 7 lines
Let me throw up an idea for consideration... I'm trying to think out of the box here, so please forgive me if I'm stepping on anyone's toes with this suggestion:
If Intel doesn't want to take on the responsibility and support for this feature graciously donated by Silicom (which is obviously Intel's own decision to make), but the DPDK community thinks the feature is beneficial, perhaps Silicom could be accepted as the maintainer of this part of the driver? The driver would still come with a big fat disclaimer saying that this feature is not supported by Intel,
The first patch author Stephen D has left Silicom:
https://patchwork.dpdk.org/project/dpdk/patch/[email protected]/
How can you expect people can connect to Silicom always ? ; -)
Quoted 8 lines
but maintained by Silicom, who also provides community support for it.
The worst case alternative is a fork or separate add-on patch set offered by the donor. This has certainly happened to other projects. Don't get me wrong, we are not there at all regarding this feature! I'm just wondering if we can make the DPDK project even more inclusive, so we can avoid forks and add-on patch sets now and in the future.
-Morten
Quoted 80 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Thursday, April 14, 2022 23:12
To: Thomas Monjalon <[email protected]>; Wang, Haiyue <[email protected]>
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Mcnamara, John <[email protected]>
Subject: RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 54 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday, April 14, 2022 8:19 AM
To: Wang, Haiyue <[email protected]>
Cc: Jeff Daly <[email protected]>; [email protected]; Stephen Douthit <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
14/04/2022 14:13, Wang, Haiyue:
Quoted 10 lines
From: Thomas Monjalon <[email protected]>
Quoted 9 lines
14/04/2022 03:31, Wang, Haiyue:
Quoted 8 lines
From: [email protected] <[email protected]>
Quoted 7 lines
From: Stephen Douthit <[email protected]>
1G Cu SFPs are not officially supported on the X552/X553 family of devices but treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the
allow_unsupported_sfpsparameter inheritedfrom the mainline Linux driver.
Quoted 16 lines
Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
Signed-off-by Stephen Douthit <[email protected]>Signed-off-by Jeff Daly <[email protected]>--- drivers/net/ixgbe/base/ixgbe_x550.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)Quoted 7 lines
Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_x550.c +0
-0@@ -1538,9 +1538,21 @@ STATIC s32ixgbe_supported_sfp_modules_X550em(struct
ixgbe_hw*hw, bool*linear)
Quoted 1 line
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
NACK.
As for 1G Cu SFP treating it as 1G SX, some 1G-Base-T SFP modules require the use of
RX_ILOSand some Intel Ethernet products don'tsupport that.
Quoted 7 lines
Quoted 6 lines
So what is the solution?
Quoted 1 line
And the DPDK keeps the same design with kernel.
It should not be a justification for limiting DPDK features.
Quoted 9 lines
Quoted 3 lines
Um, this is upstream version driver to keep the same behavior.
There are also some kind of custom release ...
I don't understand.
Upstream DPDK (and Linux) must support a maximum of hardware and setup.
Why rejecting adding such compatibility?so, I will ask a question directly in case people just aren't inclined to make a suggestion (and perhaps this should be also directed to the Linux kernel driver mailing list), but if there's a driver option:
module_param(allow_unsupported_sfp, uint, 0)to allow enabling non-official support of some SFPs, then I can't image that it wouldn't also be acceptable to add:module_param(cu_sfp_as sx, uint, 0)to be able to select whether to enable this specific handling as well?
Quoted 2 lines
if a patch of this nature is acceptable to Linux driver maintainers, then it would also be here as well according to your explanation of the NACK, correct?
Correct, let's get more reviews in IWL.
https://patchwork.ozlabs.org/project/intel-wired-lan/patch/[email protected]/
Quoted 1 line
PATCH v2 1/1 net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices
In reply to [email protected]1G Cu SFPs are not officially supported on the X552/X553 family of devices but create an option cu_sfp_as_sx to treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via the allow_unsupported_sfps parameter inherited from the mainline Linux driver.
---
v2:
* Introduced cu_sfp_as_sx option, default off.
--- doc/guides/nics/ixgbe.rst | 16 ++++++++++++++ drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 12 ++++++++++- drivers/net/ixgbe/ixgbe_ethdev.c | 33 +++++++++++++++++++++++++++++ drivers/net/ixgbe/ixgbe_ethdev.h | 3 +++ 5 files changed, 64 insertions(+), 1 deletion(-)
doc/guides/nics/ixgbe.rst +16 -0
@@ -101,6 +101,22 @@ To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be ch fdir_conf->mode will also be checked. +Runtime Options +^^^^^^^^^^^^^^^^^^ + +The following ``devargs`` options can be enabled at runtime. They must +be passed as part of EAL arguments. For example, + +.. code-block:: console + + dpdk-testpmd -a af:10.0,cu_sfp_as_sx=1 -- -i + +- ``cu_sfp_as_sx`` (default **0**) + + This option is used to allow the X550 devices to treat 1G Cu SFPs as + 1G SX SFPs, since this usually works. By default, 1G Cu SFPs are not + supported by Intel for the X550. + VF Runtime Options ^^^^^^^^^^^^^^^^^^
drivers/net/ixgbe/base/ixgbe_type.h +1 -0
@@ -4190,6 +4190,7 @@ struct ixgbe_hw {bool allow_unsupported_sfp;bool wol_enabled;bool need_crosstalk_fix; +bool cu_sfp_as_sx; };#define ixgbe_call_func (hw, func, params, error) \
drivers/net/ixgbe/base/ixgbe_x550.c +11 -1
@@ -1538,9 +1538,19 @@ STATIC s32 ixgbe_supported_sfp_modules_X550em(struct ixgbe_hw *hw, bool *linear)case ixgbe_sfp_type_1g_lha_core1: *linear = false;break ; -case ixgbe_sfp_type_unknown:case ixgbe_sfp_type_1g_cu_core0: +if (hw->cu_sfp_as_sx ==1 ) { +EWARN (hw,"WARNING: Treating Cu SFP modules as SX modules is unsupported by Intel and may cause unstable operation or damage to the module or the adapter. Intel Corporation is not responsible for any harm caused by using Cu modules in this way with this adapter.\n" ); + *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core0; + }case ixgbe_sfp_type_1g_cu_core1: +if (hw->cu_sfp_as_sx ==1 ) { +EWARN (hw,"WARNING: Treating Cu SFP modules as SX modules is unsupported by Intel and may cause unstable operation or damage to the module or the adapter. Intel Corporation is not responsible for any harm caused by using Cu modules in this way with this adapter.\n" ); + *linear = false; + hw->phy.sfp_type = ixgbe_sfp_type_1g_sx_core1; + } +case ixgbe_sfp_type_unknown:default :return IXGBE_ERR_SFP_NOT_SUPPORTED ; }
drivers/net/ixgbe/ixgbe_ethdev.c +33 -0
@@ -129,12 +129,18 @@#define IXGBE_DMATXCTL_VT_MASK 0xFFFF0000#define IXGBEVF_DEVARG_PFLINK_FULLCHK "pflink_fullchk" +#define IXGBE_DEVARG_CU_SFP_AS_SX "cu_sfp_as_sx"static const char *const ixgbevf_valid_arguments[] = {IXGBEVF_DEVARG_PFLINK_FULLCHK ,NULL }; +static const char *const ixgbe_valid_arguments[] = { +IXGBE_DEVARG_CU_SFP_AS_SX , +NULL +}; +static int eth_ixgbe_dev_init (struct rte_eth_dev *eth_dev,void *init_params);static int eth_ixgbe_dev_uninit (struct rte_eth_dev *eth_dev);static int ixgbe_fdir_filter_init (struct rte_eth_dev *eth_dev);
@@ -185,6 +191,8 @@ static int ixgbe_fw_version_get(struct rte_eth_dev *dev, char *fw_version,static int ixgbe_dev_info_get (struct rte_eth_dev *dev,struct rte_eth_dev_info *dev_info);static const uint32_t *ixgbe_dev_supported_ptypes_get (struct rte_eth_dev *dev); +static int devarg_handle_int (const char *key,const char *value, +void *extra_args);static int ixgbevf_dev_info_get (struct rte_eth_dev *dev,struct rte_eth_dev_info *dev_info);static int ixgbe_dev_mtu_set (struct rte_eth_dev *dev,uint16_t mtu);
@@ -1032,6 +1040,29 @@ ixgbe_swfw_lock_reset(struct ixgbe_hw *hw)ixgbe_release_swfw_semaphore (hw, mask); } +static void +ixgbe_parse_devargs (struct ixgbe_adapter *adapter, +struct rte_devargs *devargs) +{ +struct rte_kvargs *kvlist; +uint16_t cu_sfp_as_sx; + +if (devargs ==NULL ) +return ; + + kvlist =rte_kvargs_parse (devargs->args, ixgbe_valid_arguments); +if (kvlist ==NULL ) +return ; + +if (rte_kvargs_count (kvlist,IXGBE_DEVARG_CU_SFP_AS_SX ) ==1 && +rte_kvargs_process (kvlist,IXGBE_DEVARG_CU_SFP_AS_SX , + devarg_handle_int, &cu_sfp_as_sx) ==0 && + cu_sfp_as_sx ==1 ) + adapter->cu_sfp_as_sx =1 ; + +rte_kvargs_free (kvlist); +} +/* * This function is based on code in ixgbe_attach() in base/ixgbe.c. * It returns 0 on success.
@@ -1095,6 +1126,8 @@ eth_ixgbe_dev_init(struct rte_eth_dev *eth_dev, void *init_params __rte_unused) }rte_atomic32_clear (&ad->link_thread_running); +ixgbe_parse_devargs (eth_dev->data->dev_private, + pci_dev->device.devargs);rte_eth_copy_pci_info (eth_dev, pci_dev); eth_dev->data->dev_flags |=RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS ;
drivers/net/ixgbe/ixgbe_ethdev.h +3 -0
@@ -498,6 +498,9 @@ struct ixgbe_adapter {struct rte_timecounter tx_tstamp_tc;struct ixgbe_tm_conf tm_conf; +/* For treating CU SFPs as SX (Unsupported by Intel) */ +uint8_t cu_sfp_as_sx; +/* For RSS reta table update */ uint8_t rss_reta_updated;
Signature · 1 line
2.25.1
Quoted 39 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Friday, May 27, 2022 4:44 AM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices1G Cu SFPs are not officially supported on the X552/X553 family of devices but create an option
cu_sfp_as_sxto treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via theallow_unsupported_sfpsparameter inherited from the mainline Linux driver.Signed-off-by Jeff Daly <[email protected]>Suggested-by Stephen Douthit <[email protected]>---
v2:
* Introducedcu_sfp_as_sxoption, default off.--- doc/guides/nics/ixgbe.rst | 16 ++++++++++++++ drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 12 ++++++++++- drivers/net/ixgbe/ixgbe_ethdev.c | 33 +++++++++++++++++++++++++++++ drivers/net/ixgbe/ixgbe_ethdev.h | 3 +++ 5 files changed, 64 insertions(+), 1 deletion(-)doc/guides/nics/ixgbe.rst index renamed from doc/guides/nics/ixgbe.rst +0
-0
82fa453fa28e..5db63083eef8100644doc/guides/nics/ixgbe.rst +0
-0@@ -101,6 +101,22 @@ To guarantee the constraint, capabilities indev_conf.rxmode.offloads will be ch
fdir_conf->modewill also be checked.doc/guides/nics/ixgbe.rst +1
-0+Runtime Options
doc/guides/nics/ixgbe.rst To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be ch · line 114
Quoted 10 lines
doc/guides/nics/ixgbe.rst +10
-0+^^^^^^^^^^^^^^^^^^ + +The following ``devargs`` options can be enabled at runtime. They must +be passed as part of EAL arguments. For example, + +.. code-block:: console + + dpdk-testpmd -a af:10.0,cu_sfp_as_sx=1 -- -i + +- ``cu_sfp_as_sx`` (default **0**)
Can we make this devargs more generic e.g.: "allow_unsupported_phy"
So we don't need to add a devarg for similar requirement case by case in future, of cause we still need to well explain all the unsupported cases in the document.
Quoted 55 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Sunday, May 29, 2022 6:49 PM
To: Jeff Daly <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 9 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Friday, May 27, 2022 4:44 AM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 5 lines
1G Cu SFPs are not officially supported on the X552/X553 family of devices but create an option
cu_sfp_as_sxto treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via theallow_unsupported_sfpsparameter inherited from the mainline Linux driver.
Quoted 11 lines
Signed-off-by Jeff Daly <[email protected]>Suggested-by Stephen Douthit <[email protected]>---
v2:
* Introducedcu_sfp_as_sxoption, default off.--- doc/guides/nics/ixgbe.rst | 16 ++++++++++++++ drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 12 ++++++++++- drivers/net/ixgbe/ixgbe_ethdev.c | 33+++++++++++++++++++++++++++++
Quoted 13 lines
drivers/net/ixgbe/ixgbe_ethdev.h | 3 +++ 5 files changed, 64 insertions(+), 1 deletion(-)doc/guides/nics/ixgbe.rst +0
-0index
82fa453fa28e..5db63083eef8100644doc/guides/nics/ixgbe.rst +0
-0@@ -101,6 +101,22 @@ To guarantee the constraint, capabilities indev_conf.rxmode.offloads will be ch
fdir_conf->modewill also be checked.
Quoted 18 lines
doc/guides/nics/ixgbe.rst To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be ch · line 114
Quoted 11 lines
doc/guides/nics/ixgbe.rst +11
-0+Runtime Options +^^^^^^^^^^^^^^^^^^ + +The following ``devargs`` options can be enabled at runtime. They +must be passed as part of EAL arguments. For example, + +.. code-block:: console + + dpdk-testpmd -a af:10.0,cu_sfp_as_sx=1 -- -i + +- ``cu_sfp_as_sx`` (default **0**)Can we make this devargs more generic e.g.: "
allow_unsupported_phy" So we don't need to add a devarg for similar requirement case by case in future, of cause we still need to well explain all the unsupported cases in the document.
this patch is specifically to change the driver's recognition of Cu transceivers and treat them as optical transceivers. so should we consider this an unsupported phy and use that same switch 'allow_unsupported_phy' or are you looking for a more generic name than 'cu_sfp_as_sx'? if you are looking for a more generic name vs just reusing allow_unsupported_phy, then please pick something and I'll submit a new patch, but I don't want to guess what would be ok by submitting patches.
Quoted 85 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Monday, May 30, 2022 9:33 PM
To: Zhang, Qi Z <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 53 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Sunday, May 29, 2022 6:49 PM
To: Jeff Daly <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 9 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Friday, May 27, 2022 4:44 AM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 5 lines
1G Cu SFPs are not officially supported on the X552/X553 family of devices but create an option
cu_sfp_as_sxto treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via theallow_unsupported_sfpsparameter inherited from the mainline Linux driver.
Quoted 11 lines
Signed-off-by Jeff Daly <[email protected]>Suggested-by Stephen Douthit <[email protected]>---
v2:
* Introducedcu_sfp_as_sxoption, default off.--- doc/guides/nics/ixgbe.rst | 16 ++++++++++++++ drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 12 ++++++++++- drivers/net/ixgbe/ixgbe_ethdev.c | 33+++++++++++++++++++++++++++++
Quoted 13 lines
drivers/net/ixgbe/ixgbe_ethdev.h | 3 +++ 5 files changed, 64 insertions(+), 1 deletion(-)doc/guides/nics/ixgbe.rst +0
-0index
82fa453fa28e..5db63083eef8100644doc/guides/nics/ixgbe.rst +0
-0@@ -101,6 +101,22 @@ To guarantee the constraint, capabilities indev_conf.rxmode.offloads will be ch
fdir_conf->modewill also be checked.Quoted 18 lines
doc/guides/nics/ixgbe.rst To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be ch · line 114
Quoted 11 lines
doc/guides/nics/ixgbe.rst +11
-0+Runtime Options +^^^^^^^^^^^^^^^^^^ + +The following ``devargs`` options can be enabled at runtime. They +must be passed as part of EAL arguments. For example, + +.. code-block:: console + + dpdk-testpmd -a af:10.0,cu_sfp_as_sx=1 -- -i + +- ``cu_sfp_as_sx`` (default **0**)Can we make this devargs more generic e.g.: "
allow_unsupported_phy" So we don't need to add a devarg for similar requirement case by case in future, of cause we still need to well explain all the unsupported cases in the document.
Quoted 8 lines
this patch is specifically to change the driver's recognition of Cu transceivers and treat them as optical transceivers. so should we consider this an unsupported phy and use that same switch '
allow_unsupported_phy' or are you looking for a more generic name than 'cu_sfp_as_sx'? if you are looking for a more generic name vs just reusingallow_unsupported_phy, then please pick something and I'll submit a new patch, but I don't want to guess what would be ok by submitting patches.
I'm not sure if there will be a situation we need to enable a unsupported phys in a different way, But as kernel driver take allow_unsupported_spf as module_param, so I will prefer we keep the same in DPDK.
Quoted 105 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 30, 2022 9:51 AM
To: Jeff Daly <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 83 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Monday, May 30, 2022 9:33 PM
To: Zhang, Qi Z <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 53 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Sunday, May 29, 2022 6:49 PM
To: Jeff Daly <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 9 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Friday, May 27, 2022 4:44 AM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 5 lines
1G Cu SFPs are not officially supported on the X552/X553 family of devices but create an option
cu_sfp_as_sxto treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via theallow_unsupported_sfpsparameter inherited from the mainline Linux driver.
Quoted 11 lines
Signed-off-by Jeff Daly <[email protected]>Suggested-by Stephen Douthit <[email protected]>---
v2:
* Introducedcu_sfp_as_sxoption, default off.--- doc/guides/nics/ixgbe.rst | 16 ++++++++++++++ drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 12 ++++++++++- drivers/net/ixgbe/ixgbe_ethdev.c | 33+++++++++++++++++++++++++++++
Quoted 13 lines
drivers/net/ixgbe/ixgbe_ethdev.h | 3 +++ 5 files changed, 64 insertions(+), 1 deletion(-)doc/guides/nics/ixgbe.rst +0
-0index
82fa453fa28e..5db63083eef8100644doc/guides/nics/ixgbe.rst +0
-0@@ -101,6 +101,22 @@ To guarantee the constraint, capabilities indev_conf.rxmode.offloads will be ch
fdir_conf->modewill also be checked.Quoted 18 lines
doc/guides/nics/ixgbe.rst To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be ch · line 114
Quoted 11 lines
doc/guides/nics/ixgbe.rst +11
-0+Runtime Options +^^^^^^^^^^^^^^^^^^ + +The following ``devargs`` options can be enabled at runtime. They +must be passed as part of EAL arguments. For example, + +.. code-block:: console + + dpdk-testpmd -a af:10.0,cu_sfp_as_sx=1 -- -i + +- ``cu_sfp_as_sx`` (default **0**)Can we make this devargs more generic e.g.: "
allow_unsupported_phy" So we don't need to add a devarg for similar requirement case by case in future, of cause we still need to well explain all the unsupported cases in the document.Quoted 7 lines
this patch is specifically to change the driver's recognition of Cu transceivers and treat them as optical transceivers. so should we consider this an unsupported phy and use that same switch '
allow_unsupported_phy' or are you looking for a more generic name than 'cu_sfp_as_sx'? if you are looking for a more generic name vs just reusingallow_unsupported_phy, then please pick something and I'll submit a new patch, but I don't want to guess what would be ok by
Quoted 7 lines
submitting patches.
Quoted 1 line
I'm not sure if there will be a situation we need to enable a unsupported phys in a different way, But as kernel driver take
allow_unsupported_spfasmodule_param, so I will prefer we keep the same in DPDK.
edit: we should have been saying 'allow_unsupported_sfp' all along. that's the kernel option. hopefully that didn't confuse anyone reading this thread......
so you realize that DPDK by default *always* sets allow_unsupported_sfp. are you now suggesting that this patch functionality falls under the same option? meaning it will *always* be treating 1G Cu as 1G SX?
Quoted 125 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Tuesday, May 31, 2022 8:31 PM
To: Zhang, Qi Z <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 106 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, May 30, 2022 9:51 AM
To: Jeff Daly <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 85 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Monday, May 30, 2022 9:33 PM
To: Zhang, Qi Z <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 55 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Sunday, May 29, 2022 6:49 PM
To: Jeff Daly <[email protected]>; [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: RE: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the
X550 devicesCaution: This is an external email. Please take care when clicking links or opening attachments.
Quoted 9 lines
-----Original Message-----
From: Jeff Daly <[email protected]>
Sent: Friday, May 27, 2022 4:44 AM
To: [email protected]
Cc: Stephen Douthit <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>
Subject: [PATCH v2] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devicesQuoted 6 lines
1G Cu SFPs are not officially supported on the X552/X553 family of devices but create an option
cu_sfp_as_sxto treat them as 1G SX modules since they usually work. Print a warning though since support isn't validated, similar to what already happens for other unofficially supported SFPs enabled via theallow_unsupported_sfpsparameter inherited from the mainline Linux driver.
Quoted 11 lines
Signed-off-by Jeff Daly <[email protected]>Suggested-by Stephen Douthit <[email protected]>---
v2:
* Introducedcu_sfp_as_sxoption, default off.--- doc/guides/nics/ixgbe.rst | 16 ++++++++++++++ drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 12 ++++++++++- drivers/net/ixgbe/ixgbe_ethdev.c | 33+++++++++++++++++++++++++++++
Quoted 13 lines
drivers/net/ixgbe/ixgbe_ethdev.h | 3 +++ 5 files changed, 64 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/doc/guides/nics/ixgbe.rstindex82fa453fa28e..5db63083eef8100644doc/guides/nics/ixgbe.rst +0
-0@@ -101,6 +101,22 @@ To guarantee the constraint, capabilitiesin dev_conf.rxmode.offloads will be ch
fdir_conf->modewill also be checked.Quoted 18 lines
doc/guides/nics/ixgbe.rst To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be ch · line 114
Quoted 11 lines
doc/guides/nics/ixgbe.rst +11
-0+Runtime Options +^^^^^^^^^^^^^^^^^^ + +The following ``devargs`` options can be enabled at runtime. +They must be passed as part of EAL arguments. For example, + +.. code-block:: console + + dpdk-testpmd -a af:10.0,cu_sfp_as_sx=1 -- -i + +- ``cu_sfp_as_sx`` (default **0**)Can we make this devargs more generic e.g.: "
allow_unsupported_phy" So we don't need to add a devarg for similar requirement case by case in future, of cause we still need to well explain all the unsupported cases in the document.Quoted 8 lines
this patch is specifically to change the driver's recognition of Cu transceivers and treat them as optical transceivers. so should we consider this an unsupported phy and use that same switch '
allow_unsupported_phy' or are you looking for a more generic name than 'cu_sfp_as_sx'? if you are looking for a more generic name vs just reusingallow_unsupported_phy, then please pick something and I'll submit a new patch, but I don't want to guess what would be ok byQuoted 6 lines
submitting patches.
Quoted 1 line
I'm not sure if there will be a situation we need to enable a unsupported phys in a different way, But as kernel driver take
allow_unsupported_spfasmodule_param, so I will prefer we keep the same
Quoted 7 lines
in DPDK.
Quoted 1 line
edit: we should have been saying '
allow_unsupported_sfp' all along. that's the kernel option. hopefully that didn't confuse anyone reading this thread......so you realize that DPDK by default *always* sets
allow_unsupported_sfp.
No I didn't realize this
But now I realize allow_unsupported_sfp is hardcoded as 1.
The original implementation is wrapped by a compile option.
+#ifdef RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP
+ hw->allow_unsupported_sfp = 1;
+#endif
I don't know why we decide to keep this feature already be on when we remove the #ifdef. It could be implemented as a devarg just like kernel driver does.
So can we take this chance to sync with kernel driver? and the case of treating 1G Cu as 1G SX could be covered into this config.
Quoted 3 lines
are
you now suggesting that this patch functionality falls under the same option? meaning it will *always* be treating 1G Cu as 1G SX?