Commit 7de196a
committed
Merge branch 'make-dsa-work-with-bonding-s-arp-monitor'
Vladimir Oltean says:
====================
Make DSA work with bonding's ARP monitor
Since commit 2b86cb8 ("net: dsa: declare lockless TX feature for
slave ports") in v5.7, DSA breaks the ARP monitoring logic from the
bonding driver, fact which was pointed out by Brian Hutchinson who uses
a linux-5.10.y stable kernel.
Initially I got lured by other similar hacks introduced for other
NETIF_F_LLTX drivers, which, inspired by the bonding documentation,
update the trans_start of their TX queues by hand.
However Jakub pointed out that this simply isn't a proper solution, and
after coming to think more about it, I agree, and it doesn't work
properly with DSA nor is it maintainable for the future changes I plan
for it (multiple DSA masters in a LAG).
I've tested these changes using a DSA-based setup and a veth-based
setup, using the active-backup mode and ARP monitoring, with and without
arp_validate.
Link to v1:
https://patchwork.kernel.org/project/netdevbpf/patch/20220715232641.952532-1-vladimir.oltean@nxp.com/
Link to v2:
https://patchwork.kernel.org/project/netdevbpf/patch/20220727152000.3616086-1-vladimir.oltean@nxp.com/
====================
Link: https://lore.kernel.org/r/20220731124108.2810233-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>File tree
5 files changed
+34
-35
lines changed- Documentation/networking
- drivers/net
- bonding
- include/net
- net/sched
5 files changed
+34
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1982 | 1982 | | |
1983 | 1983 | | |
1984 | 1984 | | |
1985 | | - | |
1986 | | - | |
1987 | | - | |
1988 | | - | |
1989 | | - | |
1990 | | - | |
1991 | | - | |
1992 | | - | |
1993 | | - | |
1994 | 1985 | | |
1995 | 1986 | | |
1996 | 1987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2001 | 2001 | | |
2002 | 2002 | | |
2003 | 2003 | | |
| 2004 | + | |
| 2005 | + | |
2004 | 2006 | | |
2005 | 2007 | | |
2006 | 2008 | | |
| |||
2884 | 2886 | | |
2885 | 2887 | | |
2886 | 2888 | | |
2887 | | - | |
| 2889 | + | |
| 2890 | + | |
2888 | 2891 | | |
| 2892 | + | |
| 2893 | + | |
2889 | 2894 | | |
2890 | 2895 | | |
2891 | 2896 | | |
| |||
3074 | 3079 | | |
3075 | 3080 | | |
3076 | 3081 | | |
3077 | | - | |
3078 | | - | |
| 3082 | + | |
3079 | 3083 | | |
3080 | 3084 | | |
3081 | 3085 | | |
| |||
3103 | 3107 | | |
3104 | 3108 | | |
3105 | 3109 | | |
3106 | | - | |
| 3110 | + | |
| 3111 | + | |
3107 | 3112 | | |
| 3113 | + | |
3108 | 3114 | | |
3109 | 3115 | | |
3110 | 3116 | | |
| |||
3246 | 3252 | | |
3247 | 3253 | | |
3248 | 3254 | | |
3249 | | - | |
3250 | | - | |
| 3255 | + | |
3251 | 3256 | | |
3252 | 3257 | | |
3253 | 3258 | | |
| |||
3335 | 3340 | | |
3336 | 3341 | | |
3337 | 3342 | | |
3338 | | - | |
| 3343 | + | |
3339 | 3344 | | |
3340 | 3345 | | |
3341 | 3346 | | |
3342 | 3347 | | |
3343 | | - | |
| 3348 | + | |
3344 | 3349 | | |
3345 | 3350 | | |
3346 | 3351 | | |
| |||
3365 | 3370 | | |
3366 | 3371 | | |
3367 | 3372 | | |
3368 | | - | |
| 3373 | + | |
3369 | 3374 | | |
3370 | 3375 | | |
3371 | 3376 | | |
| |||
3431 | 3436 | | |
3432 | 3437 | | |
3433 | 3438 | | |
3434 | | - | |
| 3439 | + | |
3435 | 3440 | | |
3436 | 3441 | | |
3437 | 3442 | | |
| |||
3482 | 3487 | | |
3483 | 3488 | | |
3484 | 3489 | | |
3485 | | - | |
| 3490 | + | |
3486 | 3491 | | |
3487 | | - | |
| 3492 | + | |
3488 | 3493 | | |
3489 | 3494 | | |
3490 | 3495 | | |
| |||
3501 | 3506 | | |
3502 | 3507 | | |
3503 | 3508 | | |
3504 | | - | |
3505 | 3509 | | |
| 3510 | + | |
3506 | 3511 | | |
3507 | 3512 | | |
3508 | 3513 | | |
| |||
3511 | 3516 | | |
3512 | 3517 | | |
3513 | 3518 | | |
3514 | | - | |
| 3519 | + | |
3515 | 3520 | | |
3516 | 3521 | | |
3517 | | - | |
| 3522 | + | |
3518 | 3523 | | |
3519 | 3524 | | |
3520 | 3525 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
| |||
330 | 329 | | |
331 | 330 | | |
332 | 331 | | |
333 | | - | |
334 | 332 | | |
335 | 333 | | |
336 | 334 | | |
| |||
342 | 340 | | |
343 | 341 | | |
344 | 342 | | |
345 | | - | |
346 | | - | |
347 | 343 | | |
348 | 344 | | |
349 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
540 | 541 | | |
541 | 542 | | |
542 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
543 | 554 | | |
544 | 555 | | |
545 | 556 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | 434 | | |
439 | 435 | | |
440 | 436 | | |
| |||
0 commit comments