aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-11-09 19:56:31 +0100
committerMauro Sardara <msardara@cisco.com>2020-11-10 12:34:12 +0000
commitf87f19fa389a1edea861faaabc972d508a58985c (patch)
tree9305042a486c234e61d048ea43f59fc36da63147 /libtransport
parentc1de1ea148175650dfeab648d946e3266fdee117 (diff)
[HICN-651] Offload checksum computation to VPP.
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I42d69455542f3def0076fe58020f8f10347ef83f
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/src/core/forwarder_interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libtransport/src/core/forwarder_interface.h b/libtransport/src/core/forwarder_interface.h
index 3b016c4bb..772cfbb52 100644
--- a/libtransport/src/core/forwarder_interface.h
+++ b/libtransport/src/core/forwarder_interface.h
@@ -95,7 +95,10 @@ class ForwarderInterface {
packet.setLocator(inet6_address_);
}
+#ifndef __vpp__
+ /* In the case of VPP we try to offload checksum computation to hardware */
packet.setChecksum();
+#endif
connector_.send(packet.acquireMemBufReference());
}