aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorDon Hiatt <[email protected]>2017-10-09 12:38:19 -0700
committerDoug Ledford <[email protected]>2017-10-18 10:12:59 -0400
commitf8195f3b14a046ae33d9c369ffb59b4192f29e08 (patch)
treea7b66fa55b421c40d43c7eed99564d4f726090be /tools/perf/scripts/python/net_dropmonitor.py
parentd0a2f454713a42447ee4007582c0e43c47bcf230 (diff)
IB/hfi1: Eliminate allocation while atomic
The PIO trailing buffer was being dynamically allocated but the kcalloc return value was not being checked. Further, the GFP_KERNEL was being used even though the send engine might be called with interrupts disabled. Since the maximum size of the trailing buffer is only 12 bytes (CRC = 4, LT = 1, Pad = 0 to 7 bytes) just statically allocate the buffer, remove the alloc entirely and share it with the SDMA engine by making it global. Reported-by: Leon Romanovsky <[email protected]> Fixes: 566d53a82644 ("IB/hfi1: Enhance PIO/SDMA send for 16B") Reviewed-by: Mike Marciniszyn <[email protected]> Signed-off-by: Don Hiatt <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions