summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-06-24 16:19:19 +0200
committerMohsin Kazmi <sykazmi@cisco.com>2020-06-24 16:20:36 +0200
commit8975dbdf897f67cdf01e2ae612a128d91646dacd (patch)
treeb40479525a9eac0f6102adc433de68cc56045abf /src/vnet/devices
parentf3d7bd9d4d652b1c4b687267acdb9fdb908a74bd (diff)
virtio: fix the vlib buffer flags
Type: fix Change-Id: I92e8e30e4175229e24dd92471016e9095b5cc83e Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices')
-rw-r--r--src/vnet/devices/virtio/node.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/devices/virtio/node.c b/src/vnet/devices/virtio/node.c
index 06641852316..961127141f3 100644
--- a/src/vnet/devices/virtio/node.c
+++ b/src/vnet/devices/virtio/node.c
@@ -229,7 +229,6 @@ virtio_needs_csum (vlib_buffer_t * b0, struct virtio_net_hdr_v1 *hdr,
*l4_hdr_sz = sizeof (*udp);
}
}
-
}
static_always_inline void
@@ -302,6 +301,7 @@ virtio_device_input_gso_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
if (hdr_sz == sizeof (struct virtio_net_hdr_v1))
num_buffers = hdr->num_buffers;
+ b0->flags = VLIB_BUFFER_TOTAL_LENGTH_VALID;
b0->current_data = 0;
b0->current_length = len;
@@ -320,7 +320,6 @@ virtio_device_input_gso_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
vlib_buffer_t *pb, *cb;
pb = b0;
b0->total_length_not_including_first_buffer = 0;
- b0->flags = VLIB_BUFFER_TOTAL_LENGTH_VALID;
while (num_buffers > 1)
{
last++;