Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp938400pxb; Wed, 6 Apr 2022 04:51:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZNM1P5qRbe7PBp0+Xajyu9QGAmkMznDOkJrL9W7Dn+a9oFXBt1LCy0rS3gqUYF1hpUJXj X-Received: by 2002:a05:6a00:2304:b0:4fa:dff2:88f5 with SMTP id h4-20020a056a00230400b004fadff288f5mr8548784pfh.11.1649245888809; Wed, 06 Apr 2022 04:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245888; cv=none; d=google.com; s=arc-20160816; b=y+BiTCeDBbk4CZynmavC6NTIlC0WO1/wwTOWVi9IT1wpQDzhH2g4hsIe/hfNyR8yCY LL9JONk6uWlQlkOdDlNIKo4ksmuKrTrR91RpdY7OVxVA4F4IP2Z9scfivHC7Hzh8c3gC SFzRkZUbEle3ergnhaYibmZekva3e6EMzsIkvAG70BeBB9KAFV3cv1A8nLM6UoWz/BTU 4GhsVyVf6mNIdgGx/TQEwYVR/k5a0PVWDVpin9ZgN77b/jadp14fXxdCqX8+SO0LSYQl m7HKdMLVJ+A8zEbIsbk/JVIVq3E8vS7nD/tyuA8teDhO8ScV2xWPv2tfNFtEfSqcv55U spIw== 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=Tk61ajBhfyXMfqRRa6vyh8axs776LYn13AFhGgrHJ14=; b=swU6Idyj0rGvEReedOet11kgw//u8QY9/0IwcsCUl2dHwA2jmUlyuwUGvSu6ptxBwg AYoC5OwOMLphiWgChAyc8CFMIav+XSBSylU8mGL4VPpn6P6aHcAE6jtbVjBuX4wQTM1D g965QFvwa7tD8hdUEgW1Vj4+wrefoXwiLAD+xm0/7cF2E7Q1g7jt01A49YFHJqQ6KWes jUmfqiUgSAr6ZYGLO69hwoGIuRp8+zcDBDilhsmXI2oKiHCKBn68kDsuGwzBP3jt80q6 qMk/cY2mgjoOifqk/KdqXfv5mmWgA92FbQ4aM9MW2ipTgT4OLrfBm/N+9HZ/lIGRLCp1 FE7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jEOhF+U5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b18-20020a170902d51200b00153b2d16403si17349005plg.11.2022.04.06.04.51.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:51:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jEOhF+U5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B2B8D56FD19; Wed, 6 Apr 2022 03:10:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352068AbiDELFp (ORCPT + 99 others); Tue, 5 Apr 2022 07:05:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237568AbiDEImt (ORCPT ); Tue, 5 Apr 2022 04:42:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B9F213DEF; Tue, 5 Apr 2022 01:35:14 -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 dfw.source.kernel.org (Postfix) with ESMTPS id DC4E9614E4; Tue, 5 Apr 2022 08:35:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED8CAC385A0; Tue, 5 Apr 2022 08:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649147713; bh=3+T0dHYlWnxkv9+tQQbQeXrBLw+wctKVVybJaCYl/y0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jEOhF+U5KeCf7k0RJWBY0Ey/mqjCjjms7nF2rX8visNrRQywkpDKbAqPgAwYRO5pv La6799c19nGJT9rKP/KwvCwS8CAg4u/iInMQxYJVNmrdk5K7Ktve0KNuVcCcBElHSz LHSb8NBqmB6V/g70qodgK4KXqGpt2KPu1PN7kuJM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Manish Chopra , Ariel Elior , "David S. Miller" Subject: [PATCH 5.16 0095/1017] qed: display VF trust config Date: Tue, 5 Apr 2022 09:16:48 +0200 Message-Id: <20220405070357.016230077@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Manish Chopra commit 4e6e6bec7440b9b76f312f28b1f4e944eebb3abc upstream. Driver does support SR-IOV VFs trust configuration but it does not display it when queried via ip link utility. Cc: stable@vger.kernel.org Fixes: f990c82c385b ("qed*: Add support for ndo_set_vf_trust") Signed-off-by: Manish Chopra Signed-off-by: Ariel Elior Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/qlogic/qed/qed_sriov.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/qlogic/qed/qed_sriov.c +++ b/drivers/net/ethernet/qlogic/qed/qed_sriov.c @@ -4719,6 +4719,7 @@ static int qed_get_vf_config(struct qed_ tx_rate = vf_info->tx_rate; ivi->max_tx_rate = tx_rate ? tx_rate : link.speed; ivi->min_tx_rate = qed_iov_get_vf_min_rate(hwfn, vf_id); + ivi->trusted = vf_info->is_trusted_request; return 0; }