public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail•com>
To: Denys Vlasenko <dvlasenk@redhat•com>
Cc: "David S. Miller" <davem@davemloft•net>,
	Vlad Yasevich <vyasevich@gmail•com>,
	Neil Horman <nhorman@tuxdriver•com>,
	linux-sctp@vger•kernel.org, netdev@vger•kernel.org,
	linux-kernel@vger•kernel.org
Subject: Re: [PATCH v2] net: sctp: Don't use 64 kilobyte lookup table for four elements
Date: Mon, 28 Sep 2015 09:42:03 -0300	[thread overview]
Message-ID: <20150928124203.GB24740@localhost.localdomain> (raw)
In-Reply-To: <1443443644-12825-1-git-send-email-dvlasenk@redhat.com>

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>

  reply	other threads:[~2015-09-28 12:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-28 12:34 [PATCH v2] net: sctp: Don't use 64 kilobyte lookup table for four elements Denys Vlasenko
2015-09-28 12:42 ` Marcelo Ricardo Leitner [this message]
2015-09-28 13:51 ` Neil Horman
2015-09-28 14:12   ` David Laight
2015-09-28 14:27     ` Eric Dumazet
2015-09-28 15:32       ` David Laight
2015-09-28 17:24         ` Denys Vlasenko
2015-09-29  5:52 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150928124203.GB24740@localhost.localdomain \
    --to=marcelo.leitner@gmail$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=dvlasenk@redhat$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-sctp@vger$(echo .)kernel.org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=nhorman@tuxdriver$(echo .)com \
    --cc=vyasevich@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox