Skip to content

net: openvswitch: Reduce stack usage

Nicholas Piggin netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7net: openvswitch: generalise the per-cpu flow key allocation stacknet/openvswitch/actions.c+72 -320 replies
2/7net: openvswitch: Use flow key allocator in ovs_vport_receivenet/openvswitch/actions.c net/openvswitch/flow.h net/openvswitch/vport.c+26 -100 replies
3/7openvswitch: reduce stack usage in do_execute_actionsnet/openvswitch/actions.c+11 -120 replies
4/7net: openvswitch: Reduce push_nsh stack usagenet/openvswitch/actions.c+8 -20 replies
5/7net: openvswitch: uninline action executionnet/openvswitch/actions.c+38 -310 replies
6/7net: openvswitch: uninline ovs_fragment to control stack usagenet/openvswitch/actions.c+3 -30 replies
7/7net: openvswitch: Reduce stack usage in ovs_dp_process_packetnet/openvswitch/datapath.c+32 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] net: openvswitch: Reduce stack usage

Hi,

I'll post this out again to keep discussion going. Thanks all for the testing and comments so far.

Changes since the RFC
https://lore.kernel.org/netdev/[email protected]/

- Replace slab allocations for flow keys with expanding the use of the per-CPU key allocator to ovs_vport_receive.

- Drop patch 1 with Ilya's since they did the same thing (that is added at patch 3).

- Change push_nsh stack reduction from slab allocation to per-cpu buffer.

- Drop the ovs_fragment stack usage reduction for now sinc it used slab and was a bit more complicated.

I posted an initial version of the per-cpu flow allocator patch in the RFC thread. Since then I cleaned up some debug code and increased the allocator size to accommodate the additional user of it.

Thanks,
Nick

Ilya Maximets (1):
openvswitch: reduce stack usage in do_execute_actions

Nicholas Piggin (6):
net: openvswitch: generalise the per-cpu flow key allocation stack
net: openvswitch: Use flow key allocator in ovs_vport_receive
net: openvswitch: Reduce push_nsh stack usage
net: openvswitch: uninline action execution
net: openvswitch: uninline ovs_fragment to control stack usage
net: openvswitch: Reduce stack usage in ovs_dp_process_packet

 net/openvswitch/actions.c  | 208 +++++++++++++++++++++++--------------
 net/openvswitch/datapath.c |  56 +++++-----
 net/openvswitch/flow.h     |   3 +
 net/openvswitch/vport.c    |  27 +++--
 4 files changed, 185 insertions(+), 109 deletions(-)
Signature · 1 line
2.42.0