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:

committed by
Damjan Marion

parent
2bae16b238
commit
049a2ea95f
@@ -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 */
|
||||
|
Reference in New Issue
Block a user