All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Du, Fan" <fan.du@intel.com>
To: Eric Dumazet <eric.dumazet@gmail.com>,
	Stephen Hemminger <stephen@networkplumber.org>,
	David Miller <davem@davemloft.net>
Cc: Kenneth Klette Jonassen <kennetkl@ifi.uio.no>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	David Hayes <davihay@ifi.uio.no>,
	Yuchung Cheng <ycheng@google.com>,
	Andreas Petlund <apetlund@simula.no>,
	"Du, Fan" <fan.du@intel.com>
Subject: RE: [PATCH net] inet: properly align icsk_ca_priv
Date: Tue, 19 May 2015 02:36:48 +0000	[thread overview]
Message-ID: <5A90DA2E42F8AE43BC4A093BF0678848E5D166@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <1431993974.621.50.camel@edumazet-glaptop2.roam.corp.google.com>



>-----Original Message-----
>From: Eric Dumazet [mailto:eric.dumazet@gmail.com]
>Sent: Tuesday, May 19, 2015 8:06 AM
>To: Stephen Hemminger; Du, Fan; David Miller
>Cc: Kenneth Klette Jonassen; netdev@vger.kernel.org; David Hayes; Yuchung
>Cheng; Andreas Petlund
>Subject: [PATCH net] inet: properly align icsk_ca_priv
>
>From: Eric Dumazet <edumazet@google.com>
>
>tcp_illinois and upcoming tcp_cdg require 64bit alignment of
>icsk_ca_priv
>
>x86 does not care, but other architectures might.
>
>Fixes: 05cbc0db03e82 ("ipv4: Create probe timer for tcp PMTU as per RFC4821")

If you mean this:
Before commit 05cbc0db03e82 ("ipv4: Create probe timer for tcp PMTU as per RFC4821")
        struct {
                int                enabled;              /*  1152     4 */
                int                search_high;          /*  1156     4 */
                int                search_low;           /*  1160     4 */
                int                probe_size;           /*  1164     4 */
        } icsk_mtup;                                     /*  1152    16 */
        u32                        icsk_ca_priv[16];     /*  1168    64 */      <-- 1168/6 = 146
        /* --- cacheline 19 boundary (1216 bytes) was 16 bytes ago --- */
        u32                        icsk_user_timeout;    /*  1232     4 */

        /* size: 1240, cachelines: 20, members: 23 */
        /* padding: 4 */
        /* last cacheline: 24 bytes */
};


After commit 05cbc0db03e82 ("ipv4: Create probe timer for tcp PMTU as per RFC4821")

        struct {
                int                enabled;              /*  1152     4 */
                int                search_high;          /*  1156     4 */
                int                search_low;           /*  1160     4 */
                int                probe_size;           /*  1164     4 */
                u32                probe_timestamp;      /*  1168     4 */
        } icsk_mtup;                                     /*  1152    20 */
        u32                        icsk_ca_priv[16];     /*  1172    64 */        <-- 1172/6 = 146.5
        /* --- cacheline 19 boundary (1216 bytes) was 20 bytes ago --- */
        u32                        icsk_user_timeout;    /*  1236     4 */

        /* size: 1240, cachelines: 20, members: 23 */
        /* last cacheline: 24 bytes */
};

Acked-by: Fan Du <fan.du@intel.com>


>Signed-off-by: Eric Dumazet <edumazet@google.com>
>Cc: Fan Du <fan.du@intel.com>
>---
> include/net/inet_connection_sock.h |    5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
>diff --git a/include/net/inet_connection_sock.h
>b/include/net/inet_connection_sock.h
>index
>48a8158235874b1625c65651b0bd92eedd999fe5..497bc14cdb85f4f8b33da8fbe7
>aba9d491df50e2 100644
>--- a/include/net/inet_connection_sock.h
>+++ b/include/net/inet_connection_sock.h
>@@ -129,9 +129,10 @@ struct inet_connection_sock {
>
> 		u32		  probe_timestamp;
> 	} icsk_mtup;
>-	u32			  icsk_ca_priv[16];
> 	u32			  icsk_user_timeout;
>-#define ICSK_CA_PRIV_SIZE	(16 * sizeof(u32))
>+
>+	u64			  icsk_ca_priv[64 / sizeof(u64)];
>+#define ICSK_CA_PRIV_SIZE      (8 * sizeof(u64))
> };
>
> #define ICSK_TIME_RETRANS	1	/* Retransmit timer */
>


  reply	other threads:[~2015-05-19  2:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-17 20:31 [RFC PATCH net-next] tcp: add CDG congestion control Kenneth Klette Jonassen
2015-05-18  1:46 ` Eric Dumazet
2015-06-04 15:41   ` Kenneth Klette Jonassen
2015-05-18 20:24 ` Yuchung Cheng
2015-06-04 16:19   ` Kenneth Klette Jonassen
2015-06-04 16:27     ` Dave Taht
2015-05-18 22:16 ` Stephen Hemminger
2015-05-19  0:06   ` [PATCH net] inet: properly align icsk_ca_priv Eric Dumazet
2015-05-19  2:36     ` Du, Fan [this message]
2015-05-19  4:29     ` David Miller
2015-06-04 15:37   ` [RFC PATCH net-next] tcp: add CDG congestion control Kenneth Klette Jonassen

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=5A90DA2E42F8AE43BC4A093BF0678848E5D166@SHSMSX104.ccr.corp.intel.com \
    --to=fan.du@intel.com \
    --cc=apetlund@simula.no \
    --cc=davem@davemloft.net \
    --cc=davihay@ifi.uio.no \
    --cc=eric.dumazet@gmail.com \
    --cc=kennetkl@ifi.uio.no \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.