From: Ben Hutchings <bhutchings@solarflare.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi>
Cc: David Miller <davem@davemloft.net>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] dccp: use roundup instead of opencoding
Date: Fri, 05 Dec 2008 21:47:43 +0000 [thread overview]
Message-ID: <1228513664.3520.68.camel@achroite> (raw)
In-Reply-To: <Pine.LNX.4.64.0812052342180.3726@wrl-59.cs.helsinki.fi>
On Fri, 2008-12-05 at 23:43 +0200, Ilpo Järvinen wrote:
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
> ---
> net/dccp/output.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/dccp/output.c b/net/dccp/output.c
> index fea30cd..1b75ece 100644
> --- a/net/dccp/output.c
> +++ b/net/dccp/output.c
> @@ -175,7 +175,7 @@ unsigned int dccp_sync_mss(struct sock *sk, u32 pmtu)
> * make it a multiple of 4
> */
>
> - cur_mps -= ((5 + 6 + 10 + 6 + 6 + 6 + 3) / 4) * 4;
> + cur_mps -= roundup(5 + 6 + 10 + 6 + 6 + 6);
Maybe you should check that with your compiler.
Ben.
> /* And store cached results */
> icsk->icsk_pmtu_cookie = pmtu;
> --
> 1.5.2.2
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2008-12-05 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-05 21:43 [PATCH] dccp: use roundup instead of opencoding Ilpo Järvinen
2008-12-05 21:47 ` Ben Hutchings [this message]
2008-12-05 21:53 ` Ilpo Järvinen
2008-12-06 6:40 ` 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=1228513664.3520.68.camel@achroite \
--to=bhutchings@solarflare.com \
--cc=acme@redhat.com \
--cc=davem@davemloft.net \
--cc=ilpo.jarvinen@helsinki.fi \
--cc=netdev@vger.kernel.org \
/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