Re: [PATCH net-next v1 0/5] TC: Introduce qevents
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2020-06-26 22:56:28
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2020-06-26 22:56:28
On Sat, 27 Jun 2020 01:45:24 +0300 Petr Machata [off-list ref] wrote:
The Spectrum hardware allows execution of one of several actions as a result of queue management decisions: tail-dropping, early-dropping, marking a packet, or passing a configured latency threshold or buffer size. Such packets can be mirrored, trapped, or sampled. Modeling the action to be taken as simply a TC action is very attractive, but it is not obvious where to put these actions. At least with ECN marking one could imagine a tree of qdiscs and classifiers that effectively accomplishes this task, albeit in an impractically complex manner. But there is just no way to match on dropped-ness of a packet, let alone dropped-ness due to a particular reason.
Would a BPF based hook be more flexible and reuse more existing infrastructure?