Commit 956d8ef
net: dsa: mv88e6xxx: Verify after ATU Load ops
[ Upstream commit dc5340c ]
ATU Load operations could fail silently if there's not enough space
on the device to hold the new entry. When this happens, the symptom
depends on the unknown flood settings. If unknown multicast flood is
disabled, the multicast packets are dropped when the ATU table is
full. If unknown multicast flood is enabled, the multicast packets
will be flooded to all ports. Either way, IGMP snooping is broken
when the ATU Load operation fails silently.
Do a Read-After-Write verification after each fdb/mdb add operation
to make sure that the operation was really successful, and return
-ENOSPC otherwise.
Fixes: defb05b ("net: dsa: mv88e6xxx: Add support for fdb_add, fdb_del, and fdb_getnext")
Signed-off-by: Joseph Huang <Joseph.Huang@garmin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250306172306.3859214-1-Joseph.Huang@garmin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 251841a commit 956d8ef
1 file changed
+48
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2261 | 2261 | | |
2262 | 2262 | | |
2263 | 2263 | | |
2264 | | - | |
2265 | | - | |
2266 | | - | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
2267 | 2267 | | |
2268 | | - | |
2269 | 2268 | | |
2270 | | - | |
2271 | 2269 | | |
2272 | 2270 | | |
2273 | 2271 | | |
| |||
2278 | 2276 | | |
2279 | 2277 | | |
2280 | 2278 | | |
2281 | | - | |
| 2279 | + | |
2282 | 2280 | | |
2283 | 2281 | | |
2284 | 2282 | | |
| |||
2288 | 2286 | | |
2289 | 2287 | | |
2290 | 2288 | | |
2291 | | - | |
| 2289 | + | |
2292 | 2290 | | |
2293 | 2291 | | |
2294 | | - | |
2295 | | - | |
2296 | | - | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
2297 | 2305 | | |
2298 | | - | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
2299 | 2322 | | |
2300 | 2323 | | |
2301 | 2324 | | |
| |||
2893 | 2916 | | |
2894 | 2917 | | |
2895 | 2918 | | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
2896 | 2926 | | |
2897 | 2927 | | |
2898 | 2928 | | |
| |||
6593 | 6623 | | |
6594 | 6624 | | |
6595 | 6625 | | |
| 6626 | + | |
| 6627 | + | |
| 6628 | + | |
| 6629 | + | |
| 6630 | + | |
| 6631 | + | |
| 6632 | + | |
6596 | 6633 | | |
6597 | 6634 | | |
6598 | 6635 | | |
| |||
0 commit comments