From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f65.google.com (mail-pl0-f65.google.com [209.85.160.65]) by dpdk.org (Postfix) with ESMTP id A76551B2F2 for ; Tue, 13 Feb 2018 17:59:19 +0100 (CET) Received: by mail-pl0-f65.google.com with SMTP id p5so6903887plo.12 for ; Tue, 13 Feb 2018 08:59:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=null-ptr-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=7NcDL3Zgz5u9Gt5mxnUpSKljXltQbeP+dC6t2INJ2ws=; b=GA/tf6EANWye7tatdKPaNtHsbHuods7ir+GC2okrpC//F1VlZZyv/2Kyka9q5jJhOH P0eoPnlZe9u+KmabB6EfkpnOgUiwiUHfQfHvt/8wneb3LVut4Pj76eY4ZV9py0xhQtDR g6QLx8q5sc0qCNVtFobKCuWQ6Zn9hV3WbL3kIKPEIm8Pm/BT0uM7gdyqLmZIk4QDMEyD 6qxHdzHyEl+fr6oXUaW6tn9EP/zTO6oE5f1e2rnIbYPgVhaBj7WtpIzwCDALVoAoIlnM rP89feOj2zCCnKGWL/It1v+COc2cluIoXOYKemMUMJ5L/vr0SH1TY0rj345rEZthU69I 4x+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7NcDL3Zgz5u9Gt5mxnUpSKljXltQbeP+dC6t2INJ2ws=; b=AjNLMdudHdj5Zhc2DitQkW5P+SdNO4xOG1/2KKOl0iLaR05/KgicFMqGIQ3lSx2dga d7mL5F67X5ep3KqgUPpm01Etrifi+2PgRMdpUfgQo075V3+rdxPbashZLVnhQrVClqOJ cT6iCp10oDn/BjgTu3rMMN0gMK4uqpIpuJYG0oQPu142Jivqj25kpjasGOBazUR/Q61R PSowM//yjWT8GBPtHAhfzGhbilNY/tbuiEE7IMSq52zlmSw8fRhpcGzDLYDx3Mt2sZIL Pdfw1ckiAT/LvJjU6k4NHqFQkKF8FTUGIL8WYFe+Dnde/LJ9Z9p40zbpE3gzyYsRUZzl WlqQ== X-Gm-Message-State: APf1xPC5yuz5Ej0LGFWRWP1eI1i5ijAJ8jbD5Dh6JXdUQQ5Xnjp/xtf0 Yo7xOWFjGmZV2uCFhmuNq39VJJo8pys= X-Google-Smtp-Source: AH8x226O0AqqzSzbfcyv7RZFqOaWDoB1NV5LXzulaCOLJzSKYIhQ7Y9qmiezVRtLP0towxuv90rP0A== X-Received: by 2002:a17:902:6041:: with SMTP id a1-v6mr1659096plt.225.1518541158553; Tue, 13 Feb 2018 08:59:18 -0800 (PST) Received: from blacktop.overthere.org (c-73-118-129-89.hsd1.wa.comcast.net. [73.118.129.89]) by smtp.gmail.com with ESMTPSA id i11sm27409594pgq.34.2018.02.13.08.59.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Feb 2018 08:59:18 -0800 (PST) From: Dustin Lundquist To: Remy Horton Cc: dev@dpdk.org, Dustin Lundquist Date: Tue, 13 Feb 2018 08:58:56 -0800 Message-Id: <20180213165856.1729-1-dustin@null-ptr.net> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH v2] example exception_path: cache align per CPU stats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2018 16:59:20 -0000 Align stats structure to cache line to prevent bouncing per CPU stats structure between cache lines. Fixes: af75078fece3 ("first public release") Signed-off-by: Dustin Lundquist --- v2: * Include fixes tag Verified alignment of lcore_stats array elements using gdb. examples/exception_path/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/exception_path/main.c b/examples/exception_path/main.c index 280a50451..3e5b1e718 100644 --- a/examples/exception_path/main.c +++ b/examples/exception_path/main.c @@ -108,7 +108,7 @@ struct stats { uint64_t rx; uint64_t tx; uint64_t dropped; -}; +} __rte_cache_aligned; /* Array of lcore-specific stats */ static struct stats lcore_stats[RTE_MAX_LCORE]; -- 2.11.0