Commit 9f00b2e
bridge: only expire the mdb entry when query is received
Currently we arm the expire timer when the mdb entry is added,
however, this causes problem when there is no querier sent
out after that.
So we should only arm the timer when a corresponding query is
received, as suggested by Herbert.
And he also mentioned "if there is no querier then group
subscriptions shouldn't expire. There has to be at least one querier
in the network for this thing to work. Otherwise it just degenerates
into a non-snooping switch, which is OK."
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Adam Baker <linux@baker-net.org.uk>
Signed-off-by: Cong Wang <amwang@redhat.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 1c8ad5b commit 9f00b2e
2 files changed
+13
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
621 | | - | |
622 | 620 | | |
623 | 621 | | |
624 | 622 | | |
| |||
656 | 654 | | |
657 | 655 | | |
658 | 656 | | |
659 | | - | |
660 | 657 | | |
661 | 658 | | |
662 | 659 | | |
| |||
671 | 668 | | |
672 | 669 | | |
673 | 670 | | |
674 | | - | |
675 | 671 | | |
676 | 672 | | |
677 | 673 | | |
678 | 674 | | |
679 | 675 | | |
680 | 676 | | |
681 | 677 | | |
682 | | - | |
| 678 | + | |
683 | 679 | | |
684 | 680 | | |
685 | 681 | | |
| |||
690 | 686 | | |
691 | 687 | | |
692 | 688 | | |
693 | | - | |
694 | | - | |
695 | 689 | | |
696 | 690 | | |
697 | 691 | | |
| |||
1131 | 1125 | | |
1132 | 1126 | | |
1133 | 1127 | | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1134 | 1132 | | |
1135 | 1133 | | |
1136 | 1134 | | |
| |||
1205 | 1203 | | |
1206 | 1204 | | |
1207 | 1205 | | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1208 | 1210 | | |
1209 | 1211 | | |
1210 | 1212 | | |
| |||
1263 | 1265 | | |
1264 | 1266 | | |
1265 | 1267 | | |
1266 | | - | |
| 1268 | + | |
1267 | 1269 | | |
1268 | 1270 | | |
1269 | 1271 | | |
| |||
1275 | 1277 | | |
1276 | 1278 | | |
1277 | 1279 | | |
1278 | | - | |
| 1280 | + | |
1279 | 1281 | | |
1280 | 1282 | | |
1281 | 1283 | | |
1282 | 1284 | | |
1283 | 1285 | | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | 1286 | | |
1303 | 1287 | | |
1304 | 1288 | | |
| |||
1674 | 1658 | | |
1675 | 1659 | | |
1676 | 1660 | | |
| 1661 | + | |
1677 | 1662 | | |
1678 | 1663 | | |
1679 | 1664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
0 commit comments