[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150928.225242.1547755659279670596.davem@davemloft.net>
Date: Mon, 28 Sep 2015 22:52:42 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dvlasenk@...hat.com
Cc: vyasevich@...il.com, nhorman@...driver.com,
marcelo.leitner@...il.com, linux-sctp@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] net: sctp: Don't use 64 kilobyte lookup table for
four elements
From: Denys Vlasenko <dvlasenk@...hat.com>
Date: Mon, 28 Sep 2015 14:34:04 +0200
> 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@...hat.com>
Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists