virtio: improve input node performance 33/29533/2
authorDamjan Marion <damarion@cisco.com>
Mon, 19 Oct 2020 15:15:58 +0000 (17:15 +0200)
committerDamjan Marion <dmarion@me.com>
Wed, 21 Oct 2020 11:00:12 +0000 (11:00 +0000)
commitd96b28ac0917cedddf2680e1501c101d9df91c6a
tree7ef6ab72ab2cf96501d4201305b525945970b467
parentdc18124e6c7ecc129a886132c4cdacd8105321b3
virtio: improve input node performance

 - Avoid feature arc lookup per packet, as all packets belong to the
   same interface

 - don't validate enqueue for l2 packets, as they all have same
   destionation

Type: improvement
Change-Id: I32ddd801f219eab9281736abafdc91a4ff9e0989
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vnet/devices/virtio/node.c