Displaying 2 results from an estimated 2 matches for "bridge_ageing_time_get".
2023 Mar 18
1
[Bridge] [PATCH v2 net-next 6/6] selftests: forwarding: add dynamic FDB test
...uot;no"
source lib.sh
+source tc_common.sh
h1_create()
{
@@ -319,6 +320,41 @@ locked_port_mab_flush()
log_test "Locked port MAB FDB flush"
}
+# Test of dynamic FDB entries.
+locked_port_dyn_fdb()
+{
+ local mac=00:01:02:03:04:05
+ local ageing_time
+
+ RET=0
+ ageing_time=$(bridge_ageing_time_get br0)
+ tc qdisc add dev $swp2 clsact
+ ip link set dev br0 type bridge ageing_time $LOW_AGEING_TIME
+ bridge link set dev $swp1 learning on locked on
+
+ bridge fdb replace $mac dev $swp1 master dynamic
+ tc filter add dev $swp2 egress protocol ip pref 1 handle 1 flower \
+ dst_ip 192.0.2.2 ip_pro...
2023 Mar 20
1
[Bridge] [PATCH v2 net-next 6/6] selftests: forwarding: add dynamic FDB test
On Sat, Mar 18, 2023 at 03:10:10PM +0100, Hans J. Schultz wrote:
> +# Test of dynamic FDB entries.
> +locked_port_dyn_fdb()
> +{
> + local mac=00:01:02:03:04:05
> + local ageing_time
> +
> + RET=0
> + ageing_time=$(bridge_ageing_time_get br0)
> + tc qdisc add dev $swp2 clsact
> + ip link set dev br0 type bridge ageing_time $LOW_AGEING_TIME
> + bridge link set dev $swp1 learning on locked on
> +
> + bridge fdb replace $mac dev $swp1 master dynamic
> + tc filter add dev $swp2 egress protocol ip pref 1 handle 1 flowe...