Messages in this thread | | | Date | Mon, 28 Sep 2015 09:42:03 -0300 | From | Marcelo Ricardo Leitner <> | Subject | Re: [PATCH v2] net: sctp: Don't use 64 kilobyte lookup table for four elements |
| |
On Mon, Sep 28, 2015 at 02:34:04PM +0200, Denys Vlasenko wrote: > 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>
| |