aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorChristoph Paasch <[email protected]>2024-08-15 09:12:01 -0700
committerJakub Kicinski <[email protected]>2024-08-16 17:53:49 -0700
commitf4ae8420f6ebdabf97e0c4f5f99412768687985f (patch)
tree83c016cf129805a11a6e0024fd99f631604fed5c /tools/perf/scripts/python/stackcollapse.py
parent1c66df862561a11a8ea9b4c97ecfe91983c3bda7 (diff)
mpls: Reduce skb re-allocations due to skb_cow()
mpls_xmit() needs to prepend the MPLS-labels to the packet. That implies one needs to make sure there is enough space for it in the headers. Calling skb_cow() implies however that one wants to change even the playload part of the packet (which is not true for MPLS). Thus, call skb_cow_head() instead, which is what other tunnelling protocols do. Running a server with this comm it entirely removed the calls to pskb_expand_head() from the callstack in mpls_xmit() thus having significant CPU-reduction, especially at peak times. Cc: Roopa Prabhu <[email protected]> Reported-by: Craig Taylor <[email protected]> Signed-off-by: Christoph Paasch <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions