mirror of https://github.com/openwrt/openwrt.git
The driver gives a frame it hands to a Wi-Fi netdev from the PPE path the small-packet priority itself, so a short frame has skb->priority 256 + small_pkt_prio when the egress classifier of the netdev sees it. The four u32 filters still run on every such frame, a PSH test and a length test per address family, and each filter is a separate call in the egress chain. Put a first filter in front of them that passes a frame whose priority is above 255, so a stamped frame takes one filter and the rest only see frames that came by the host or that the driver's rule left alone. Frames above 255 now also skip any filter a user put at a higher preference on the same egress. The length test was the high byte of the length field being zero, which is a threshold of 255 whatever small_pkt_len is set to, while the driver stamps a frame whose L3 length is at most small_pkt_len. u32 cannot compare, so the length is a compare ematch: the IPv4 total length is at most small_pkt_len, the IPv6 payload length at most small_pkt_len - 40, which is the driver's count of 40 bytes of header. That needs kmod-sched for the meta and cmp ematches. Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de> Link: https://github.com/openwrt/openwrt/pull/26732 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|---|---|---|
| .. | ||
| firewall | ||
| firewall4 | ||
| gre | ||
| ipip | ||
| ltq-adsl-app | ||
| ltq-vdsl-vr9-app | ||
| ltq-vdsl-vr11-app | ||
| netifd | ||
| qca-ppe-qos | ||
| qos-scripts | ||
| qosify | ||
| soloscli | ||
| swconfig | ||
| vti | ||
| vxlan | ||
| wifi-scripts | ||
| xfrm | ||