[dpdk-dev] [PATCH 1/8] lpm: Fix pointer aliasing issues

2016-03-22 Thread Thomas Monjalon
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 {

[dpdk-dev] [PATCH 1/8] lpm: Fix pointer aliasing issues

2016-03-22 Thread Aaron Conole
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_ent

[dpdk-dev] [PATCH 1/8] lpm: Fix pointer aliasing issues

2016-02-25 Thread Bruce Richardson
On Thu, Feb 25, 2016 at 01:48:34PM -0500, Aaron Conole wrote: > The current implementation attempts to use a uint16_t to alias the lpm table > structures. Such aliasing can break optimizer performance. This patch uses > union type indirection and adds static inline functions for performing the > al

[dpdk-dev] [PATCH 1/8] lpm: Fix pointer aliasing issues

2016-02-25 Thread Aaron Conole
Hi Bruce, Bruce Richardson writes: > On Thu, Feb 25, 2016 at 01:48:34PM -0500, Aaron Conole wrote: >> The current implementation attempts to use a uint16_t to alias the lpm table >> structures. Such aliasing can break optimizer performance. This patch uses >> union type indirection and adds stat

[dpdk-dev] [PATCH 1/8] lpm: Fix pointer aliasing issues

2016-02-25 Thread Aaron Conole
The current implementation attempts to use a uint16_t to alias the lpm table structures. Such aliasing can break optimizer performance. This patch uses union type indirection and adds static inline functions for performing the aliasing. Signed-off-by: Aaron Conole --- lib/librte_lpm/rte_lpm.h |