diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2021-11-11 19:17:27 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-11-12 12:37:20 +0000 |
commit | 049a2ea95fb63a54d31e09d350305207315a9f6e (patch) | |
tree | 324d77d14d59b6ce39f690321b597db2bdd541e1 /src/vnet/devices | |
parent | 2bae16b238bdc446c865ce79508c0d2e2c710f16 (diff) |
virtio: improve the inline of clib_memcpy_fast
Type: refactor
Change-Id: Ia13a9cf6480aac280f3d287c59908e84c29c3443
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices')
-rw-r--r-- | src/vnet/devices/virtio/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/devices/virtio/node.c b/src/vnet/devices/virtio/node.c index ab5702184c2..9c4ea90df3b 100644 --- a/src/vnet/devices/virtio/node.c +++ b/src/vnet/devices/virtio/node.c @@ -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 */ |