Commit 9eefedd
net: add gso_ipv4_max_size and gro_ipv4_max_size per device
This patch introduces gso_ipv4_max_size and gro_ipv4_max_size
per device and adds netlink attributes for them, so that IPV4
BIG TCP can be guarded by a separate tunable in the next patch.
To not break the old application using "gso/gro_max_size" for
IPv4 GSO packets, this patch updates "gso/gro_ipv4_max_size"
in netif_set_gso/gro_max_size() if the new size isn't greater
than GSO_LEGACY_MAX_SIZE, so that nothing will change even if
userspace doesn't realize the new netlink attributes.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 8e08bb7 commit 9eefedd
File tree
5 files changed
+64
-0
lines changed- include
- linux
- uapi/linux
- net/core
5 files changed
+64
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1964 | 1964 | | |
1965 | 1965 | | |
1966 | 1966 | | |
| 1967 | + | |
| 1968 | + | |
1967 | 1969 | | |
1968 | 1970 | | |
1969 | 1971 | | |
| |||
2004 | 2006 | | |
2005 | 2007 | | |
2006 | 2008 | | |
| 2009 | + | |
| 2010 | + | |
2007 | 2011 | | |
2008 | 2012 | | |
2009 | 2013 | | |
| |||
2207 | 2211 | | |
2208 | 2212 | | |
2209 | 2213 | | |
| 2214 | + | |
2210 | 2215 | | |
2211 | 2216 | | |
2212 | 2217 | | |
| |||
2330 | 2335 | | |
2331 | 2336 | | |
2332 | 2337 | | |
| 2338 | + | |
2333 | 2339 | | |
2334 | 2340 | | |
2335 | 2341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
377 | 380 | | |
378 | 381 | | |
379 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3001 | 3001 | | |
3002 | 3002 | | |
3003 | 3003 | | |
| 3004 | + | |
| 3005 | + | |
3004 | 3006 | | |
3005 | 3007 | | |
3006 | 3008 | | |
| |||
10614 | 10616 | | |
10615 | 10617 | | |
10616 | 10618 | | |
| 10619 | + | |
| 10620 | + | |
10617 | 10621 | | |
10618 | 10622 | | |
10619 | 10623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
117 | 135 | | |
118 | 136 | | |
119 | 137 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
| 1077 | + | |
| 1078 | + | |
1077 | 1079 | | |
1078 | 1080 | | |
1079 | 1081 | | |
| |||
1807 | 1809 | | |
1808 | 1810 | | |
1809 | 1811 | | |
| 1812 | + | |
| 1813 | + | |
1810 | 1814 | | |
1811 | 1815 | | |
1812 | 1816 | | |
| |||
1968 | 1972 | | |
1969 | 1973 | | |
1970 | 1974 | | |
| 1975 | + | |
| 1976 | + | |
1971 | 1977 | | |
1972 | 1978 | | |
1973 | 1979 | | |
| |||
2883 | 2889 | | |
2884 | 2890 | | |
2885 | 2891 | | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
2886 | 2915 | | |
2887 | 2916 | | |
2888 | 2917 | | |
| |||
3325 | 3354 | | |
3326 | 3355 | | |
3327 | 3356 | | |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
3328 | 3361 | | |
3329 | 3362 | | |
3330 | 3363 | | |
| |||
0 commit comments