diff options
author | Andrew Boyer <andrew.boyer@dell.com> | 2016-11-23 20:39:21 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-13 00:31:45 +0300 |
commit | d4fb59256ac03d84f68e36c430b58d6fc76dd651 (patch) | |
tree | 439d45878decc2d4ea3eed161be54dffb034d87f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d38eb801aa145aedf4b97e8e0bb2e65763aa6149 (diff) | |
download | linux-d4fb59256ac03d84f68e36c430b58d6fc76dd651.tar.xz |
IB/rxe: Add support for zero-byte operations
The last_psn algorithm fails in the zero-byte case: it calculates
first_psn = N, last_psn = N-1. This makes the operation unretryable since
the res structure will fail the (first_psn <= psn <= last_psn) test in
find_resource().
While here, use BTH_PSN_MASK to mask the calculated last_psn.
Signed-off-by: Andrew Boyer <andrew.boyer@dell.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions