Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp366936pxk; Thu, 17 Sep 2020 05:23:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyV2MBWe6xl6Cf4bCg+KAJteCqrd5kUctsZmIc+1IIe7u9Lw1jfh4bFG+O8c0kQSr5T1QH X-Received: by 2002:a17:907:72c2:: with SMTP id du2mr31484278ejc.512.1600345410986; Thu, 17 Sep 2020 05:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600345410; cv=none; d=google.com; s=arc-20160816; b=VyAVCECJA18qzIch4QPugeP1oivyXxen2djFOYwB9TMCFBKlTl5Gh7YXNSZCtQBk4l NSm4Cy+/vGLpwFMSuI7xcBdiHYYMrTFhCPEbWJQ5bqYWnzDJ3Hlyp7vBbG/vENADN5wT D2zM0CZ3jeaqe/fqh+4D5dQ+avFcp0zABLYZa5Rwq7MUyqXxpd3MJBIQh2hov2TW23uD mQYklCNY4Ie2OVQUhiZ3E/9wZeoPRR85cYx3HrN8wSNC+MwBYRsK3HGEXjSzAfjCf4WM jdhekVYehVMszqhm41U1IxYyPJegPgD25/Qdda670+9D9mzW51MAWprOENm352JtcS6H mjMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=xNDUVAOiUY33eFNSRyaUWgqKQPOQCmaCt04lCyjdrng=; b=Df6bZ/3HL68R9UQTEKiMIh6uMXg6b6zf/WengpTyFLJ/oB+nTnqR8oEmue/friBneo PNZ969Mf5AT+5yv0UIUws8nzWWctnxd75fKA90pZ4RJQOWxGRicY8xDXecbxtJlgCdDX wwNgfqHqxc6MPBfukVaTOo2zoDlwKDngI4ADJ3IPOwRNAcKh4WkqvljRsRSYgX1LNNnY I4ZSeyo2krlVA8k0V88wxlJLCipo0/vTtMAAHkVLz9jVftOxuwoiclbqpatWYbhLqKEH 5JOIiACqKeCduNaRKr+ZtyzkSZf4iSar2wgF6DEVmdkseQynVKeCq3n6oE4/m9yvSpig /R9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=N8snmDHw; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si3599653edw.458.2020.09.17.05.23.07; Thu, 17 Sep 2020 05:23:30 -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=@nvidia.com header.s=n1 header.b=N8snmDHw; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbgIQMVB (ORCPT + 99 others); Thu, 17 Sep 2020 08:21:01 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:19248 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbgIQMUy (ORCPT ); Thu, 17 Sep 2020 08:20:54 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 17 Sep 2020 05:15:02 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 17 Sep 2020 05:15:46 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 17 Sep 2020 05:15:46 -0700 Received: from mtl-vdi-166.wap.labs.mlnx (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 17 Sep 2020 12:15:43 +0000 Date: Thu, 17 Sep 2020 15:15:40 +0300 From: Eli Cohen To: , , , CC: Subject: [vhost next 2/2] vdpa/mlx5: Fix failure to bring link up Message-ID: <20200917121540.GA98184@mtl-vdi-166.wap.labs.mlnx> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.9.5 (bf161cf53efb) (2018-04-13) X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1600344903; bh=xNDUVAOiUY33eFNSRyaUWgqKQPOQCmaCt04lCyjdrng=; h=X-PGP-Universal:Date:From:To:CC:Subject:Message-ID:MIME-Version: Content-Type:Content-Disposition:User-Agent:X-Originating-IP: X-ClientProxiedBy; b=N8snmDHwUzWH/4rEqkfw024J/57ZCERxZ9AYEi+tDuC+d13qDUOj4q45ITfV+VZ6c eYdyGUqiAaADQDFWWvbl+Yu47tfv7KkeosojLswVPLxah0hLg9AFkakdrCYHgcVFBu myR0YTJMJW4KNHeo9Vrnkm3QRHFX5RDvsgXA9PKYemBEwTAkDeYJtu0puq6vBlCvuw iGQtsRix4H6JJPcbQf7nVNAaYtQiDHkzLmsFsyeQvf2ybUIsaTi8FPzALQVpbHJQPb MIHez5fF1SbpzBCfeXwlaFi/FwoTrAXKlPq+dvoNbIXzAGX/TtqoMc365lf+InwYFJ F+bKOXqAyphrA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set VIRTIO_NET_S_LINK_UP in config status to allow the get the bring the net device's link up. Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices") Signed-off-by: Eli Cohen --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c index e70ff7dee33d..d0df768f29da 100644 --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c @@ -1533,6 +1533,7 @@ static int mlx5_vdpa_set_features(struct vdpa_device *vdev, u64 features) ndev->mvdev.actual_features = features & ndev->mvdev.mlx_features; ndev->config.mtu = cpu_to_mlx5vdpa16(mvdev, ndev->mtu); + ndev->config.status |= cpu_to_mlx5vdpa16(mvdev, VIRTIO_NET_S_LINK_UP); return err; } -- 2.27.0