diff options
author | Denys Vlasenko <[email protected]> | 2015-09-28 14:34:04 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-09-28 22:52:21 -0700 |
commit | 2103d6b818fcdae15ffa04cf385f770e6c3892c3 (patch) | |
tree | 090a856639c742e94a8553f853a36e821b40fe30 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 06a15f51cf3618e32a73871ee6a547ef7fd902b5 (diff) |
net: sctp: Don't use 64 kilobyte lookup table for four elements
Seemingly innocuous sctp_trans_state_to_prio_map[] array
is way bigger than it looks, since
"[SCTP_UNKNOWN] = 2" expands into "[0xffff] = 2" !
This patch replaces it with switch() statement.
Signed-off-by: Denys Vlasenko <[email protected]>
CC: Vlad Yasevich <[email protected]>
CC: Neil Horman <[email protected]>
CC: Marcelo Ricardo Leitner <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
Acked-by: Marcelo Ricardo Leitner <[email protected]>
Acked-by: Neil Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions