diff options
author | 2018-02-01 10:46:15 -0800 | |
---|---|---|
committer | 2018-02-01 15:43:28 -0700 | |
commit | f150e2736f346a3171f002e660c3dfc653cc11cd (patch) | |
tree | 72dd1e10ecd6f5566d3d03d7b5362c24ac203ed5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | IB/hfi1: Remove dependence on qp->s_hdrwords (diff) | |
download | linux-dev-f150e2736f346a3171f002e660c3dfc653cc11cd.tar.xz linux-dev-f150e2736f346a3171f002e660c3dfc653cc11cd.zip |
IB/hfi1: Compute BTH only for RDMA_WRITE_LAST/SEND_LAST packet
In hfi1_rc_rcv(), BTH is computed for all packets received.
However, it's only used for packets received with opcodes
RDMA_WRITE_LAST and SEND_LAST, and it is a costly operation.
Compute BTH only in the RDMA_WRITE_LAST/SEND_LAST code path
and let the compiler handle endianness conversion for bitwise
operations.
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions