l4p: add ability to assign user-data to the stream 58/32558/1
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Thu, 3 Jun 2021 17:38:38 +0000 (17:38 +0000)
committerKonstantin Ananyev <konstantin.ananyev@intel.com>
Thu, 3 Jun 2021 17:38:38 +0000 (17:38 +0000)
commita32eaa3d00beef6bb81e2aadc2088e9a937d1fd0
tree29c5c0daf2e9905578aa0e6732b2de4a68086e6f
parent267cf19de5077e395cc05918159a93e63e8c4a11
l4p: add ability to assign user-data to the stream

Add ability for the user to assign user provided data to the stream.
Right now this user provided 64-bit value is passed as a parameter
for lookup4/lookup6 callbacks.
Another change: change interpretation of lookup4()/lookup6() return value:
<  0: error code (existing behaviour).
== 0: success, TLDK will update L3 header src/dst addresses based on
      tldk dev values (existing behaviour).
>  0: success, TLDK will not update L3 header src/dst addresses, will
      rely on user provided values.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Change-Id: I32521422e0372d79c4b2781dd6fc9740e4ca93ab
app/nginx/src/tldk/be.c
app/nginx/src/tldk/be.h
examples/l4fwd/lcore.h
lib/libtle_l4p/stream.h
lib/libtle_l4p/tcp_stream.c
lib/libtle_l4p/tle_ctx.h
lib/libtle_l4p/tle_tcp.h
test/gtest/test_common.cpp
test/gtest/test_common.h
test/gtest/test_tle_udp_stream_gen.h