Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353727pxb; Mon, 20 Sep 2021 19:52:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzywvv9w4wx/NdNlMJEsRAozvyWpBXS1EXClV8h4SG9vhxBWejL40K54z+v5sNSy3D+GIh X-Received: by 2002:a50:e0cf:: with SMTP id j15mr30174539edl.23.1632192746565; Mon, 20 Sep 2021 19:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192746; cv=none; d=google.com; s=arc-20160816; b=By0Cum/cwf1Yon/UTrRGE9k9Vog5NlzFiKSxEd9E7niBdfcC6Do6MBYDi9eOCpCKY6 CWLmuYgiddS7UdM4Q0JZ94YCbhQQmCI+AVizAWxIMaAVHn3uiEnAlfYK9LCFD8V22EBj U5zfI8Twe62ora8mJp7kj7JeDYdmxuiz2aMksCI4NkSG/D9pr4gZhPnqFe/jDg2jnZSX jBKVbLTKCkocPHswI/eydse78JA4tqkbImH0eeqWngwymOEw9dFHaciNbpz8OyASweC4 m/lwB7vUTjYnVXzP3ITVmLLONIcnPbGzS/AUOPQv+yxGKWIhaP6iqt/okop6Q4oPKwx0 rORA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4jHBnGwp71QoCfPenD1WxQPVueVSksVho+IsNkD4e5c=; b=wJmX7hjiM3SfGeqc9oAIAU3BQrY5wwkDgQPhkZLZNtguqWPd4Cq3AowTzaVoGJoAd3 wCgibGhoWKTXnpHi+8QMmpW1y3/FuoEXDMOAphrlQx+M3ISInjC/26Tfb+oHSeGdhVBU vFGAQhhJrqujXrmb8Grx9JFXSYBkQ4TCG9pWXtNbLjtO7IXHvpxJGEkSANdALtj0q2H7 s56I1oW/blW//JL0wI6K2G42/hB/5gZxHsE6ixSkDNsjbh5MC1qZpnyBb9o79XOJgk/7 Kiw76GN5w//ZUQ5fuxMl8n2OxS8d9cHwxKllEX2tzn/D3LnQXn8EFRGYtIOtHRY23jCP bmzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="u/xAR+oz"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp5si1562407ejc.447.2021.09.20.19.52.03; Mon, 20 Sep 2021 19:52:26 -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=@linuxfoundation.org header.s=korg header.b="u/xAR+oz"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345278AbhITSnW (ORCPT + 99 others); Mon, 20 Sep 2021 14:43:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:53060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381476AbhITSiR (ORCPT ); Mon, 20 Sep 2021 14:38:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DFABF61ACF; Mon, 20 Sep 2021 17:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158996; bh=VJjytp67vwM1TkryO4l8rgARDKsjcSsoayLe3yLjQE4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u/xAR+ozUITeS/3k+JQ7aEdzr++th8Hwc0zpg2+fYCiDD868559LG+tjVSX7WmXzr bqmW//ebMATDRpYgbkCKFMFKYIjI1bzw53/zwP9DVwXhHAHooDBoXoJvC1sySf6hrn YcFHTKZnvMyD5IYqnvAM1fx/pwa8U+EeUMeJ2zCE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Bunk , YunQiang Su , Shai Malin , Jakub Kicinski Subject: [PATCH 5.14 006/168] bnx2x: Fix enabling network interfaces without VFs Date: Mon, 20 Sep 2021 18:42:24 +0200 Message-Id: <20210920163921.855841599@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adrian Bunk commit 52ce14c134a003fee03d8fc57442c05a55b53715 upstream. This function is called to enable SR-IOV when available, not enabling interfaces without VFs was a regression. Fixes: 65161c35554f ("bnx2x: Fix missing error code in bnx2x_iov_init_one()") Signed-off-by: Adrian Bunk Reported-by: YunQiang Su Tested-by: YunQiang Su Cc: stable@vger.kernel.org Acked-by: Shai Malin Link: https://lore.kernel.org/r/20210912190523.27991-1-bunk@kernel.org Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c @@ -1224,7 +1224,7 @@ int bnx2x_iov_init_one(struct bnx2x *bp, /* SR-IOV capability was enabled but there are no VFs*/ if (iov->total == 0) { - err = -EINVAL; + err = 0; goto failed; }