Thread (16 messages) flat view 16 messages, 4 authors, 2022-02-17

Re: [RFC PATCH net-next 1/2] net: dsa: allow setting port-based QoS priority using tc matchall skbedit

From: Vladimir Oltean <olteanv@gmail.com>
Date: 2021-01-14 01:50:22

On Thu, Jan 14, 2021 at 12:41:28AM +0100, Andrew Lunn wrote:
On Wed, Jan 13, 2021 at 05:41:38PM +0200, Vladimir Oltean wrote:
quoted
+	int	(*port_priority_set)(struct dsa_switch *ds, int port,
+				     struct dsa_mall_skbedit_tc_entry *skbedit);
The fact we can turn this on/off suggests there should be a way to
disable this in the hardware, when the matchall is removed. I don't
see any such remove support in this patch.
I don't understand this comment, sorry. When the matchall filter
containing the skbedit action gets removed, DSA calls the driver's
.port_priority_set callback again, this time with a priority of 0.
There's nothing to "remove" about a port priority. I made an assumption
(which I still consider perfectly reasonable) that no port-based
prioritization means that all traffic gets classified to traffic class 0.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help