netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/4] Fixes for SJA1105 DSA tc-gate action
@ 2020-06-24 13:54 Vladimir Oltean
  2020-06-24 13:54 ` [PATCH net 1/4] net: dsa: sja1105: move sja1105_compose_gating_subschedule at the top Vladimir Oltean
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Vladimir Oltean @ 2020-06-24 13:54 UTC (permalink / raw)
  To: netdev, davem
  Cc: andrew, f.fainelli, vivien.didelot, po.liu, xiaoliang.yang_1,
	kuba

From: Vladimir Oltean <vladimir.oltean@nxp.com>

This small series fixes 2 bugs in the tc-gate implementation:
1. The TAS state machine keeps getting rescheduled even after removing
   tc-gate actions on all ports.
2. tc-gate actions with only one gate control list entry are installed
   to hardware with an incorrect interval of zero, which makes the
   switch erroneously drop those packets (since the configuration is
   invalid).

To keep the code palatable, a forward-declaration was avoided by moving
some code around in patch 1/4. I hope that isn't too much of an issue.

Vladimir Oltean (4):
  net: dsa: sja1105: move sja1105_compose_gating_subschedule at the top
  net: dsa: sja1105: unconditionally free old gating config
  net: dsa: sja1105: recalculate gating subschedule after deleting
    tc-gate rules
  net: dsa: sja1105: fix tc-gate schedule with single element

 drivers/net/dsa/sja1105/sja1105_vl.c | 327 ++++++++++++++-------------
 1 file changed, 167 insertions(+), 160 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-25 23:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-24 13:54 [PATCH net 0/4] Fixes for SJA1105 DSA tc-gate action Vladimir Oltean
2020-06-24 13:54 ` [PATCH net 1/4] net: dsa: sja1105: move sja1105_compose_gating_subschedule at the top Vladimir Oltean
2020-06-24 13:54 ` [PATCH net 2/4] net: dsa: sja1105: unconditionally free old gating config Vladimir Oltean
2020-06-24 13:54 ` [PATCH net 3/4] net: dsa: sja1105: recalculate gating subschedule after deleting tc-gate rules Vladimir Oltean
2020-06-24 13:54 ` [PATCH net 4/4] net: dsa: sja1105: fix tc-gate schedule with single element Vladimir Oltean
2020-06-25 23:07 ` [PATCH net 0/4] Fixes for SJA1105 DSA tc-gate action David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).