diff options
author | Nicolas Morey-Chaisemartin <nmorey@kalray.eu> | 2015-07-16 14:38:11 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-07-17 13:18:11 +0300 |
commit | 3f12ab51b8c0020bdc7ac64102349bf8f62ab652 (patch) | |
tree | 3ba43de0cd36553fba0dd2b4c94baee5529a80ef /platform/linux-generic/include/odp_packet_io_internal.h | |
parent | d2b3247f56570cdeee0da660075bbe2fb8647d90 (diff) |
linux-generic: pktio: merge all pktio type structure into an anonymous union
This reduces the pktio_entry struct from 1344B to 1280B
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp_packet_io_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_packet_io_internal.h | 9 |
1 files 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 e66b86804..f23093686 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() */ |