|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH v3 3/4] drivers/virtio: virtio_netdev_recv(): Remove disabling interrupts
Hello Simon, This patch is fine. Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx> Thanks & Regards Sharan On 1/31/19 1:04 AM, Simon Kuenzer wrote: Disabling interrupts by virtio_netdev_recv() is not needed because in normal cases they are already disabled by the internal receive interrupt handler, right before a uknetdev API program can call the receive function. When the device is used in pure polling mode, queue interrutps are never enabled. We remove this step because of performance reasons. An assertion is making sure that the API is used as intended. Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> --- lib/uknetdev/include/uk/netdev.h | 8 +++++++- plat/drivers/virtio/virtio_net.c | 6 ++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/uknetdev/include/uk/netdev.h b/lib/uknetdev/include/uk/netdev.h index 88b89135..6b17b469 100644 --- a/lib/uknetdev/include/uk/netdev.h +++ b/lib/uknetdev/include/uk/netdev.h @@ -422,7 +422,13 @@ static inline int uk_netdev_rxq_intr_disable(struct uk_netdev *dev, }/** _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |