patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
@ 2022-11-10  3:45 Jie Wang
  2022-11-10  5:59 ` Yuan, DukaiX
  0 siblings, 1 reply; 7+ messages in thread
From: Jie Wang @ 2022-11-10  3:45 UTC (permalink / raw)
  To: dev
  Cc: stevex.yang, qi.z.zhang, qiming.yang, beilei.xing, yuying.zhang,
	Jie Wang, stable

For NIC I40E_10G-10G_BASE_T_X722, when the port is configured with
link speed, it cannot receive jumbo frame packets.

Because it set maximum frame size failed when starts the port that
the port link status is still down.

This patch fix the error that starts the port will force set maximum
frame size.

Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port level")
Cc: stable@dpdk.org

Signed-off-by: Jie Wang <jie1x.wang@intel.com>
---
 drivers/net/i40e/i40e_ethdev.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index 80fbcc847c..7726a89d99 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -12132,8 +12132,13 @@ i40e_set_mac_max_frame(struct rte_eth_dev *dev, uint16_t size)
 	enum i40e_status_code status;
 	bool can_be_set = true;
 
-	/* I40E_MEDIA_TYPE_BASET link up can be ignored */
-	if (hw->phy.media_type != I40E_MEDIA_TYPE_BASET) {
+	/*
+	 * I40E_MEDIA_TYPE_BASET link up can be ignored
+	 * I40E_MEDIA_TYPE_BASET link down that hw->phy.media_type
+	 * is I40E_MEDIA_TYPE_UNKNOWN
+	 */
+	if (hw->phy.media_type != I40E_MEDIA_TYPE_BASET &&
+	    hw->phy.media_type != I40E_MEDIA_TYPE_UNKNOWN) {
 		do {
 			update_link_reg(hw, &link);
 			if (link.link_status)
-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
  2022-11-10  3:45 [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets Jie Wang
@ 2022-11-10  5:59 ` Yuan, DukaiX
  2022-11-10  9:47   ` Zhang, Qi Z
  0 siblings, 1 reply; 7+ messages in thread
From: Yuan, DukaiX @ 2022-11-10  5:59 UTC (permalink / raw)
  To: Wang, Jie1X, dev
  Cc: Yang, SteveX, Zhang, Qi Z, Yang, Qiming, Xing, Beilei, Zhang,
	Yuying, Wang, Jie1X, stable

> -----Original Message-----
> From: Jie Wang <jie1x.wang@intel.com>
> Sent: 2022年11月10日 11:45
> To: dev@dpdk.org
> Cc: Yang, SteveX <stevex.yang@intel.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>; Yang, Qiming <qiming.yang@intel.com>; Xing, Beilei
> <beilei.xing@intel.com>; Zhang, Yuying <yuying.zhang@intel.com>; Wang,
> Jie1X <jie1x.wang@intel.com>; stable@dpdk.org
> Subject: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
>
> For NIC I40E_10G-10G_BASE_T_X722, when the port is configured with link
> speed, it cannot receive jumbo frame packets.
>
> Because it set maximum frame size failed when starts the port that the port
> link status is still down.
>
> This patch fix the error that starts the port will force set maximum frame size.
>
> Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port level")
> Cc: stable@dpdk.org
>
> Signed-off-by: Jie Wang <jie1x.wang@intel.com>
> ---
Tested-by: Dukai Yuan<dukaix.yuan@intel.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
  2022-11-10  5:59 ` Yuan, DukaiX
@ 2022-11-10  9:47   ` Zhang, Qi Z
  2022-12-05 11:15     ` David Marchand
  0 siblings, 1 reply; 7+ messages in thread
From: Zhang, Qi Z @ 2022-11-10  9:47 UTC (permalink / raw)
  To: Yuan, DukaiX, Wang, Jie1X, dev
  Cc: Yang, SteveX, Yang, Qiming, Xing, Beilei, Zhang, Yuying, Wang,
	Jie1X, stable



> -----Original Message-----
> From: Yuan, DukaiX <dukaix.yuan@intel.com>
> Sent: Thursday, November 10, 2022 2:00 PM
> To: Wang, Jie1X <jie1x.wang@intel.com>; dev@dpdk.org
> Cc: Yang, SteveX <stevex.yang@intel.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>; Yang, Qiming <qiming.yang@intel.com>; Xing, Beilei
> <beilei.xing@intel.com>; Zhang, Yuying <yuying.zhang@intel.com>; Wang,
> Jie1X <jie1x.wang@intel.com>; stable@dpdk.org
> Subject: RE: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
>
> > -----Original Message-----
> > From: Jie Wang <jie1x.wang@intel.com>
> > Sent: 2022年11月10日 11:45
> > To: dev@dpdk.org
> > Cc: Yang, SteveX <stevex.yang@intel.com>; Zhang, Qi Z
> > <qi.z.zhang@intel.com>; Yang, Qiming <qiming.yang@intel.com>; Xing,
> > Beilei <beilei.xing@intel.com>; Zhang, Yuying
> > <yuying.zhang@intel.com>; Wang, Jie1X <jie1x.wang@intel.com>;
> > stable@dpdk.org
> > Subject: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
> >
> > For NIC I40E_10G-10G_BASE_T_X722, when the port is configured with
> > link speed, it cannot receive jumbo frame packets.
> >
> > Because it set maximum frame size failed when starts the port that the
> > port link status is still down.
> >
> > This patch fix the error that starts the port will force set maximum frame
> size.
> >
> > Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port
> > level")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Jie Wang <jie1x.wang@intel.com>
> > ---
> Tested-by: Dukai Yuan<dukaix.yuan@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
  2022-11-10  9:47   ` Zhang, Qi Z
@ 2022-12-05 11:15     ` David Marchand
  2022-12-05 12:02       ` Kevin Traynor
  2022-12-06  0:01       ` Zhang, Qi Z
  0 siblings, 2 replies; 7+ messages in thread
From: David Marchand @ 2022-12-05 11:15 UTC (permalink / raw)
  To: Kevin Traynor, Zhang, Qi Z
  Cc: stable, Yuan, DukaiX, Wang, Jie1X, dev, Yang, SteveX, Yang,
	Qiming, Xing, Beilei, Zhang, Yuying

Hi Kevin, Qi,

On Thu, Nov 10, 2022 at 10:48 AM Zhang, Qi Z <qi.z.zhang@intel.com> wrote:
> > > Subject: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
> > >
> > > For NIC I40E_10G-10G_BASE_T_X722, when the port is configured with
> > > link speed, it cannot receive jumbo frame packets.
> > >
> > > Because it set maximum frame size failed when starts the port that the
> > > port link status is still down.
> > >
> > > This patch fix the error that starts the port will force set maximum frame
> > size.
> > >
> > > Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port
> > > level")
> > > Cc: stable@dpdk.org
> > >
> > > Signed-off-by: Jie Wang <jie1x.wang@intel.com>

It seems this fix has been missed in 21.11 (for the reason we
discussed with Kevin offlist).

Our QE reported that reception of jumbo frames seems broken in the 21.11 branch.

I can reproduce with a X710 nic: v21.11.0 is fine, but v21.11.1 and
v21.11.2 show the following error log.
Dec 05 05:41:37 xxx ovs-vswitchd[53585]:
ovs|00183|dpdk|ERR|i40e_set_mac_max_frame(): Set max frame size at
port level not applicable on link down

The log goes away with backporting this current patch.
Can this be added to 21.11 queue, and have Intel validate this issue?

Thanks!


-- 
David Marchand


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
  2022-12-05 11:15     ` David Marchand
@ 2022-12-05 12:02       ` Kevin Traynor
  2022-12-06  0:01       ` Zhang, Qi Z
  1 sibling, 0 replies; 7+ messages in thread
From: Kevin Traynor @ 2022-12-05 12:02 UTC (permalink / raw)
  To: David Marchand, Zhang, Qi Z
  Cc: stable, Yuan, DukaiX, Wang, Jie1X, dev, Yang, SteveX, Yang,
	Qiming, Xing, Beilei, Zhang, Yuying

On 05/12/2022 11:15, David Marchand wrote:
> Hi Kevin, Qi,
> 
> On Thu, Nov 10, 2022 at 10:48 AM Zhang, Qi Z <qi.z.zhang@intel.com> wrote:
>>>> Subject: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
>>>>
>>>> For NIC I40E_10G-10G_BASE_T_X722, when the port is configured with
>>>> link speed, it cannot receive jumbo frame packets.
>>>>
>>>> Because it set maximum frame size failed when starts the port that the
>>>> port link status is still down.
>>>>
>>>> This patch fix the error that starts the port will force set maximum frame
>>> size.
>>>>
>>>> Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port
>>>> level")
>>>> Cc: stable@dpdk.org
>>>>
>>>> Signed-off-by: Jie Wang <jie1x.wang@intel.com>
> 
> It seems this fix has been missed in 21.11 (for the reason we
> discussed with Kevin offlist).
> 
> Our QE reported that reception of jumbo frames seems broken in the 21.11 branch.
> 
> I can reproduce with a X710 nic: v21.11.0 is fine, but v21.11.1 and
> v21.11.2 show the following error log.
> Dec 05 05:41:37 xxx ovs-vswitchd[53585]:
> ovs|00183|dpdk|ERR|i40e_set_mac_max_frame(): Set max frame size at
> port level not applicable on link down
> 
> The log goes away with backporting this current patch.
> Can this be added to 21.11 queue, and have Intel validate this issue?
> 

Thanks David. I am have applied and pushing through CI. Will push to 
21.11 branch when it completes.

> Thanks!
> 
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
  2022-12-05 11:15     ` David Marchand
  2022-12-05 12:02       ` Kevin Traynor
@ 2022-12-06  0:01       ` Zhang, Qi Z
  2022-12-06 10:12         ` Kevin Traynor
  1 sibling, 1 reply; 7+ messages in thread
From: Zhang, Qi Z @ 2022-12-06  0:01 UTC (permalink / raw)
  To: David Marchand, Kevin Traynor, Wang, Jie1X
  Cc: stable, Yuan, DukaiX, dev, Yang, SteveX, Yang, Qiming, Xing,
	Beilei, Zhang, Yuying

Hi David:

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Monday, December 5, 2022 7:15 PM
> To: Kevin Traynor <ktraynor@redhat.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>
> Cc: stable@dpdk.org; Yuan, DukaiX <dukaix.yuan@intel.com>; Wang, Jie1X
> <jie1x.wang@intel.com>; dev@dpdk.org; Yang, SteveX
> <stevex.yang@intel.com>; Yang, Qiming <qiming.yang@intel.com>; Xing,
> Beilei <beilei.xing@intel.com>; Zhang, Yuying <yuying.zhang@intel.com>
> Subject: Re: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
> 
> Hi Kevin, Qi,
> 
> On Thu, Nov 10, 2022 at 10:48 AM Zhang, Qi Z <qi.z.zhang@intel.com>
> wrote:
> > > > Subject: [PATCH] net/i40e: fix X722 NIC receives jumbo frame
> > > > packets
> > > >
> > > > For NIC I40E_10G-10G_BASE_T_X722, when the port is configured with
> > > > link speed, it cannot receive jumbo frame packets.
> > > >
> > > > Because it set maximum frame size failed when starts the port that
> > > > the port link status is still down.
> > > >
> > > > This patch fix the error that starts the port will force set
> > > > maximum frame
> > > size.
> > > >
> > > > Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port
> > > > level")
> > > > Cc: stable@dpdk.org
> > > >
> > > > Signed-off-by: Jie Wang <jie1x.wang@intel.com>
> 
> It seems this fix has been missed in 21.11 (for the reason we discussed with
> Kevin offlist).
> 
> Our QE reported that reception of jumbo frames seems broken in the 21.11
> branch.
> 
> I can reproduce with a X710 nic: v21.11.0 is fine, but v21.11.1 and
> v21.11.2 show the following error log.
> Dec 05 05:41:37 xxx ovs-vswitchd[53585]:
> ovs|00183|dpdk|ERR|i40e_set_mac_max_frame(): Set max frame size at
> port level not applicable on link down
> 
> The log goes away with backporting this current patch.
> Can this be added to 21.11 queue, and have Intel validate this issue?

Yes, the patch has been verified on X722.
As the patch Cc stable, we can assume it will be captured in 21.11.3 by default.

> 
> Thanks!
> 
> 
> --
> David Marchand


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
  2022-12-06  0:01       ` Zhang, Qi Z
@ 2022-12-06 10:12         ` Kevin Traynor
  0 siblings, 0 replies; 7+ messages in thread
From: Kevin Traynor @ 2022-12-06 10:12 UTC (permalink / raw)
  To: Zhang, Qi Z, David Marchand, Wang, Jie1X
  Cc: stable, Yuan, DukaiX, dev, Yang, SteveX, Yang, Qiming, Xing,
	Beilei, Zhang, Yuying, Luca Boccassi, Xueming(Steven) Li

On 06/12/2022 00:01, Zhang, Qi Z wrote:
> Hi David:
> 
>> -----Original Message-----
>> From: David Marchand <david.marchand@redhat.com>
>> Sent: Monday, December 5, 2022 7:15 PM
>> To: Kevin Traynor <ktraynor@redhat.com>; Zhang, Qi Z
>> <qi.z.zhang@intel.com>
>> Cc: stable@dpdk.org; Yuan, DukaiX <dukaix.yuan@intel.com>; Wang, Jie1X
>> <jie1x.wang@intel.com>; dev@dpdk.org; Yang, SteveX
>> <stevex.yang@intel.com>; Yang, Qiming <qiming.yang@intel.com>; Xing,
>> Beilei <beilei.xing@intel.com>; Zhang, Yuying <yuying.zhang@intel.com>
>> Subject: Re: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets
>>
>> Hi Kevin, Qi,
>>
>> On Thu, Nov 10, 2022 at 10:48 AM Zhang, Qi Z <qi.z.zhang@intel.com>
>> wrote:
>>>>> Subject: [PATCH] net/i40e: fix X722 NIC receives jumbo frame
>>>>> packets
>>>>>
>>>>> For NIC I40E_10G-10G_BASE_T_X722, when the port is configured with
>>>>> link speed, it cannot receive jumbo frame packets.
>>>>>
>>>>> Because it set maximum frame size failed when starts the port that
>>>>> the port link status is still down.
>>>>>
>>>>> This patch fix the error that starts the port will force set
>>>>> maximum frame
>>>> size.
>>>>>
>>>>> Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port
>>>>> level")
>>>>> Cc: stable@dpdk.org
>>>>>
>>>>> Signed-off-by: Jie Wang <jie1x.wang@intel.com>
>>
>> It seems this fix has been missed in 21.11 (for the reason we discussed with
>> Kevin offlist).
>>
>> Our QE reported that reception of jumbo frames seems broken in the 21.11
>> branch.
>>
>> I can reproduce with a X710 nic: v21.11.0 is fine, but v21.11.1 and
>> v21.11.2 show the following error log.
>> Dec 05 05:41:37 xxx ovs-vswitchd[53585]:
>> ovs|00183|dpdk|ERR|i40e_set_mac_max_frame(): Set max frame size at
>> port level not applicable on link down
>>
>> The log goes away with backporting this current patch.
>> Can this be added to 21.11 queue, and have Intel validate this issue?
> 
> Yes, the patch has been verified on X722.

Great, can a test also be added to the Intel LTS release validation for 
this?

Looking at the chain of fixes, it appears this issue was present on 
multiple 21.11.x and 20.11.x releases.

> As the patch Cc stable, we can assume it will be captured in 21.11.3 by default.
> 

No, the original commit where the chain of fixes started was not tagged 
with 'Fixes:' so this chain of fixes looked like it was fixing an issue 
that originated in 22.03.

It is applied now and will be part of 21.11.3.

thanks,
Kevin.

>>
>> Thanks!
>>
>>
>> --
>> David Marchand
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-06 10:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10  3:45 [PATCH] net/i40e: fix X722 NIC receives jumbo frame packets Jie Wang
2022-11-10  5:59 ` Yuan, DukaiX
2022-11-10  9:47   ` Zhang, Qi Z
2022-12-05 11:15     ` David Marchand
2022-12-05 12:02       ` Kevin Traynor
2022-12-06  0:01       ` Zhang, Qi Z
2022-12-06 10:12         ` Kevin Traynor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).