virtio: improve the inline of clib_memcpy_fast

Type: refactor

Change-Id: Ia13a9cf6480aac280f3d287c59908e84c29c3443
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
This commit is contained in:
Mohsin Kazmi
2021-11-11 19:17:27 +01:00
committed by Damjan Marion
parent 2bae16b238
commit 049a2ea95f

View File

@@ -371,7 +371,7 @@ virtio_device_input_gso_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
tr->next_index = next0;
tr->hw_if_index = vif->hw_if_index;
tr->len = len;
clib_memcpy_fast (&tr->hdr, hdr, hdr_sz);
clib_memcpy_fast (&tr->hdr, hdr, (hdr_sz == 12) ? 12 : 10);
}
/* enqueue buffer */