From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id B40302BE5 for ; Sat, 1 Apr 2017 09:25:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491031554; x=1522567554; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=oXhx2yC1TRVOa6JfOtkBbJXck56wEDirBGrav0ezPNQ=; b=hM6ADy+SKdbKfQdSPQgpJPzOvReFtFR8PQjNyJk9B5RFp7mBNh/gSRZc 0k5YBwf8tLJAixneQgWU/ENGChHKSQ==; Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Apr 2017 00:25:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,256,1486454400"; d="scan'208";a="67700692" Received: from yliu-dev.sh.intel.com ([10.239.67.162]) by orsmga002.jf.intel.com with ESMTP; 01 Apr 2017 00:25:42 -0700 From: Yuanhan Liu To: dev@dpdk.org Cc: Maxime Coquelin , Harris James R , Liu Changpeng , Yuanhan Liu Date: Sat, 1 Apr 2017 15:22:53 +0800 Message-Id: <1491031380-1499-16-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1491031380-1499-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1490705142-893-1-git-send-email-yuanhan.liu@linux.intel.com> <1491031380-1499-1-git-send-email-yuanhan.liu@linux.intel.com> Subject: [dpdk-dev] [PATCH v4 15/22] vhost: rename virtio-net to vhost X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2017 07:25:55 -0000 Rename "virtio-net" to "vhost" in the API comments and vhost prog guide. Signed-off-by: Yuanhan Liu Reviewed-by: Maxime Coquelin --- doc/guides/prog_guide/vhost_lib.rst | 6 +++--- lib/librte_vhost/rte_virtio_net.h | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/guides/prog_guide/vhost_lib.rst b/doc/guides/prog_guide/vhost_lib.rst index e6e34f3..88f0591 100644 --- a/doc/guides/prog_guide/vhost_lib.rst +++ b/doc/guides/prog_guide/vhost_lib.rst @@ -130,12 +130,12 @@ The following is an overview of some key Vhost API functions: * ``new_device(int vid)`` - This callback is invoked when a virtio net device becomes ready. ``vid`` - is the virtio net device ID. + This callback is invoked when a virtio device becomes ready. ``vid`` + is the vhost device ID. * ``destroy_device(int vid)`` - This callback is invoked when a virtio net device shuts down (or when the + This callback is invoked when a virtio device shuts down (or when the vhost connection is broken). * ``vring_state_changed(int vid, uint16_t queue_id, int enable)`` diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h index 4287c68..442f851 100644 --- a/lib/librte_vhost/rte_virtio_net.h +++ b/lib/librte_vhost/rte_virtio_net.h @@ -226,7 +226,7 @@ int rte_vhost_driver_callback_register(const char *path, * is allocated. * * @param vid - * virtio-net device ID + * vhost device ID * * @return * The numa node, -1 on failure @@ -238,11 +238,11 @@ int rte_vhost_driver_callback_register(const char *path, * Get the number of queues the device supports. * * Note this function is deprecated, as it returns a queue pair number, - * which is virtio-net specific. Instead, rte_vhost_get_vring_num should + * which is vhost specific. Instead, rte_vhost_get_vring_num should * be used. * * @param vid - * virtio-net device ID + * vhost device ID * * @return * The number of queues, 0 on failure @@ -266,7 +266,7 @@ int rte_vhost_driver_callback_register(const char *path, * file path. * * @param vid - * virtio-net device ID + * vhost device ID * @param buf * The buffer to stored the queried ifname * @param len @@ -281,7 +281,7 @@ int rte_vhost_driver_callback_register(const char *path, * Get how many avail entries are left in the queue * * @param vid - * virtio-net device ID + * vhost device ID * @param queue_id * virtio queue index * @@ -296,7 +296,7 @@ int rte_vhost_driver_callback_register(const char *path, * count is returned to indicate the number of packets that were succesfully * added to the RX queue. * @param vid - * virtio-net device ID + * vhost device ID * @param queue_id * virtio queue index in mq case * @param pkts @@ -314,7 +314,7 @@ uint16_t rte_vhost_enqueue_burst(int vid, uint16_t queue_id, * construct host mbufs, copies guest buffer content to host mbufs and * store them in pkts to be processed. * @param vid - * virtio-net device + * vhost device ID * @param queue_id * virtio queue index in mq case * @param mbuf_pool -- 1.9.0