Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
895def4
)
dpdk: fix checksum offload
38/33738/1
author
Florin Coras
<fcoras@cisco.com>
Fri, 17 Sep 2021 03:50:12 +0000
(20:50 -0700)
committer
Florin Coras
<fcoras@cisco.com>
Fri, 17 Sep 2021 03:50:12 +0000
(20:50 -0700)
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I89fb738903ee74ffcb7c77a041391f0388df6991
src/plugins/dpdk/device/device.c
patch
|
blob
|
history
diff --git
a/src/plugins/dpdk/device/device.c
b/src/plugins/dpdk/device/device.c
index
095036f
..
b29c80c
100644
(file)
--- a/
src/plugins/dpdk/device/device.c
+++ b/
src/plugins/dpdk/device/device.c
@@
-259,8
+259,7
@@
dpdk_buffer_tx_offload (dpdk_device_t * xd, vlib_buffer_t * b,
}
else
{
- mb->l2_len =
- vnet_buffer (b)->l3_hdr_offset - vnet_buffer (b)->l2_hdr_offset;
+ mb->l2_len = vnet_buffer (b)->l3_hdr_offset - b->current_data;
mb->l3_len =
vnet_buffer (b)->l4_hdr_offset - vnet_buffer (b)->l3_hdr_offset;
mb->outer_l2_len = 0;