From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 0F7BD2BB4 for ; Tue, 22 Mar 2016 21:04:24 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id r129so109103581wmr.1 for ; Tue, 22 Mar 2016 13:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=Mayx2EaaJ+wntqQZYNbHM+ITNkZw4ZhsZJUUvpXlpHA=; b=Kk2G2AP9BzaP7kOtRqolDJYGWTaxeOu2bv6v289NgG+CVbcPv8oJPKlpXl0Enhux28 wcIe69gQZ6jv2N1IMmpHIGr5Z/wuxJOubbw4GnCWBwuNlJzuN5Fsefgplvx/55GwHxPz IswCpGEyHPWV9q+jC8e+YjOKUbdEoEPG9Jcg786vUjjE647fCHN2URRTY2FifD/dYrKT AhO6nJYELKjEXbiZSa9qJz3gMQuQmsG7UrU7U5Xszy8wOG7yIDq/5qZq3CFWtmdEd+E9 pSSDjUBe8c84yII77VOA45NIvfmWLhVphuFAentH2T4L7BIlhBmxc+M6LWVU1z+oqVvH zUSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=Mayx2EaaJ+wntqQZYNbHM+ITNkZw4ZhsZJUUvpXlpHA=; b=PNF50Q5V4hyyaFzkqh9sRZ6Tsivg5EEfBJgPc5LzYX163yQGfSiqszTwViEqoYSbQt ghtXQeuksWjCcGkrE2P/NxSE44E0cQDO1UzVCccmWvBtAs4+FeBq38NvuOACOCTPJNRI Tgp5/tsNwsNbs/dVPOrpwSVv/l1JLhyzkC3E3vDbAZ33jLatmaFfTUOKsViWjYPwRwV5 WXQ5yTcwLlS56/dhKpXELwqOjvPGZ9YYKsz4jvVWvi+xA20lzqa8kIGX3TNi347urCoI O6sMkvMsRaYnh+4g1yq84EaGiiNuKHwiMoJSDTbB2WLYN75M5Lko6O1JrFVWT03Vh8Yu traA== X-Gm-Message-State: AD7BkJLuz+dnSKQlbdP/jecXwxVLUCxUNzASa6tzl93VXdI67ok5ne4RdIodxyuyf4kN5FYR X-Received: by 10.194.22.68 with SMTP id b4mr37069854wjf.158.1458677063905; Tue, 22 Mar 2016 13:04:23 -0700 (PDT) Received: from xps13.localnet (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id k124sm18789802wmb.11.2016.03.22.13.04.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2016 13:04:23 -0700 (PDT) From: Thomas Monjalon To: Aaron Conole Cc: dev@dpdk.org, Bruce Richardson Date: Tue, 22 Mar 2016 21:02:43 +0100 Message-ID: <2437487.IsYEmueqI7@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20160225213054.GA14936@bricha3-MOBL3> References: <1456426121-21423-1-git-send-email-aconole@redhat.com> <1456426121-21423-2-git-send-email-aconole@redhat.com> <20160225213054.GA14936@bricha3-MOBL3> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH 1/8] lpm: Fix pointer aliasing issues 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: Tue, 22 Mar 2016 20:04:24 -0000 2016-02-25 21:30, Bruce Richardson: > On Thu, Feb 25, 2016 at 01:48:34PM -0500, Aaron Conole wrote: > > /** > > + * Convert from tbl_entry types to integer types > > + */ > > +static inline uint16_t > > +rte_lpm_tbl24_entry_to_uint16(const struct rte_lpm_tbl24_entry *entry) > > +{ > > + union { > > + uint16_t i; > > + struct rte_lpm_tbl24_entry s; > > + } tbl_entry_u; > > + > > + tbl_entry_u.s = *entry; > > + return tbl_entry_u.i; > > +} > > + > > +static inline uint16_t > > +rte_lpm_tbl8_entry_to_uint16(const struct rte_lpm_tbl8_entry *entry) > > +{ > > + union { > > + uint16_t i; > > + struct rte_lpm_tbl8_entry s; > > + } tbl_entry_u; > > + > > + tbl_entry_u.s = *entry; > > + return tbl_entry_u.i; > > +} > > + > > These two new functions could be reduced to one with the help of patch: > http://dpdk.org/dev/patchwork/patch/9087/ Aaron, any news about a rework of this patch?