Bug 11811 - net: Fix gso_features_check to check for both dev->gso_{ipv4_,}max_size
Summary: net: Fix gso_features_check to check for both dev->gso_{ipv4_,}max_size
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: net (show other bugs) net
Version: 6.6.7-1
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: XuanZhuo
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-12 10:55 UTC by HLjksuga
Modified: 2024-11-12 13:53 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HLjksuga inspur_group 2024-11-12 10:55:27 UTC
Commit 24ab059d2ebd ("net: check dev->gso_max_size in gso_features_check()")
added a dev->gso_max_size test to gso_features_check() in order to fall
back to GSO when needed.

This was added as it was noticed that some drivers could misbehave if TSO
packets get too big. However, the check doesn't respect dev->gso_ipv4_max_size
limit. For instance, a device could be configured with BIG TCP for IPv4,
but not IPv6.

Therefore, add a netif_get_gso_max_size() equivalent to netif_get_gro_max_size()
and use the helper to respect both limits before falling back to GSO engine.
Comment 1 小龙 admin 2024-11-12 13:53:09 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4101