On Thu, Jul 16, 2015 at 02:38:11PM +0200, Nicolas Morey-Chaisemartin wrote: > This reduces the pktio_entry struct from 1344B to 1280B > > Signed-off-by: Nicolas Morey-Chaisemartin <[email protected]>
Reviewed-by: Stuart Haslam <[email protected]> > --- > platform/linux-generic/include/odp_packet_io_internal.h | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/platform/linux-generic/include/odp_packet_io_internal.h > b/platform/linux-generic/include/odp_packet_io_internal.h > index b3e87a5..05e09ad 100644 > --- a/platform/linux-generic/include/odp_packet_io_internal.h > +++ b/platform/linux-generic/include/odp_packet_io_internal.h > @@ -44,9 +44,12 @@ struct pktio_entry { > odp_pktio_t handle; /**< pktio handle */ > odp_queue_t inq_default; /**< default input queue, if set */ > odp_queue_t outq_default; /**< default out queue */ > - pkt_loop_t pkt_loop; /**< Using loopback for IO */ > - pkt_sock_t pkt_sock; /**< using socket API for IO */ > - pkt_sock_mmap_t pkt_sock_mmap; /**< using socket mmap API for IO */ > + union { > + pkt_loop_t pkt_loop; /**< Using loopback for IO */ > + pkt_sock_t pkt_sock; /**< using socket API for IO */ > + pkt_sock_mmap_t pkt_sock_mmap; /**< using socket mmap > + * API for IO */ > + }; > classifier_t cls; /**< classifier linked with this pktio*/ > char name[IF_NAMESIZE]; /**< name of pktio provided to > pktio_open() */ > -- > 2.4.5.3.g4915f6f > _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
