From patchwork Tue Oct 27 13:53:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 312326 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77BA5C56202 for ; Tue, 27 Oct 2020 16:29:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2B1AC21707 for ; Tue, 27 Oct 2020 16:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603816157; bh=3qPadPIHRFu+ux95XlJkBaIFc7Nqr+12QhCshfgQL94=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=DUU7aFEh1ktDJu9JQzWGUchugP+YC4Nmr8b//4hqQipdE4RhU19EaJlFSRp7GjzkA DyETRXen06cjbdoIk9BZLDDptcVJ9Div+IZ8+VK9PW6r5ORJiusjgvIZSArOS9E9T4 LBTVGsyiJ2hkdVatgBoXTTNKPr6cDkLHDQ+4ORUU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1802720AbgJ0PvG (ORCPT ); Tue, 27 Oct 2020 11:51:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:44056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1802365AbgJ0Pqt (ORCPT ); Tue, 27 Oct 2020 11:46:49 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 52EE021D42; Tue, 27 Oct 2020 15:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603813608; bh=3qPadPIHRFu+ux95XlJkBaIFc7Nqr+12QhCshfgQL94=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VnSPMNi1EGfl/zevWTyhbEVxq65C5/geEWkv1CUBPrgUvRovue4tswlorlBOJjv18 qr6wblDZFSinDFavmw9CAujd/Y8xN+ALbKifGSLkXXjqcFaDZI9nNxpYJ7xGXzqTq4 kDgNk5DFFH6/9Fn6krbcwwPXprlfuIihzv7eJf9E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eli Cohen , "Michael S. Tsirkin" , Jason Wang , Sasha Levin Subject: [PATCH 5.9 578/757] vdpa/mlx5: Fix failure to bring link up Date: Tue, 27 Oct 2020 14:53:48 +0100 Message-Id: <20201027135517.628379705@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Eli Cohen [ Upstream commit 36b02df2d204da9f7a571f16ed9e91a4d083f207 ] 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 Link: https://lore.kernel.org/r/20200917121540.GA98184@mtl-vdi-166.wap.labs.mlnx Signed-off-by: Michael S. Tsirkin Acked-by: Jason Wang Signed-off-by: Sasha Levin --- 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 56228467d7ec6..5ca309473c03d 100644 --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c @@ -1541,6 +1541,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; }