virtio: use fast-path for ethernet-input if possible 10/36110/5
authorStanislav Zaikin <zstaseg@gmail.com>
Thu, 5 May 2022 10:04:39 +0000 (12:04 +0200)
committerBeno�t Ganne <bganne@cisco.com>
Tue, 27 Jun 2023 08:18:10 +0000 (08:18 +0000)
commit5fe1cf80cad75a2e08450303410fb484cdc708ad
tree1c742252b4185f32f03959831c78731b7994ffa0
parentd96859f09b8fa9bb458d62e43b962f240744b5c3
virtio: use fast-path for ethernet-input if possible

If a frame should be sent to 'ethernet-input' set the
ETH_INPUT_FRAME_F_SINGLE_SW_IF_IDX flag. It will force 'ethernet-input'
to use a fast-path for such frames.
This patch also aligns the behaviour with other input nodes.

Type: improvement

Change-Id: Icff0fa31204d5304a2ea0a4f4e7bc418dedbfe32
Signed-off-by: Stanislav Zaikin <zstaseg@gmail.com>
src/vnet/devices/virtio/node.c