Hi, guys! When I tested limiting speed using tc+ifb, the speed from 2.5G LAN to 2.5GWan was only 1Gbps, and hwnat has been turned off. Has anyone encountered this problem,Here is the command:
insmod ifb.ko
ip link add ifb0 type ifb
ip link set dev ifb0 up
tc qdisc add dev ifb0 root handle 1: htb
tc qdisc add dev br-lan root handle 1: htb
tc qdisc add dev br-lan handle ffff: ingress
tc filter add dev br-lan parent ffff: protocol ip u32 match u32 0 0 action connmark action mirred egress redirect dev ifb0
There is no filter set for speed limitation。When I deleted qdisc, it worked normally and exceeded 1G (unable to reach 2.5 because hwnat has been turned off):
tc qdisc del dev br-lan handle ffff: ingress
tc qdisc del dev ifb0 root handle 1: htb
tc qdisc del dev br-lan root handle 1: htb