From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8134EA00C5; Sun, 26 Apr 2020 14:07:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3D1341BF81; Sun, 26 Apr 2020 14:07:49 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 72EEB1BF7C for ; Sun, 26 Apr 2020 14:07:47 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from matan@mellanox.com) with ESMTPS (AES256-SHA encrypted); 26 Apr 2020 15:07:46 +0300 Received: from pegasus25.mtr.labs.mlnx. (pegasus25.mtr.labs.mlnx [10.210.16.10]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 03QC7krA016256; Sun, 26 Apr 2020 15:07:46 +0300 From: Matan Azrad To: dev@dpdk.org Cc: Viacheslav Ovsiienko , Shahaf Shuler , Maxime Coquelin Date: Sun, 26 Apr 2020 12:07:33 +0000 Message-Id: <1587902856-443267-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1585653143-21987-1-git-send-email-matan@mellanox.com> References: <1585653143-21987-1-git-send-email-matan@mellanox.com> Subject: [dpdk-dev] [PATCH 0/3] vdpa/mlx5: recreate a virtq becoming enabled 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Since a virtq configuration may be changed in disable state it is better to recreate a virtq becoming enabled. This series adding this behaviour to the mlx5 driver for vDPA. v2: 1. Address Maxime comments: - returning -1 for out of range error. - commit massage spelling. 2. rebase. Matan Azrad (3): vdpa/mlx5: manage virtqs by array vdpa/mlx5: separate virtq stop vdpa/mlx5: recreate a virtq becoming enabled drivers/vdpa/mlx5/mlx5_vdpa.c | 47 +++++++-------- drivers/vdpa/mlx5/mlx5_vdpa.h | 54 +++++++++++++++-- drivers/vdpa/mlx5/mlx5_vdpa_lm.c | 57 ++++++++---------- drivers/vdpa/mlx5/mlx5_vdpa_steer.c | 103 ++++++++++++++++---------------- drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 113 +++++++++++++++++++++++++++--------- 5 files changed, 231 insertions(+), 143 deletions(-) -- 1.8.3.1