aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBen Dooks <[email protected]>2018-11-14 11:50:20 +0000
committerDavid S. Miller <[email protected]>2018-11-16 20:16:19 -0800
commit0c8b26556c6f6abf84bca67ce2c2e010953bba81 (patch)
tree1c55bba33cb2a24586f7312362d427ee7d71b304 /tools/perf/scripts/python
parent810eeb1f41a9a272eedc94ca18c072e75678ede4 (diff)
usbnet: smsc95xx: simplify tx_fixup code
The smsc95xx_tx_fixup is doing multiple calls to skb_push() to put an 8-byte command header onto the packet. It would be easier to do one skb_push() and then copy the data in once the push is done. We also make the code smaller by using proper unaligned puts for the header. This merges in the CPU to LE32 conversion as well and makes the whole sequence easier to understand hopefully. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions