aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2021-05-17 20:03:58 +0300
committerDavid S. Miller <[email protected]>2021-05-17 15:15:46 -0700
commit8c2b58e65d0186af5f73c7b78e46b798166d7f68 (patch)
tree78fcdac003feb56d1d26ba4cccf705f5f6f968d0 /tools/perf/scripts/python
parent837ec05cfea08284c575e8e834777b107da5ff9d (diff)
mlxsw: core: Avoid unnecessary EMAD buffer copy
mlxsw_emad_transmit() takes care of sending EMAD transactions to the device. Since these transactions can time out, the driver performs up to 5 retransmissions, each time copying the skb with the original request. The data of the skb does not change throughout the process, so there is no need to copy it each time. Instead, only the skb itself can be copied. Therefore, use skb_clone() instead of skb_copy(). This reduces the latency of the function by about 16%. Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions