Commit 2e3514e
net: hsr: fix VLAN add unwind on slave errors
When vlan_vid_add() fails for a secondary slave, the error path calls
vlan_vid_del() on the failing port instead of the peer slave that had
already succeeded. This results in asymmetric VLAN state across the HSR
pair.
Fix this by switching to a centralized unwind path that removes the VID
from any slave device that was already programmed.
Fixes: 1a8a63a ("net: hsr: Add VLAN CTAG filter support")
Signed-off-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260401092243.52121-3-luka.gejak@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent f5df299 commit 2e3514e
1 file changed
Lines changed: 17 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
536 | | - | |
| 535 | + | |
| 536 | + | |
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
553 | 552 | | |
554 | | - | |
555 | | - | |
556 | | - | |
| 553 | + | |
557 | 554 | | |
558 | | - | |
559 | | - | |
| 555 | + | |
560 | 556 | | |
561 | | - | |
562 | 557 | | |
563 | 558 | | |
564 | | - | |
565 | 559 | | |
566 | | - | |
567 | | - | |
568 | | - | |
| 560 | + | |
569 | 561 | | |
570 | | - | |
571 | | - | |
| 562 | + | |
572 | 563 | | |
573 | 564 | | |
| 565 | + | |
| 566 | + | |
574 | 567 | | |
575 | 568 | | |
576 | 569 | | |
577 | 570 | | |
578 | 571 | | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
579 | 581 | | |
580 | 582 | | |
581 | 583 | | |
| |||
0 commit comments