Files
openwrt/package/kernel/mt76
Felix Fietkau 0547b912e9 kernel: mtk_eth_soc: query the wireless driver for the TID of flows
Query the wireless driver for the user priority of a flow as the PPE
entry binds and store the answer in the WINFO TID field, unbind the
entries of a station that the wireless driver flushes, and report how
long ago the PPE last hit the entries that match a flow.

An AP learns the priority of an MSCS flow from its uplink frames, and
once the PPE forwards the uplink of a flow, those frames no longer
reach mac80211. Record the station of an entry that the WED receive
path binds, and unbind those entries as well at a flush, so that the
next uplink frame passes mac80211 again. The ppe_check op of WED takes
the station index for this.

The flow key of the wireless driver describes the frames to the
station, so the match callback learns whether an entry carries the
frames of the station. Such an entry is described by its tuple before
NAT, without the MAC addresses of a routed entry, and mt7996 compares
it in the mirrored direction. mt7996 also asks the WED device of the
receive path for the idle time.

Add the flow key and flow description types of the SCS series to the
kernel cfg80211 header, since the PPE driver builds against it while
the wireless driver reads the copy in the mac80211 package. The two
copies are separate definitions, so assert the value of each flow
field, the offset of each field and the size of each structure in both
of them (797-00 and mac80211 subsys patch 483). The PPE code of this
tree keeps L2 subflows in l2_list and clears them with a set_state
flag.

mt76: backport the WED users of the new ops from the mt76 tree. They
implement the flow_prio, flow_flush and flow_idle ops, and pass the
station index to ppe_check, which the WED change requires for mt7915
and mt7996 to build.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
..
…