diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2015-09-28 14:34:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-28 22:52:21 -0700 |
commit | 2103d6b818fcdae15ffa04cf385f770e6c3892c3 (patch) | |
tree | 090a856639c742e94a8553f853a36e821b40fe30 /net/sctp/transport.c | |
parent | 06a15f51cf3618e32a73871ee6a547ef7fd902b5 (diff) | |
download | linux-2103d6b818fcdae15ffa04cf385f770e6c3892c3.tar.bz2 |
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 <dvlasenk@redhat.com>
CC: Vlad Yasevich <vyasevich@gmail.com>
CC: Neil Horman <nhorman@tuxdriver.com>
CC: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
CC: linux-sctp@vger.kernel.org
CC: netdev@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/transport.c')
0 files changed, 0 insertions, 0 deletions