From e347acbc31111504c015531e8ad764a86d489309 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Mon, 28 Sep 2020 10:26:33 +0000 Subject: virtio: add packet buffering on tx Type: feature This patch adds packet buffering on tx for slow backend which have some jitter/delays in freeing the vrings. There are some limitations to the current design: 1) It only works in poll mode. 2) Atleast 1 rx queue of an interface (with buffering enabled) should be placed on each worker and main thread. Signed-off-by: Mohsin Kazmi Change-Id: Ib93c350298b228e80426e58ac77f3bbc93b8be27 --- src/vnet/devices/virtio/virtio.api | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/devices/virtio/virtio.api') diff --git a/src/vnet/devices/virtio/virtio.api b/src/vnet/devices/virtio/virtio.api index 3c8aed2e159..bbe2341a001 100644 --- a/src/vnet/devices/virtio/virtio.api +++ b/src/vnet/devices/virtio/virtio.api @@ -62,6 +62,7 @@ enum virtio_flags { VIRTIO_API_FLAG_GRO_COALESCE = 4, /* enable packet coalescing on tx side, provided gso enabled */ VIRTIO_API_FLAG_PACKED = 8, /* enable packed ring support, provided it is available from backend */ VIRTIO_API_FLAG_IN_ORDER = 16, /* enable in order support, provided it is available from backend */ + VIRTIO_API_FLAG_BUFFERING = 32 [backwards_compatible], /* enable buffering to handle backend jitter/delays */ }; /** \brief Initialize a new virtio pci interface with the given parameters -- cgit 1.2.3-korg