net/i40e: fix X722 NIC receives jumbo frame packets
PATCH 1/1 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.
--- drivers/net/i40e/i40e_ethdev.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_ethdev.c +7 -2
@@ -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)
Signature · 1 line
2.25.1
Quoted 16 lines
-----Original Message-----
From: Jie Wang <[email protected]>
Sent: 2022年11月10日 11:45
To: [email protected]
Cc: Yang, SteveX <[email protected]>; Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Wang, Jie1X <[email protected]>; [email protected]
Subject: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packetsFor 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.
Quoted 7 lines
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")Signed-off-by Jie Wang <[email protected]>---
Zhang, Qi Z
AppliedQuoted 32 lines
-----Original Message-----
From: Yuan, DukaiX <[email protected]>
Sent: Thursday, November 10, 2022 2:00 PM
To: Wang, Jie1X <[email protected]>; [email protected]
Cc: Yang, SteveX <[email protected]>; Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Wang, Jie1X <[email protected]>; [email protected]
Subject: RE: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packetsQuoted 11 lines
-----Original Message-----
From: Jie Wang <[email protected]>
Sent: 2022年11月10日 11:45
To: [email protected]
Cc: Yang, SteveX <[email protected]>; Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>; Wang, Jie1X <[email protected]>; [email protected]
Subject: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packetsQuoted 7 lines
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.
Quoted 1 line
Quoted 7 lines
Quoted 6 lines
Fixes 2184f7cdeeaa ("net/i40e: fix max frame size config at portlevel")
Cc: [email protected]Signed-off-by Jie Wang <[email protected]>---
Tested-by Dukai Yuan<[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
Hi Kevin, Qi,
Quoted 8 lines · Qi Z
Quoted 8 lines
Quoted 8 lines
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.
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
This patch fix the error that starts the port will force set maximum frame
size.
Quoted 6 lines
Fixes 2184f7cdeeaa ("net/i40e: fix max frame size config at portlevel")
Cc: [email protected]Signed-off-by Jie Wang <[email protected]>
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!
Signature · 1 line
David Marchand
Quoted 25 lines · David Marchand
Hi Kevin, Qi,
Quoted 8 lines · Qi Z
Quoted 8 lines
Quoted 8 lines
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.
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
This patch fix the error that starts the port will force set maximum frame
size.
Quoted 6 lines
Fixes 2184f7cdeeaa ("net/i40e: fix max frame size config at portlevel")
Cc: [email protected]Signed-off-by Jie Wang <[email protected]>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.
Quoted 9 lines
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.
Quoted 3 lines
Thanks!
Hi David:
Quoted 40 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Monday, December 5, 2022 7:15 PM
To: Kevin Traynor <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Yuan, DukaiX <[email protected]>; Wang, Jie1X <[email protected]>; [email protected]; Yang, SteveX <[email protected]>; Yang, Qiming <[email protected]>; Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>
Subject: Re: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packetsHi Kevin, Qi,
Quoted 11 lines · Qi Z
Quoted 11 lines
Quoted 11 lines
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
Quoted 7 lines
Quoted 7 lines
size.
Quoted 6 lines
Fixes 2184f7cdeeaa ("net/i40e: fix max frame size config at portlevel")
Cc: [email protected]Signed-off-by Jie Wang <[email protected]>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.
Quoted 8 lines
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.
Quoted 6 lines
Thanks!
--
David Marchand
Quoted 48 lines · Qi Z
Hi David:
Quoted 46 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Monday, December 5, 2022 7:15 PM
To: Kevin Traynor <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Yuan, DukaiX <[email protected]>; Wang, Jie1X <[email protected]>; [email protected]; Yang, SteveX <[email protected]>; Yang, Qiming <[email protected]>; Xing, Beilei <[email protected]>; Zhang, Yuying <[email protected]>
Subject: Re: [PATCH] net/i40e: fix X722 NIC receives jumbo frame packetsHi Kevin, Qi,
Quoted 11 lines · Qi Z
Quoted 11 lines
Quoted 11 lines
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
Quoted 7 lines
Quoted 7 lines
size.
Quoted 6 lines
Fixes 2184f7cdeeaa ("net/i40e: fix max frame size config at portlevel")
Cc: [email protected]Signed-off-by Jie Wang <[email protected]>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
Quoted 4 lines
Quoted 2 lines
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.
Quoted 2 lines
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.
Quoted 7 lines
Quoted 6 lines
Thanks!
--
David Marchand