Commit d894be5
ethernet: use net core MTU range checking in more drivers
Somehow, I missed a healthy number of ethernet drivers in the last pass.
Most of these drivers either were in need of an updated max_mtu to make
jumbo frames possible to enable again. In a few cases, also setting a
different min_mtu to match previous lower bounds. There are also a few
drivers that had no upper bounds checking, so they're getting a brand new
ETH_MAX_MTU that is identical to IP_MAX_MTU, but accessible by includes
all ethernet and ethernet-like drivers all have already.
acenic:
- min_mtu = 0, max_mtu = 9000
amazon/ena:
- min_mtu = 128, max_mtu = adapter->max_mtu
amd/xgbe:
- min_mtu = 0, max_mtu = 9000
sb1250:
- min_mtu = 0, max_mtu = 1518
cxgb3:
- min_mtu = 81, max_mtu = 65535
cxgb4:
- min_mtu = 81, max_mtu = 9600
cxgb4vf:
- min_mtu = 81, max_mtu = 65535
benet:
- min_mtu = 256, max_mtu = 9000
ibmveth:
- min_mtu = 68, max_mtu = 65535
ibmvnic:
- min_mtu = adapter->min_mtu, max_mtu = adapter->max_mtu
- remove now redundant ibmvnic_change_mtu
jme:
- min_mtu = 1280, max_mtu = 9202
mv643xx_eth:
- min_mtu = 64, max_mtu = 9500
mlxsw:
- min_mtu = 0, max_mtu = 65535
- Basically bypassing the core checks, and instead relying on dynamic
checks in the respective switch drivers' ndo_change_mtu functions
ns83820:
- min_mtu = 0
- remove redundant ns83820_change_mtu, only checked for mtu > 1500
netxen:
- min_mtu = 0, max_mtu = 8000 (P2), max_mtu = 9600 (P3)
qlge:
- min_mtu = 1500, max_mtu = 9000
- driver only supports setting mtu to 1500 or 9000, so the core check only
rules out < 1500 and > 9000, qlge_change_mtu still needs to check that
the value is 1500 or 9000
qualcomm/emac:
- min_mtu = 46, max_mtu = 9194
xilinx_axienet:
- min_mtu = 64, max_mtu = 9000
Fixes: 61e8462 ("net: centralize net_device min/max MTU checking")
CC: [email protected]
CC: Jes Sorensen <[email protected]>
CC: Netanel Belgazal <[email protected]>
CC: Tom Lendacky <[email protected]>
CC: Santosh Raspatur <[email protected]>
CC: Hariprasad S <[email protected]>
CC: Sathya Perla <[email protected]>
CC: Ajit Khaparde <[email protected]>
CC: Sriharsha Basavapatna <[email protected]>
CC: Somnath Kotur <[email protected]>
CC: Thomas Falcon <[email protected]>
CC: John Allen <[email protected]>
CC: Guo-Fu Tseng <[email protected]>
CC: Sebastian Hesselbarth <[email protected]>
CC: Jiri Pirko <[email protected]>
CC: Ido Schimmel <[email protected]>
CC: Manish Chopra <[email protected]>
CC: Sony Chacko <[email protected]>
CC: Rajesh Borundia <[email protected]>
CC: Timur Tabi <[email protected]>
CC: Anirudha Sarangi <[email protected]>
CC: John Linn <[email protected]>
Signed-off-by: Jarod Wilson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 1a61a8f commit d894be5
File tree
22 files changed
+68
-108
lines changed- drivers/net/ethernet
- alteon
- amazon/ena
- amd/xgbe
- broadcom
- chelsio
- cxgb3
- cxgb4vf
- cxgb4
- emulex/benet
- ibm
- marvell
- mellanox/mlxsw
- natsemi
- qlogic
- netxen
- qlge
- qualcomm/emac
- xilinx
- include/uapi/linux
22 files changed
+68
-108
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
477 | 479 | | |
478 | 480 | | |
479 | 481 | | |
| |||
2548 | 2550 | | |
2549 | 2551 | | |
2550 | 2552 | | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | 2553 | | |
2555 | 2554 | | |
2556 | 2555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 106 | | |
114 | 107 | | |
115 | 108 | | |
| |||
2755 | 2748 | | |
2756 | 2749 | | |
2757 | 2750 | | |
| 2751 | + | |
| 2752 | + | |
2758 | 2753 | | |
2759 | 2754 | | |
2760 | 2755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | 260 | | |
266 | 261 | | |
267 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| 741 | + | |
| 742 | + | |
741 | 743 | | |
742 | 744 | | |
743 | 745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2147 | 2147 | | |
2148 | 2148 | | |
2149 | 2149 | | |
2150 | | - | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | | - | |
2157 | | - | |
2158 | | - | |
2159 | 2150 | | |
2160 | 2151 | | |
2161 | 2152 | | |
2162 | 2153 | | |
2163 | 2154 | | |
2164 | 2155 | | |
2165 | 2156 | | |
2166 | | - | |
2167 | 2157 | | |
2168 | 2158 | | |
2169 | 2159 | | |
| |||
2229 | 2219 | | |
2230 | 2220 | | |
2231 | 2221 | | |
| 2222 | + | |
| 2223 | + | |
2232 | 2224 | | |
2233 | 2225 | | |
2234 | 2226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2531 | 2531 | | |
2532 | 2532 | | |
2533 | 2533 | | |
2534 | | - | |
2535 | | - | |
2536 | 2534 | | |
2537 | 2535 | | |
2538 | 2536 | | |
| |||
3295 | 3293 | | |
3296 | 3294 | | |
3297 | 3295 | | |
| 3296 | + | |
| 3297 | + | |
3298 | 3298 | | |
3299 | 3299 | | |
3300 | 3300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2502 | 2502 | | |
2503 | 2503 | | |
2504 | 2504 | | |
2505 | | - | |
2506 | | - | |
2507 | 2505 | | |
2508 | 2506 | | |
2509 | 2507 | | |
| |||
4803 | 4801 | | |
4804 | 4802 | | |
4805 | 4803 | | |
| 4804 | + | |
| 4805 | + | |
| 4806 | + | |
| 4807 | + | |
4806 | 4808 | | |
4807 | 4809 | | |
4808 | 4810 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | 1111 | | |
1116 | 1112 | | |
1117 | 1113 | | |
| |||
2966 | 2962 | | |
2967 | 2963 | | |
2968 | 2964 | | |
| 2965 | + | |
| 2966 | + | |
2969 | 2967 | | |
2970 | 2968 | | |
2971 | 2969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
1426 | 1409 | | |
1427 | 1410 | | |
1428 | 1411 | | |
| |||
5216 | 5199 | | |
5217 | 5200 | | |
5218 | 5201 | | |
5219 | | - | |
5220 | 5202 | | |
5221 | 5203 | | |
5222 | 5204 | | |
| |||
5266 | 5248 | | |
5267 | 5249 | | |
5268 | 5250 | | |
| 5251 | + | |
| 5252 | + | |
| 5253 | + | |
| 5254 | + | |
5269 | 5255 | | |
5270 | 5256 | | |
5271 | 5257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1349 | 1349 | | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | 1352 | | |
1356 | 1353 | | |
1357 | 1354 | | |
| |||
1551 | 1548 | | |
1552 | 1549 | | |
1553 | 1550 | | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
1554 | 1554 | | |
1555 | 1555 | | |
1556 | 1556 | | |
| |||
0 commit comments