From: Eric Dumazet <eric.dumazet@gmail.com>
To: Cong Wang <amwang@redhat.com>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Yuchung Cheng <ycheng@google.com>,
Neal Cardwell <ncardwell@google.com>
Subject: Re: [Patch net-next] tcp_metrics: rearrange fields to avoid holes
Date: Tue, 30 Jul 2013 20:08:10 -0700 [thread overview]
Message-ID: <1375240090.10515.53.camel@edumazet-glaptop> (raw)
In-Reply-To: <1375238905-6423-1-git-send-email-amwang@redhat.com>
On Wed, 2013-07-31 at 10:48 +0800, Cong Wang wrote:
> From: Cong Wang <amwang@redhat.com>
>
> On x86_64, before this patch:
>
> struct tcp_fastopen_metrics {
> u16 mss; /* 0 2 */
> u16 syn_loss:10; /* 2: 6 2 */
>
> /* XXX 6 bits hole, try to pack */
> /* XXX 4 bytes hole, try to pack */
>
> long unsigned int last_syn_loss; /* 8 8 */
> struct tcp_fastopen_cookie cookie; /* 16 17 */
>
> /* size: 40, cachelines: 1, members: 4 */
> /* sum members: 29, holes: 1, sum holes: 4 */
> /* bit holes: 1, sum bit holes: 6 bits */
> /* padding: 7 */
> /* last cacheline: 40 bytes */
> };
>
> after this patch:
>
> struct tcp_fastopen_metrics {
> u16 mss; /* 0 2 */
> u16 syn_loss:10; /* 2: 6 2 */
>
> /* XXX 6 bits hole, try to pack */
>
> struct tcp_fastopen_cookie cookie; /* 4 17 */
>
> /* XXX 3 bytes hole, try to pack */
>
> long unsigned int last_syn_loss; /* 24 8 */
>
> /* size: 32, cachelines: 1, members: 4 */
> /* sum members: 29, holes: 1, sum holes: 3 */
> /* bit holes: 1, sum bit holes: 6 bits */
> /* last cacheline: 32 bytes */
> };
>
> On 32bit, the 4-byte hole should not exist, so this patch probably
> doesn't change anything.
>
> Cc: Eric Dumazet <edumazet@google.com>
> Cc: Yuchung Cheng <ycheng@google.com>
> Cc: Neal Cardwell <ncardwell@google.com>
> Cc: David S. Miller <davem@davemloft.net>
> Signed-off-by: Cong Wang <amwang@redhat.com>
Oh well, this patch is pure noise...
next prev parent reply other threads:[~2013-07-31 3:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-31 2:48 [Patch net-next] tcp_metrics: rearrange fields to avoid holes Cong Wang
2013-07-31 3:08 ` Eric Dumazet [this message]
2013-07-31 3:13 ` Cong Wang
2013-07-31 3:24 ` Eric Dumazet
2013-07-31 3:35 ` Joe Perches
2013-07-31 3:40 ` Cong Wang
2013-07-31 3:37 ` Cong Wang
2013-07-31 3:57 ` Eric Dumazet
2013-07-31 6:26 ` David Miller
2013-08-01 2:48 ` Cong Wang
2013-08-01 7:15 ` David Miller
2013-08-01 8:13 ` Cong Wang
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=1375240090.10515.53.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=amwang@redhat.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=ycheng@google.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