diff options
author | Mina Almasry <[email protected]> | 2024-11-07 21:03:30 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-11-11 18:11:46 -0800 |
commit | f2685c00c3222305f5b6740a8b16ea044640283a (patch) | |
tree | a049ba3f568400705a6c546dfe4620f034137f70 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 073d89808c065ac4c672c0a613a71b27a80691cb (diff) |
net: fix SO_DEVMEM_DONTNEED looping too long
Exit early if we're freeing more than 1024 frags, to prevent
looping too long.
Also minor code cleanups:
- Flip checks to reduce indentation.
- Use sizeof(*tokens) everywhere for consistentcy.
Cc: Yi Lai <[email protected]>
Signed-off-by: Mina Almasry <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions