netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net/sched: use the backlog for nested mirred ingress
@ 2023-01-20 17:01 Davide Caratti
  2023-01-20 17:01 ` [PATCH net-next 1/2] net/sched: act_mirred: better wording on protection against excessive stack growth Davide Caratti
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Davide Caratti @ 2023-01-20 17:01 UTC (permalink / raw)
  To: jhs
  Cc: jiri, lucien.xin, marcelo.leitner, netdev, pabeni, wizhao,
	xiyou.wangcong

TC mirred has a protection against excessive stack growth, but that
protection doesn't really guarantee the absence of recursion, nor
it guards against loops. Patch 1/2 rewords "recursion" to "nesting" to
make this more clear.
We can leverage on this existing mechanism to prevent TCP / SCTP from doing
soft lock-up in some specific scenarios that uses mirred egress->ingress:
patch 2 changes mirred so that the networking backlog is used for nested
mirred ingress actions.


Davide Caratti (2):
  net/sched: act_mirred: better wording on protection against excessive
    stack growth
  act_mirred: use the backlog for nested calls to mirred ingress

 net/sched/act_mirred.c                        | 23 ++++++---
 .../selftests/net/forwarding/tc_actions.sh    | 49 ++++++++++++++++++-
 2 files changed, 63 insertions(+), 9 deletions(-)

-- 
2.38.1


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

end of thread, other threads:[~2023-12-11 15:50 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-20 17:01 [PATCH net-next 0/2] net/sched: use the backlog for nested mirred ingress Davide Caratti
2023-01-20 17:01 ` [PATCH net-next 1/2] net/sched: act_mirred: better wording on protection against excessive stack growth Davide Caratti
2023-01-23 17:22   ` Marcelo Ricardo Leitner
2023-01-23 19:40     ` Jamal Hadi Salim
2023-01-20 17:01 ` [PATCH net-next 2/2] act_mirred: use the backlog for nested calls to mirred ingress Davide Caratti
2023-01-23 17:22   ` Marcelo Ricardo Leitner
2023-01-23 19:41     ` Jamal Hadi Salim
2023-12-04 20:24   ` Mirred broken WAS(Re: " Jamal Hadi Salim
2023-12-05 10:54     ` Davide Caratti
2023-12-05 15:12       ` Jamal Hadi Salim
2023-12-07 14:10         ` Jamal Hadi Salim
2023-12-11 13:07           ` Davide Caratti
2023-12-11 15:50             ` Jamal Hadi Salim
2023-01-24  9:40 ` [PATCH net-next 0/2] net/sched: use the backlog for nested " patchwork-bot+netdevbpf

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).