From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <nicknickolaev@gmail.com>
Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com
 [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 993B01B60B
 for <dev@dpdk.org>; Tue, 26 Jun 2018 18:19:05 +0200 (CEST)
Received: by mail-wr0-f193.google.com with SMTP id l14-v6so12792023wrq.13
 for <dev@dpdk.org>; Tue, 26 Jun 2018 09:19:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:from:to:cc:date:message-id:user-agent:mime-version
 :content-transfer-encoding;
 bh=GJSOGcobuvg47lIa4mnG6/0dlIbnB/9OmFBojc8eC1s=;
 b=CHFhcJE0oTF+q+dRTFPiDFzBSpUEP10Eo4I1/mVjkD9Ehcud1QCsOjwbiKzlgzR6Hm
 m2pNd+H3mP+OW80rVPUzBcjiz+GwKJ0UUdja71a+GBSoKnNWrmHx3CN7FlJHIM1/f/CW
 CmDJnKgaTZD4Ji+mEtWIUkbjkSHh7JKOV1iQhJNHBd65JNDL+P4xKw0LvDPUEcenL0Lu
 ynD5aThmDaGEM4BBFJkRZFpviQXlTIJAwLHaLLaUvIiOCwrkYqlNneM9YWybZkWcmkxY
 pE4iofNGfbS6axc3K7uXTPfv8MRQLthDzDBvupcW/kF2/XWJ9aFsK8slT/p0PkfDtWeu
 qHvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:from:to:cc:date:message-id:user-agent
 :mime-version:content-transfer-encoding;
 bh=GJSOGcobuvg47lIa4mnG6/0dlIbnB/9OmFBojc8eC1s=;
 b=lCiNinlqv0irptA+XEux8YvFe0rMlLwzvj8mMIxC3BLQSFL3M2LLEay6HL7DpLxvTy
 G1nmZ18Otr8+oscOUStMMFLdIj308WWNSO2NgbyG8l9Z2anv1tHNJ5ALSlEg/eOym2UY
 2Y4j8qnMZ4UGPwm+/376mkc47WJABWex+gGPiy/Ww7N3OJBjPodfC7bvO7JTNSoUg0kq
 bTD3HAEp0pRRVw1jyz71Jpw18ZHA8Q6QlS/fvvQTcqIZv+l8DQl4tgKrAecPz4GzsIED
 TSPHYHcNuxBNK4Fy90nYCU/de+msulvibYVh8MPDlEeW7Xnf34khvGN6F4D3FEPnoM5C
 eNjg==
X-Gm-Message-State: APt69E23/qzQ4p0A/O9CUM0pFw5QiWSTpx4TADX5cfJDESkidnBbYo8A
 h5tz1/oEObiUv4X1bCzcy5TY08I4
X-Google-Smtp-Source: AAOMgpdCPVH80Z2sH82z9Jtqks9Y/UF1forkhSTccDaNZ2Q49IdgERvtkOqAZ8i33alhtH6WJJQ+UA==
X-Received: by 2002:adf:f246:: with SMTP id
 b6-v6mr2050247wrp.235.1530029944743; 
 Tue, 26 Jun 2018 09:19:04 -0700 (PDT)
Received: from [127.0.1.1] ([82.146.27.14])
 by smtp.gmail.com with ESMTPSA id n7-v6sm2262216wrr.39.2018.06.26.09.19.03
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 26 Jun 2018 09:19:03 -0700 (PDT)
From: Nikolay Nikolaev <nicknickolaev@gmail.com>
To: maxime.coquelin@redhat.com, tiwei.bie@intel.com, zhihong.wang@intel.com
Cc: dev@dpdk.org
Date: Tue, 26 Jun 2018 19:19:02 +0300
Message-ID: <153002988259.22089.8523468795459281187.stgit@T460>
User-Agent: StGit/0.17.1-dirty
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Subject: [dpdk-dev] [PATCH v1 0/5] vhost_user.c code cleanup
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Jun 2018 16:19:05 -0000

vhost: vhost_user.c code cleanup

This patchesries introduce a set of code redesigns in vhost_user.c.

The goal is to unify and simplify vhost-user message handling. The
patches do not intend to introduce any functional changes.

---

Nikolay Nikolaev (5):
      vhost: unify VhostUserMsg usage
      vhost: make message handling functions prepare the reply
      vhost: handle unsupported message types in functions
      vhost: unify message handling function signature
      vhost: message handling implemented as a callback array


 lib/librte_vhost/vhost_user.c |  391 ++++++++++++++++++++++-------------------
 1 file changed, 208 insertions(+), 183 deletions(-)

--
Signature