From mboxrd@z Thu Jan 1 00:00:00 1970 From: xiangxia.m.yue@gmail.com Subject: [REBASE PATCH net-next v9 0/4] net: vhost: improve performance when enable busyloop Date: Tue, 25 Sep 2018 05:36:48 -0700 Message-ID: <1537879012-20859-1-git-send-email-xiangxia.m.yue@gmail.com> Cc: netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, Tonghao Zhang To: jasowang@redhat.com, mst@redhat.com, makita.toshiaki@lab.ntt.co.jp, davem@davemloft.net Return-path: Received: from mail-pg1-f194.google.com ([209.85.215.194]:36871 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728588AbeIYSoY (ORCPT ); Tue, 25 Sep 2018 14:44:24 -0400 Received: by mail-pg1-f194.google.com with SMTP id c10-v6so4473334pgq.4 for ; Tue, 25 Sep 2018 05:37:02 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: From: Tonghao Zhang This patches improve the guest receive performance. On the handle_tx side, we poll the sock receive queue at the same time. handle_rx do that in the same way. For more performance report, see patch 4 Tonghao Zhang (4): net: vhost: lock the vqs one by one net: vhost: replace magic number of lock annotation net: vhost: factor out busy polling logic to vhost_net_busy_poll() net: vhost: add rx busy polling in tx path drivers/vhost/net.c | 147 +++++++++++++++++++++++++++++--------------------- drivers/vhost/vhost.c | 24 +++------ 2 files changed, 92 insertions(+), 79 deletions(-) -- 1.8.3.1