Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp462568ybh; Mon, 20 Jul 2020 22:53:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweRzbn2BJeEA1DuQrVs48QGLqDmwx+tSps/+4BYHhBz445gzdJr24ykurJ3EPNVJoBZi4q X-Received: by 2002:aa7:cd52:: with SMTP id v18mr23416270edw.196.1595310816195; Mon, 20 Jul 2020 22:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595310816; cv=none; d=google.com; s=arc-20160816; b=EM0xI0VRuQvw1M5j+MJ0omwffuharypeypqE8KHoV7ibyjiZMZb9djAoR7P0SUqBEA 39rJnSqKtILihjBxfIzP0JBpyUEygBzCOWsbPQNICcVm9kt99rkIlQQIcNhIKoFrEkNS zot2p1m75W7F7kCHOaoxj27OOMLkc0H0R5+WMTvcrgBV+dl3WhCFupjQXgD8xCas15iG NfPhGiTQwobF/WZnE+Xe4X7mpfTodYR6C+7trjB+6HfyV5uDXaneSAhcu5bbGt4xaVTv hYk85gTAvHmTO0p8GSzbi7ZEmsshJ5HkcQEtoraKJnmnG7BHDptFJ2WXkM7kO7Rh9ehC /QQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=aLjkj/NtDRd3xkfHAYuSB+hneYUy009qM+qF11a/0w8=; b=kFKXOMAI9XlvztzuN8kFbTuxRlnmHIud27FORoTHWlyw5pnDonj28estXKihBX2Ml4 7Nn69079slyUWMCDqmJxS6lHiF85/SYi2O895qWg7xstP2R/ieD1in7OvRrtxCZDMR9G twVeWc/klIsYkTGy3NJMNfAgldBP4B4JbotrsE1E/q5ZsFXWElhv9cDkn09W+nI1PZ3e hS8iesSvw0Cb7+XSbw1mN0d3tehXw/RZZwkC5KEKJxUoI8gGuRORSoNoZ5yzqyBgJK9X aKOoUGsfCLF+ca5YgjP3UH3TIXDoIpwtEYCTKWbonbeOrk5cdHpSlgaqG5w8Blb/irFF 9rrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CUUfkrqe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si12193806edq.393.2020.07.20.22.53.11; Mon, 20 Jul 2020 22:53:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CUUfkrqe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726310AbgGUFwG (ORCPT + 99 others); Tue, 21 Jul 2020 01:52:06 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:45867 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726003AbgGUFwG (ORCPT ); Tue, 21 Jul 2020 01:52:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595310724; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aLjkj/NtDRd3xkfHAYuSB+hneYUy009qM+qF11a/0w8=; b=CUUfkrqevHLtn5YJBMPCZaYKdGDM6U2Vy/ByEcDArD6G9nK5sGPJf5/ohCXfqEVUWpmJvB sFcvdUt08E3/ZKxzD0eTSupMo91loNpOsr+xD0FDltOheCbIgSkdes5JkPmPUnHfolMppJ 7ORA+SELD43PhpYsLdtsTYlGhCpVxZA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-316-OuMNqS5uP7OfxFt7hiEfjA-1; Tue, 21 Jul 2020 01:52:02 -0400 X-MC-Unique: OuMNqS5uP7OfxFt7hiEfjA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 445A118C63C2; Tue, 21 Jul 2020 05:52:01 +0000 (UTC) Received: from [10.72.12.202] (ovpn-12-202.pek2.redhat.com [10.72.12.202]) by smtp.corp.redhat.com (Postfix) with ESMTP id 07D1619C66; Tue, 21 Jul 2020 05:51:55 +0000 (UTC) Subject: Re: [PATCH V2 vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices To: Eli Cohen , mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: shahafs@mellanox.com, saeedm@mellanox.com, parav@mellanox.com References: <20200720071416.32112-1-eli@mellanox.com> <20200720071416.32112-11-eli@mellanox.com> From: Jason Wang Message-ID: <73209efd-f513-fec2-e4f7-51e71f08c9fe@redhat.com> Date: Tue, 21 Jul 2020 13:51:54 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200720071416.32112-11-eli@mellanox.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/20 下午3:14, Eli Cohen wrote: > Add a front end VDPA driver that registers in the VDPA bus and provides > networking to a guest. The VDPA driver creates the necessary resources > on the VF it is driving such that data path will be offloaded. > > Notifications are being communicated through the driver. > > Currently, only VFs are supported. In subsequent patches we will have > devlink support to control which VF is used for VDPA and which function > is used for regular networking. > > Reviewed-by: Parav Pandit > Signed-off-by: Eli Cohen > --- > Changes from V0: > 1. Fix include path usage > 2. Fix use after free in qp_create() > 3. Consistently use mvq->initialized to check if a vq was initialized. > 4. Remove unused local variable. > 5. Defer modifyig vq to ready to driver ok > 6. suspend hardware vq in set_vq_ready(0) > 7. Remove reservation for control VQ since it multi queue is not supported in this version > 8. Avoid call put_device() since this is not a pci device driver. Looks good to me. Acked-by: Jason Wang