diff options
author | Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> | 2018-05-30 19:13:50 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2018-06-01 23:06:13 +0300 |
commit | ffc3f2bd0059664273425eb0c34411ac5cd88c3e (patch) | |
tree | 7823aca0d30cd56553981091dc0d5bd042ec8ed2 /platform/linux-generic/include/odp_packet_io_internal.h | |
parent | 6582ff6158b7e8380536f83da9b0fc25659e3c36 (diff) |
linux-gen: pktio: add abstract pktio private data storage
In order to encapsulate PktIO private data, add common private data
storage to pktio_entry_t.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_packet_io_internal.h b/platform/linux-generic/include/odp_packet_io_internal.h index 880237a5c..dfcb1bcfc 100644 --- a/platform/linux-generic/include/odp_packet_io_internal.h +++ b/platform/linux-generic/include/odp_packet_io_internal.h @@ -112,6 +112,8 @@ typedef struct { _ipc_map_remote_pool() */ } _ipc_pktio_t; +#define PKTIO_PRIVATE_SIZE 384 + struct pktio_entry { const struct pktio_if_ops *ops; /**< Implementation specific methods */ /* These two locks together lock the whole pktio device */ @@ -133,6 +135,7 @@ struct pktio_entry { pkt_tap_t pkt_tap; /**< using TAP for IO */ _ipc_pktio_t ipc; /**< IPC pktio data */ pkt_null_t pkt_null; /**< using null for IO */ + unsigned char ODP_ALIGNED_CACHE pkt_priv[PKTIO_PRIVATE_SIZE]; }; enum { /* Not allocated */ |