From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by dpdk.org (Postfix) with ESMTP id 744481B2C8 for ; Tue, 13 Feb 2018 04:44:01 +0100 (CET) Received: by mail-pl0-f67.google.com with SMTP id k8so6026565pli.8 for ; Mon, 12 Feb 2018 19:44:01 -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=LjOEXi1B3nbgagcAFIKDb5axr5i2AvK1BJr8Tvx1fxc=; b=dL0NAFmn7UstXutwUguUVrbBNDRrL1zv9Vxcp9RVSxm5643OabwAY3U3ZurdsDqJCS aL1oZOBaJLMvCT/c79Z5yLOL82IBNHIjfQCZIS5BmFD/OzJJ6NzfWNbj8kLsOEWl7w0Y RYv15hKn96V5kOfhrwtCaiG1EQKkfTkiFGYUnZRR7L0MSG3+ssI8thd3xdazk87yUa6u WeWKN6+ccxcDXxy9lN5x2U4N1lIzcqdw8kGeE5k2WWo1SAXouU5/FwX2bpjfOTWJGILq jv1tKvQSWWFl206H675+ur1Env3FnomD46Q08xZSmNpuqwqoJxQ3b+EhWWnupXfTLvpU A2bQ== 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=LjOEXi1B3nbgagcAFIKDb5axr5i2AvK1BJr8Tvx1fxc=; b=IawHmfh7ykcfote66an3Q4VJaZJy1F4WBSSLQZOOWcsUbbBjT5tJPKIb4Js5ZI9Roc 59FJjeC1kxoy0cIxdWWC3ntd1iWllp9UiGrBh0UG2K5KgyGVdJSvkban0UP07/taYkxH s5uTcSXaaTNc3nvTsQpTNNNDBBkPJQtls7uV+ARiMIndUj4HEN44oNFdDkUOjjhqG924 Ex3hHXbawAtmmA4Bdf2IGu4gYguk1Cyk84/4pspgKhL9UUF01/kzwq1szXKLCCz7dBgL ySBVP7FEkSZU7/0Jz+YxWUL+byHKnZs3fu9tswqApxlg7uRgeQcqWDxAwpG8H94dDDRS a40g== X-Gm-Message-State: APf1xPBDfq/ZMwvejGl/BIf90vnCdUyzM9P9sWTI6Z+Sn3pEoTdFPh3z 83dLpBqhJWsH5rK0VZjjMkTCIg== X-Google-Smtp-Source: AH8x224npuuQa/pnRMMI1tNAfQYDG7UR0RRAMSwVS9P7CbOunlQ4UxrvnW/wJo98zb9KTNMecfKdTA== X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr12689264plb.342.1518493440536; Mon, 12 Feb 2018 19:44:00 -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 n1sm26390224pge.19.2018.02.12.19.43.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 19:44:00 -0800 (PST) From: Dustin Lundquist To: Remy Horton Cc: dev@dpdk.org, Dustin Lundquist Date: Mon, 12 Feb 2018 19:43:17 -0800 Message-Id: <20180213034317.28219-1-dustin@null-ptr.net> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] 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 03:44:01 -0000 Align stats structure to cache line to prevent bouncing per CPU stats structure between cache lines. Signed-off-by: Dustin Lundquist --- 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