Commit 2e21792
committed
vnet: fix reuse of deleted interfaces
Reusing deleted interface nodes from a different device class can yield
an assertion failure (and crash in prod) when the TX node slots differ,
for example when reusing Loopback (ethernet-input at 0, l2-input at 1)
with a BVI (forced l2-input at slot 0), or the other way around.
Reuse deleted interface nodes only from the same device class.
Type: fix
Change-Id: I3b6bdd3d2e3f1efdaa68e8ac6691dcef8bedabf4
Signed-off-By: pim@ipng.nl1 parent 6ad56de commit 2e21792
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | | - | |
| 834 | + | |
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
887 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
888 | 897 | | |
889 | 898 | | |
890 | 899 | | |
891 | 900 | | |
892 | 901 | | |
893 | | - | |
| 902 | + | |
894 | 903 | | |
895 | 904 | | |
896 | 905 | | |
| |||
950 | 959 | | |
951 | 960 | | |
952 | 961 | | |
953 | | - | |
| 962 | + | |
954 | 963 | | |
955 | 964 | | |
956 | 965 | | |
| |||
1112 | 1121 | | |
1113 | 1122 | | |
1114 | 1123 | | |
| 1124 | + | |
1115 | 1125 | | |
1116 | 1126 | | |
1117 | 1127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
| 1073 | + | |
1073 | 1074 | | |
1074 | 1075 | | |
1075 | 1076 | | |
| |||
0 commit comments