diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-01-19 01:29:33 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-01-21 12:03:48 +0100 |
commit | 9e5f41ed6ebe64a789916794626485460078c420 (patch) | |
tree | d2ac3090026ec8929558e88eca533f8787a6ff0b /libtransport/src/hicn/transport/core/connector.h | |
parent | d13d37534d9449dd54277af664310d5f957dc44a (diff) |
- Code style fix
- Improved vpp binary api interface
- Correction in object pool destructor
- Fix error in Memif Connector
Change-Id: Id1dd9219fc1ac0b3717ae019ebff17373bebc635
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/core/connector.h')
-rw-r--r--[-rwxr-xr-x] | libtransport/src/hicn/transport/core/connector.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/core/connector.h b/libtransport/src/hicn/transport/core/connector.h index 14201879c..c5250486c 100755..100644 --- a/libtransport/src/hicn/transport/core/connector.h +++ b/libtransport/src/hicn/transport/core/connector.h @@ -33,7 +33,7 @@ enum class ConnectorType : uint8_t { VPP_CONNECTOR, }; -static constexpr std::size_t packet_size = 2000; +static constexpr std::size_t packet_size = 2048; static constexpr std::size_t queue_size = 4096; static constexpr std::size_t packet_pool_size = 4096; @@ -72,6 +72,10 @@ class Connector { result = packet_pool_.get(); } + if (result.second->isChained()) { + result.second->separateChain(result.second->next(), + result.second->prev()); + } result.second->clear(); return std::move(result.second); } |