aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <[email protected]>2016-09-20 18:19:13 -0300
committerDavid S. Miller <[email protected]>2016-09-23 06:54:58 -0400
commita3007446e53af07c53bdb4cabad7b3ea60859da4 (patch)
treea518d2ceda19c5548f255cdd1b8d590b789f18b4 /tools/perf/scripts/python/failed-syscalls-by-pid.py
parent21641c2e1ffd0b504610a33beaeab8fcc5140677 (diff)
sctp: fix the handling of SACK Gap Ack blocks
sctp_acked() is using 32bit arithmetics on 16bits vars, via TSN_lte() macros, which is weird and confusing. Once the offset to ctsn is calculated, all wrapping is already handled and thus to verify the Gap Ack blocks we can just use pure less/big-or-equal than checks. Also, rename gap variable to tsn_offset, so it's more meaningful, as it doesn't point to any gap at all. Even so, I don't think this discrepancy resulted in any practical bug. This patch is a preparation for the next one, which will introduce typecheck() for TSN_lte() macros and would cause a compile error here. Suggested-by: David Laight <[email protected]> Reported-by: David Laight <[email protected]> Signed-off-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions