Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5988428ybc; Wed, 27 Nov 2019 12:59:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyiqFJNVDS00tTo8kuIpaEIBUntbB5K56yK2E6jHSwwJhemtZuk2AEzljvJRVkddWCy1C8e X-Received: by 2002:a17:906:e0d5:: with SMTP id gl21mr49721873ejb.292.1574888378968; Wed, 27 Nov 2019 12:59:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888378; cv=none; d=google.com; s=arc-20160816; b=zy7BAdNdsimWTxHjSFk1DwQiidoHpWkfhFM4SOfQ/gp2KuqZidjzNZjwPeCREJVtD5 62T39JzZajyQ+/UjzITpvSgpS5ppPRsMro563fmWdniXM32dUiVqBfSuXUh9tUSWWEoj ZI3uWg9CPgahJyMn+V+yDBAw0fUsHXWXVyppjS3dXYpmcE/E3AYQN4BgNx18MY5rQ+QN R4TvKiHimjdP8kbjvGBSNdU0fuGF4Te6IKetfdaSEO7zvadTvxVsuI0FuFig1UvLt5IK 7uiy+ReAMdktb+ZuZjCmdsnf0b0JVZI0o+yO0MZ1jjWaN3ygJbTWcVjcwwmHZv7J9jO2 17DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mnDojCwibv7RVnPo4bCtAoFP+pSdfoMRsdX5cyuRg2I=; b=Hj9bHLE7m6SOMCR9OXXq+j3/hZWAxx6+s5xWnKIV+r3eOTnpPpoGB4dViKjHjPPvZU GLQGTN+T/TQaWiJIDQfMww9peQGQ2koRtIgfZgOMgE7UW9qRIa6awKbuRuVtIzKM8X8D m+1c/C4bWdFRqdN+CtmeY3NFyI5eUiZwbDOzRNYtYi65lT51V5PR8Ld1gQD6sQWemXFr 7NIlfZ9LOq0C8yzBed9mqiqef1eYh36KlPme4IGhdgOhbcWjkpsDgJI2Ub6LYP1lxOHd hqtD/L0LxrjTfhYs5y1/FCRg+abI7CepYKnuQ9w0VkVL7gzAvPSJCxjBKjoXW8PgBOwS NXaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IO4W23BG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si10242540ejs.376.2019.11.27.12.59.15; Wed, 27 Nov 2019 12:59:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IO4W23BG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730472AbfK0U4X (ORCPT + 99 others); Wed, 27 Nov 2019 15:56:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:47150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730622AbfK0U4V (ORCPT ); Wed, 27 Nov 2019 15:56:21 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 D297C2084D; Wed, 27 Nov 2019 20:56:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888180; bh=kKlqWjgPTrgbDPomLTOmv0jHODoLL4eChQ1eMqesnz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IO4W23BGdeY+UBi41IJK7yptApcQykFqMCm9ouLqhl0QRCucMwjJ5oGzIQavNRCdv 90+HSmpqUkLpCveb8RcAjXP2HnPKjxLUsJD4oBOG8rfrdDy2EGIXUPecZPbyCc/S0h i+WVOftVYCk+z1mMxh4mbExd0NhbQ/V/WT0s4XKc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Roi Dayan , Vlad Buslov , Saeed Mahameed Subject: [PATCH 4.19 008/306] net/mlx5e: Fix set vf link state error flow Date: Wed, 27 Nov 2019 21:27:38 +0100 Message-Id: <20191127203115.345737672@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roi Dayan [ Upstream commit 751021218f7e66ee9bbaa2be23056e447cd75ec4 ] Before this commit the ndo always returned success. Fix that. Fixes: 1ab2068a4c66 ("net/mlx5: Implement vports admin state backup/restore") Signed-off-by: Roi Dayan Reviewed-by: Vlad Buslov Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c @@ -1861,7 +1861,7 @@ int mlx5_eswitch_set_vport_state(struct unlock: mutex_unlock(&esw->state_lock); - return 0; + return err; } int mlx5_eswitch_get_vport_config(struct mlx5_eswitch *esw,