From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Conole Subject: Re: [PATCH 1/8] lpm: Fix pointer aliasing issues Date: Tue, 22 Mar 2016 16:47:06 -0400 Message-ID: References: <1456426121-21423-1-git-send-email-aconole@redhat.com> <1456426121-21423-2-git-send-email-aconole@redhat.com> <20160225213054.GA14936@bricha3-MOBL3> <2437487.IsYEmueqI7@xps13> Mime-Version: 1.0 Content-Type: text/plain Cc: dev@dpdk.org, Bruce Richardson To: Thomas Monjalon Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 1D1794AC7 for ; Tue, 22 Mar 2016 21:47:09 +0100 (CET) In-Reply-To: <2437487.IsYEmueqI7@xps13> (Thomas Monjalon's message of "Tue, 22 Mar 2016 21:02:43 +0100") List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thomas Monjalon writes: > 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? The rework of this series is in my TODO list with deadline of Thursday. I'll repost the series before then. Sorry for the confusion/delay. -Aaron