From: Patrick McHardy <kaber@trash.net>
To: David Miller <davem@davemloft.net>
Cc: olivier.matz@6wind.com, netdev@vger.kernel.org,
netfilter-devel@vger.kernel.org, kaber@netfilter.org
Subject: Re: [PATCH] sctp: chunkmap size is too large
Date: Mon, 09 Feb 2009 14:50:19 +0100 [thread overview]
Message-ID: <4990349B.30700@trash.net> (raw)
In-Reply-To: <20090201.011427.38305360.davem@davemloft.net>
David Miller wrote:
> From: Olivier MATZ <olivier.matz@6wind.com>
> Date: Fri, 30 Jan 2009 16:43:07 +0100
>
>> I think that the chunkmap field in struct xt_sctp_info is
>> too large: we have 256 chunk types and it's a bitfield,
>> so the table should be 256 bits (8 uint32_t) instead
>> of 64 uint32_t.
>>
>> I updated the size of the table, and I did some cosmetic
>> changes in SCTP_CHUNKMAP_* macros (use a mask instead of
>> a modulo).
>>
>> netfilter/xt_sctp.h | 30 ++++++++++++++++--------------
>> netfilter_ipv4/ipt_sctp.h | 30 ++++++++++++++++--------------
>> 2 files changed, 32 insertions(+), 28 deletions(-)
>>
>> Can someone have a look at it ? Please CC me for any replies
>> as I'm not on the list.
>
> Patrick, I assume you got this?
Sorry for the delay. As Jan already noticed, it changes the ABI,
so we change it without adding a new revision. And I don't think
a few bytes of memory savings justify that.
next prev parent reply other threads:[~2009-02-09 13:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-30 15:43 [PATCH] sctp: chunkmap size is too large Olivier MATZ
2009-02-01 9:14 ` David Miller
2009-02-04 10:12 ` Jan Engelhardt
2009-02-09 13:50 ` Patrick McHardy [this message]
2009-02-02 9:23 ` Olivier MATZ
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=4990349B.30700@trash.net \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=kaber@netfilter.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=olivier.matz@6wind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).