diff options
| author | Thomas Graf <[email protected]> | 2013-11-30 13:21:31 +0100 |
|---|---|---|
| committer | Jesse Gross <[email protected]> | 2014-01-06 15:52:06 -0800 |
| commit | aae9f0e22c07f6b97752741156ac0b3637d37a1a (patch) | |
| tree | 164aafabd87e384e55527a37ab67761ef7473c86 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | bb9b18fb55b03477fe5bdd3e97245d6d4d3dee4f (diff) | |
netlink: Avoid netlink mmap alloc if msg size exceeds frame size
An insufficent ring frame size configuration can lead to an
unnecessary skb allocation for every Netlink message. Check frame
size before taking the queue lock and allocating the skb and
re-check with lock to be safe.
Signed-off-by: Thomas Graf <[email protected]>
Reviewed-by: Daniel Borkmann <[email protected]>
Signed-off-by: Jesse Gross <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions