diff options
author | Mauro Sardara <msardara@cisco.com> | 2020-11-09 19:56:31 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2020-11-10 12:34:12 +0000 |
commit | f87f19fa389a1edea861faaabc972d508a58985c (patch) | |
tree | 9305042a486c234e61d048ea43f59fc36da63147 /libtransport | |
parent | c1de1ea148175650dfeab648d946e3266fdee117 (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.h | 3 |
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()); } |