aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlex Elder <[email protected]>2021-03-15 16:51:47 -0500
committerDavid S. Miller <[email protected]>2021-03-15 20:41:58 -0700
commit50c62a111c4855510b0d8a2d8e50214172166b61 (patch)
tree7997f86b45446fb8b9e3949205a956ea3af3946f /tools/perf/scripts/python
parent45f3a13c816656c9d3d311880d90286341644d9b (diff)
net: qualcomm: rmnet: simplify some byte order logic
In rmnet_map_ipv4_ul_csum_header() and rmnet_map_ipv6_ul_csum_header() the offset within a packet at which checksumming should commence is calculated. This calculation involves byte swapping and a forced type conversion that makes it hard to understand. Simplify this by computing the offset in host byte order, then converting the result when assigning it into the header field. Signed-off-by: Alex Elder <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions