diff options
author | Dave Barach <dbarach@cisco.com> | 2017-08-30 08:14:03 -0400 |
---|---|---|
committer | Dave Barach <dbarach@cisco.com> | 2017-08-30 08:14:58 -0400 |
commit | e3434397f2533b52aeccb594eb9610e99b556f43 (patch) | |
tree | 89b77d45c0017c2090d428fd101f4ceb79a4837e /src/plugins/dpdk/device | |
parent | 978788903b54a9ecdab045c67f94c4ba79633a9f (diff) |
Offload prep calls needed for IP and UDP checksum offload pkts
Change-Id: I9b29bcff348bddfb49b1c38b1d409249e37bb075
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/dpdk/device')
-rw-r--r-- | src/plugins/dpdk/device/device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c index a247c7c9192..97c136301df 100644 --- a/src/plugins/dpdk/device/device.c +++ b/src/plugins/dpdk/device/device.c @@ -483,7 +483,10 @@ dpdk_interface_tx (vlib_main_t * vm, mb3 = rte_mbuf_from_vlib_buffer (b3); if (PREDICT_FALSE ((xd->flags & DPDK_DEVICE_FLAG_TX_OFFLOAD) && - (or_flags & VNET_BUFFER_F_OFFLOAD_TCP_CKSUM))) + (or_flags & + (VNET_BUFFER_F_OFFLOAD_TCP_CKSUM + | VNET_BUFFER_F_OFFLOAD_IP_CKSUM + | VNET_BUFFER_F_OFFLOAD_UDP_CKSUM)))) { dpdk_buffer_tx_offload (xd, b0, mb0); dpdk_buffer_tx_offload (xd, b1, mb1); |