From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH 4/9] vhost: fix trailing whitespace Date: Thu, 4 Jun 2015 07:43:22 -0700 Message-ID: <1433429007-4640-5-git-send-email-stephen@networkplumber.org> References: <1433429007-4640-1-git-send-email-stephen@networkplumber.org> Cc: Stephen Hemminger To: dev@dpdk.org Return-path: Received: from mail-qc0-f178.google.com (mail-qc0-f178.google.com [209.85.216.178]) by dpdk.org (Postfix) with ESMTP id 95ED2C368 for ; Thu, 4 Jun 2015 16:43:33 +0200 (CEST) Received: by qcmi9 with SMTP id i9so18493476qcm.0 for ; Thu, 04 Jun 2015 07:43:33 -0700 (PDT) In-Reply-To: <1433429007-4640-1-git-send-email-stephen@networkplumber.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Stephen Hemminger Signed-off-by: Stephen Hemminger --- lib/librte_vhost/libvirt/qemu-wrap.py | 13 ++++++------- lib/librte_vhost/vhost_rxtx.c | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/librte_vhost/libvirt/qemu-wrap.py b/lib/librte_vhost/libvirt/qemu-wrap.py index e2d68a0..5096011 100755 --- a/lib/librte_vhost/libvirt/qemu-wrap.py +++ b/lib/librte_vhost/libvirt/qemu-wrap.py @@ -49,17 +49,17 @@ # # 3.a) Set the VM to use the launch script # -# Set the emulator path contained in the +# Set the emulator path contained in the # tags # -# e.g replace /usr/bin/qemu-kvm +# e.g replace /usr/bin/qemu-kvm # with /usr/bin/qemu-wrap.py # # 3.b) Set the VM's device's to use vhost-net offload # # -# -# +# +# # # # 4. Enable libvirt to access our userpace device file by adding it to @@ -229,7 +229,7 @@ def get_vhost_fd(): # flags onto the end ############################################# def modify_netdev_arg(arg): - + global fd_list vhost_in_use = 0 s = '' @@ -259,7 +259,7 @@ def modify_netdev_arg(arg): s+=opt - return s + return s ############################################# @@ -364,4 +364,3 @@ def main(): if __name__ == "__main__": main() - diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 4809d32..2da4a02 100644 --- a/lib/librte_vhost/vhost_rxtx.c +++ b/lib/librte_vhost/vhost_rxtx.c @@ -615,7 +615,7 @@ rte_vhost_dequeue_burst(struct virtio_net *dev, uint16_t queue_id, if (unlikely(m == NULL)) { RTE_LOG(ERR, VHOST_DATA, "Failed to allocate memory for mbuf.\n"); - break; + break; } seg_offset = 0; seg_avail = m->buf_len - RTE_PKTMBUF_HEADROOM; -- 2.1.4