File tree 2 files changed +23
-0
lines changed
tools/testing/selftests/net/forwarding
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -428,6 +428,14 @@ __test_flood()
428
428
test_flood ()
429
429
{
430
430
__test_flood de:ad:be:ef:13:37 192.0.2.100 " flood"
431
+
432
+ # Add an entry with arbitrary destination IP. Verify that packets are
433
+ # not duplicated (this can happen if hardware floods the packets, and
434
+ # then traps them due to misconfiguration, so software data path repeats
435
+ # flooding and resends packets).
436
+ bridge fdb append dev vx1 00:00:00:00:00:00 dst 198.51.100.1 self
437
+ __test_flood de:ad:be:ef:13:37 192.0.2.100 " flood, unresolved FDB entry"
438
+ bridge fdb del dev vx1 00:00:00:00:00:00 dst 198.51.100.1 self
431
439
}
432
440
433
441
vxlan_fdb_add_del ()
Original file line number Diff line number Diff line change @@ -539,6 +539,21 @@ test_flood()
539
539
10 10 0 10 0
540
540
__test_flood ca:fe:be:ef:13:37 198.51.100.100 20 " flood vlan 20" \
541
541
10 0 10 0 10
542
+
543
+ # Add entries with arbitrary destination IP. Verify that packets are
544
+ # not duplicated (this can happen if hardware floods the packets, and
545
+ # then traps them due to misconfiguration, so software data path repeats
546
+ # flooding and resends packets).
547
+ bridge fdb append dev vx10 00:00:00:00:00:00 dst 203.0.113.1 self
548
+ bridge fdb append dev vx20 00:00:00:00:00:00 dst 203.0.113.2 self
549
+
550
+ __test_flood de:ad:be:ef:13:37 192.0.2.100 10 \
551
+ " flood vlan 10, unresolved FDB entry" 10 10 0 10 0
552
+ __test_flood ca:fe:be:ef:13:37 198.51.100.100 20 \
553
+ " flood vlan 20, unresolved FDB entry" 10 0 10 0 10
554
+
555
+ bridge fdb del dev vx20 00:00:00:00:00:00 dst 203.0.113.2 self
556
+ bridge fdb del dev vx10 00:00:00:00:00:00 dst 203.0.113.1 self
542
557
}
543
558
544
559
vxlan_fdb_add_del ()
You can’t perform that action at this time.
0 commit comments