From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 1486F5689 for ; Fri, 30 Jun 2017 13:36:05 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id i127so43094407wma.0 for ; Fri, 30 Jun 2017 04:36:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Tzl2a2FECQbUWliD9s1DbhCchPKBs187HSKsAq5VN1s=; b=c1E+ti6MOF7u/lY4xfu7TnUTNCVJ3D/wPP32Q/UbAc+OizjnyGa0ZSmnaEE504hviF 0Wpq+CLDhsL3ilxzTLbqV/gMkw/MerAZfp0uTLzRo1XAVkar0lTX9PT4e7vnMrPQuJCo WWmElQK+8BowFDhxQIYM/1h1lPFIAGcYYWAXfvCBCC4OBJoBwPRfSHtGP6nDHn/w1Cvt s4DKLDdpalhljdYu07IrZ/qKdXsj+0IudRTrhtio2Yt4oH9cc0SWiCYwJ9cayXwglHKN wr0tutqWxBGgaBQ01CUS7y6q2stWX9t5Y0QPaiq0HloSr/8Lp5VrhVX0o8cRSwnTal4A SYdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Tzl2a2FECQbUWliD9s1DbhCchPKBs187HSKsAq5VN1s=; b=ddp6gJ9SyzPlS5ku0pgU9+964M1/9R84OdKaFEURVWHbabE/xKosyqgl47PWGSkrS9 cq+Mcdx2IcU0aC/SydFFQpkIyxwsxUvm/H/tW1ZFYh5sLL+wbUB0drAjxvsH5JwldZJQ dcWQuZj40mp3m6GnbvYrDgyqPWSdHzwqvoVm/FYdGvOhNa4MB78NRxKSV7Zzc8ZtDkuU eRbsHDVE6G2Jb/nYe79NRaJHpkFjbclJ+wvKEoGI4hfbUp/Iaco23/SzFI87SRTJS8WS 35G4ann9Haz9LMIGOwhsOckesvo+7NYg33sRJOQjmQMJRgBp19yqNSJYMop0pt1lD1G6 n5Lg== X-Gm-Message-State: AKS2vOxjgQFE11FegRpzJepg2kMf/CEXBNcm7cki/WDTgoklkmZ0QTRb XhoR7/Ce9gQy/lUs X-Received: by 10.28.167.207 with SMTP id q198mr5749908wme.36.1498822564770; Fri, 30 Jun 2017 04:36:04 -0700 (PDT) Received: from platinum (2a01cb0c03c651000226b0fffeed02fc.ipv6.abo.wanadoo.fr. [2a01:cb0c:3c6:5100:226:b0ff:feed:2fc]) by smtp.gmail.com with ESMTPSA id j31sm4465645wre.67.2017.06.30.04.36.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Jun 2017 04:36:04 -0700 (PDT) Date: Fri, 30 Jun 2017 13:36:02 +0200 From: Olivier Matz To: Daniel Verkamp Cc: dev@dpdk.org Message-ID: <20170630133602.63d4f9ca@platinum> In-Reply-To: <20170602201213.51143-1-daniel.verkamp@intel.com> References: <20170602200337.50743-1-daniel.verkamp@intel.com> <20170602201213.51143-1-daniel.verkamp@intel.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] ring: use aligned memzone allocation 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: Fri, 30 Jun 2017 11:36:05 -0000 On Fri, 2 Jun 2017 13:12:13 -0700, Daniel Verkamp wrote: > rte_memzone_reserve() provides cache line alignment, but > struct rte_ring may require more than cache line alignment: on x86-64, > it needs 128-byte alignment due to PROD_ALIGN and CONS_ALIGN, which are > 128 bytes, but cache line size is 64 bytes. > > Fixes runtime warnings with UBSan enabled. > > Fixes: d9f0d3a1ffd4 ("ring: remove split cacheline build setting") > > Signed-off-by: Daniel Verkamp Acked-by: Olivier Matz