From patchwork Wed Mar 2 10:52:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Chopra X-Patchwork-Id: 12765741 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD8E4C43217 for ; Wed, 2 Mar 2022 10:53:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241139AbiCBKxs (ORCPT ); Wed, 2 Mar 2022 05:53:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241144AbiCBKxk (ORCPT ); Wed, 2 Mar 2022 05:53:40 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C3F8434A4; Wed, 2 Mar 2022 02:52:53 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2225aJ6e005800; Wed, 2 Mar 2022 02:52:46 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=WkRmWOAwWTwynXg9XKkCoCA2XLxhcKbUkxumf0L7QTA=; b=AE0liRpAsCoBpPAjwYw/VfFQRX0oeNaQKed5L9A0rJQ+Pl2IFLUxSySbAHHV/fBLsB3Q NOwduzzqOFgteR/6KGoTOTXaqB0WYxr9f5cQK12eFLx4b3YV5tr7Z/09Yit8nzNrMvjT 7PHuV2LHW7xZSMbsi5Nc+komae83puJSRGZRZD/rG3eXpHyVT/UzHzL+75Hie4udZZqx uMSCocERzf2TWUmXipp01XgelwP1DaTkrrstC/hsGSEkQdr9BhlaYAmHgPHNzvWw/pIJ jBuML83l4ZioZoLRy9ql2iiW+jNhScxo7Jr3lzeqlZNsaePWUUiv9ktau1VUId6bAwtf hQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ej2k496jj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 02 Mar 2022 02:52:46 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 2 Mar 2022 02:52:44 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Wed, 2 Mar 2022 02:52:44 -0800 Received: from dut1171.mv.qlogic.com (unknown [10.112.88.18]) by maili.marvell.com (Postfix) with ESMTP id 8461167387; Wed, 2 Mar 2022 02:52:44 -0800 (PST) Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id 222AqYP6008238; Wed, 2 Mar 2022 02:52:39 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id 222AqNdv008237; Wed, 2 Mar 2022 02:52:23 -0800 From: Manish Chopra To: CC: , , , Subject: [PATCH v2 net-next 1/2] qed: display VF trust config Date: Wed, 2 Mar 2022 02:52:21 -0800 Message-ID: <20220302105222.8201-1-manishc@marvell.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: wIVxiUJ9S0k6YM2PKnzHBg0wFm7OJ_K7 X-Proofpoint-GUID: wIVxiUJ9S0k6YM2PKnzHBg0wFm7OJ_K7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-02_01,2022-02-26_01,2022-02-23_01 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 --- v1->v2: add Cc and Fixes tags for stable inclusion drivers/net/ethernet/qlogic/qed/qed_sriov.c | 1 + 1 file changed, 1 insertion(+) -- 2.35.1.273.ge6ebfd0 diff --git a/drivers/net/ethernet/qlogic/qed/qed_sriov.c b/drivers/net/ethernet/qlogic/qed/qed_sriov.c index 8ac38828ba45..c5abfb28cf3f 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_sriov.c +++ b/drivers/net/ethernet/qlogic/qed/qed_sriov.c @@ -4715,6 +4715,7 @@ static int qed_get_vf_config(struct qed_dev *cdev, 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; }