From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 52705B392 for ; Mon, 8 Sep 2014 12:12:16 +0200 (CEST) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XQw32-0007gw-8E; Mon, 08 Sep 2014 12:19:51 +0200 Message-ID: <540D8222.3050800@6wind.com> Date: Mon, 08 Sep 2014 12:17:06 +0200 From: Olivier MATZ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Bruce Richardson , dev@dpdk.org References: <1409759378-10113-1-git-send-email-bruce.richardson@intel.com> <1409759378-10113-3-git-send-email-bruce.richardson@intel.com> In-Reply-To: <1409759378-10113-3-git-send-email-bruce.richardson@intel.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 02/13] mbuf: reorder fields by time of use X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 10:12:16 -0000 Hi Bruce, On 09/03/2014 05:49 PM, Bruce Richardson wrote: > * Reorder the fields in the mbuf so that we have fields that are used$ > together side-by-side in the structure. This means that we have a$ > contiguous block of 8-bytes in the mbuf which are used to reset an mbuf$ > of descriptor rearm, and a block of 16-bytes of data (excluding flags) > which are set on RX from the received packet descriptor. Some unwanted $ characters here. > * Use dummy fields as appropraite to ensure alignment or to reserve gaps > for later field additions. s/appropraite/appropriate > * Place most items which are not used by fast-path RX separately at the end > of the structure so they can later be moved to a separate cache line. > [The l2/l3 length fields are not moved at this stage as doing so will > cause overflow to the next cache line]. > > Signed-off-by: Bruce Richardson Acked-by: Olivier Matz