diff options
author | Maxim Uvarov <maxim.uvarov@linaro.org> | 2018-05-03 16:52:58 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2018-05-03 16:53:12 +0300 |
commit | 2c851db2a527ad0ed7cc08baa0665b1e2ca68dcf (patch) | |
tree | feb32edd691a0763d7862cc313a01866879a519a /platform/linux-generic/include/odp_packet_netmap.h | |
parent | 8800ca1e6dd3b3d595f4c82721ea5b131f23262a (diff) | |
parent | 19c1fb8b49e61de90ae4bab82d89e1dbcc3fa577 (diff) |
Merge branch 'dev/cleanup' of git://github.com/matiaselo/odp-dpdkv1.19.0.0_DPDK_17.11_tigermothv1.19.0.0_DPDK_17.11tigermoth_lts
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp_packet_netmap.h')
-rw-r--r-- | platform/linux-generic/include/odp_packet_netmap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_packet_netmap.h b/platform/linux-generic/include/odp_packet_netmap.h index bb81f5f85..bd3efdcf5 100644 --- a/platform/linux-generic/include/odp_packet_netmap.h +++ b/platform/linux-generic/include/odp_packet_netmap.h @@ -19,6 +19,12 @@ #define NM_MAX_DESC 64 +/** netmap runtime configuration options */ +typedef struct { + int nr_rx_slots; + int nr_tx_slots; +} netmap_opt_t; + /** Ring for mapping pktin/pktout queues to netmap descriptors */ struct netmap_ring_t { unsigned first; /**< Index of first netmap descriptor */ @@ -61,6 +67,7 @@ typedef struct { netmap_ring_t rx_desc_ring[PKTIO_MAX_QUEUES]; /** mapping of pktout queues to netmap tx descriptors */ netmap_ring_t tx_desc_ring[PKTIO_MAX_QUEUES]; + netmap_opt_t opt; /**< options */ } pkt_netmap_t; #endif |