Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1958199imn; Mon, 1 Aug 2022 06:18:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR5KIgmTnH090qlclMB/zGZX78HPGERkLKUSGkPwpyMDA38EpI1lAfDCIM6uFkAks7jAyVYI X-Received: by 2002:a17:903:1ce:b0:16e:f510:6666 with SMTP id e14-20020a17090301ce00b0016ef5106666mr2967977plh.158.1659359925299; Mon, 01 Aug 2022 06:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659359925; cv=none; d=google.com; s=arc-20160816; b=RV2DWsgq8gnmf02kNAcms9cHhCI/zQNU+BvYsDg7hxYSdqtzWYo2m+BXGkhXeFoezg TeqolE00wjoux/km3m7a41YqaQaOWC8h8c9KAasv2tnLM6yyvKJFJqcX9w1xY244dzhS yFhWXGQE33huWMWiB9Pi+Gcpf3sXkaoztE7YU/UQqr1ieg0O8uAozdcMHpNGiobMKA9J Lp8bg/JVy2aE72hf9LPGP2eZAi5Wrs8Vzt52q9sG/jZwhSuYrXNwlDqBql4azorIBmPo ZtsO2caUvfIuD6TA/JbNzTtdOixI5yo8XxqPVU5o+EgKs2JSnDnlwojZF0HgY4ZOO4U2 aVSg== 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=+bx1hMQJv5PQZu7yi4UuFhT8wO9K0wTdAPqeXolsF2E=; b=zFArDKZEvze2QJvMqlvU5wwic0u62aqHeZGfHr0AKnRlj3jCk4GgADnfQXcpU+4hkr o38k4+MjN2WjxTaUlz+Rlbr/txeg8PhQ8JzAxqLfAmFArMC7mIr1baXcn0PSfp7OA91B fB6UlR5iWXM4Qq10VLR/0x6SXYrmDc3/hK6Mrowg+eJx23ScYI16F7aagNRsZu7UBQs0 Dc12NxPJKU4S7oqkOP7RlAolGpyfNmQgPuKwgCaOzBwbdSzvPuXlj/rn+XQelLIIQzgc Tyn9CxauriBcZilfe39XH4RLJr50ws+w3dL4OBragmVdmnqSueLcSXLBOxDokmmuWTg0 seaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TB7WjXDm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g187-20020a636bc4000000b0041c3258fae0si1965949pgc.7.2022.08.01.06.18.08; Mon, 01 Aug 2022 06:18:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TB7WjXDm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233839AbiHAMPd (ORCPT + 99 others); Mon, 1 Aug 2022 08:15:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233228AbiHAMOu (ORCPT ); Mon, 1 Aug 2022 08:14:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B13AF7858C; Mon, 1 Aug 2022 04:58:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 671D3B80E8F; Mon, 1 Aug 2022 11:58:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D049CC433C1; Mon, 1 Aug 2022 11:58:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659355083; bh=iv8aXyOYAKbnZ+8BSaqMJfr4nzdWoMVAHy3Es2WIAeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TB7WjXDmV6PqsY1JhJAjkgdj8YLzBAJ+1KCzPXnLtFocuY7HVfkP3/601bQLx1XKI YWmJT8JE4pmp955svSi1tR1iWmkNMwh+3fkALlOga6jN3QjjTkOerz4OnVzXfaJ4/x f3B8wdtVjuqCd8l8vo3WtQkk24/TGwygE2BJo4aU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maciej Fijalkowski , George Kuruvinakunnel , Tony Nguyen Subject: [PATCH 5.18 29/88] ice: do not setup vlan for loopback VSI Date: Mon, 1 Aug 2022 13:46:43 +0200 Message-Id: <20220801114139.353024978@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220801114138.041018499@linuxfoundation.org> References: <20220801114138.041018499@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maciej Fijalkowski commit cc019545a238518fa9da1e2a889f6e1bb1005a63 upstream. Currently loopback test is failiing due to the error returned from ice_vsi_vlan_setup(). Skip calling it when preparing loopback VSI. Fixes: 0e674aeb0b77 ("ice: Add handler for ethtool selftest") Signed-off-by: Maciej Fijalkowski Tested-by: George Kuruvinakunnel Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ice/ice_main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -5994,10 +5994,12 @@ int ice_vsi_cfg(struct ice_vsi *vsi) if (vsi->netdev) { ice_set_rx_mode(vsi->netdev); - err = ice_vsi_vlan_setup(vsi); + if (vsi->type != ICE_VSI_LB) { + err = ice_vsi_vlan_setup(vsi); - if (err) - return err; + if (err) + return err; + } } ice_vsi_cfg_dcb_rings(vsi);