From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C5782A04B5; Mon, 2 Dec 2019 15:41:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 102411BE84; Mon, 2 Dec 2019 15:41:28 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id DBB091BE83; Mon, 2 Dec 2019 15:41:25 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xB2EdRD0003672; Mon, 2 Dec 2019 06:41:20 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=GiKT0zdNLJ3B97l3Jyn7GcPa5qZWz6jlR0fqr4sh+sw=; b=fuC8iHV1DBvRF9GXNeGklvi3+TnZ6d1JOVZQtSuwNcMep0gmNb9VXpYGS5WrPWgUrALy fzKAgB+lZKhnApN8peMwkq3v7LJrX2f3w1wiZNE08tb9G3ihueBKvmpaqTk9asEuza4U 1jVMXPSty2zSGFt8Pm6kvovaDSIU9v9LBFB3ld01iHw+FuggEXccRF8gUrbHE62BBav5 8gERWzwebizJWCvWy0oK0MGV9lZr4xBuK5rjmS4eV+FLviymjFJb179ulkPMSvlgjJMH VCT/qVh2WL20xRieKG0DcBgDLSwy1Y81JOGh4Cz2va3N93I1QtO5x8IYHaCKj3CSK9FO fg== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2wkrtseg1s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 02 Dec 2019 06:41:19 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 2 Dec 2019 06:41:18 -0800 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (104.47.37.51) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 2 Dec 2019 06:41:18 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J5YucGTbfpXNT44b/bpYkETQ9OjbXbr7Yz52t9lqiTsqg91XRGLrtxrOFr+JE/jL89XF25Dt8uIpeV4fQQDSaXMcvbIegyRF87U22DRBAYe3RjHRlsEmxuamC8BusMalbocqVD7KmxzCRR8sbGDV0M1aQg0RvlsOVw7Qfc5LYZSy6exJjL9QkdslNtEFC//R9Avb0np3XpiYpRFLP5L0NJrFzA98KJi+sKQn/5jKMRmeUCKw1d5e4zkyPw3rsRpR25RNTj8XZKq/EdGongmFvNuIt/MLdDllZiwdUiWMapzFBAcBsAIk00Av7WUrX4xQ8tlOiVw5le8YgZwaA/SUDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GiKT0zdNLJ3B97l3Jyn7GcPa5qZWz6jlR0fqr4sh+sw=; b=brAABw2hYAkQNZJsFY6KoH8QCe4s7HwuhmlgZSAvr0xsDYdlQ5J973K+Q4L04NAeVi1XRpT5dktR9atxsVRRvdlNyvqlIAgbD9PKSWeMJfAmS1BGQU2Cy5mNJ3h2kgqFc27bAPgjJnSvOH4fTCTWt5XMKwTfmwZg5yXRUyI32Xt0u00vlrvJRiJdgiL8xpGbaLdmq4KJ7mVULGr4+ZKhrXyTsb2Gn1VRtd+1ktODcWS0FQo2HqcGRQKySooylV4TpdvWeByNckS4TmWH9D1q1Tw1iQXsY96UlZsB33n3k6rjkV3mJQ4W8Yve/wZDjDWUM22XPl0NI79il4xL9Gcaqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GiKT0zdNLJ3B97l3Jyn7GcPa5qZWz6jlR0fqr4sh+sw=; b=Rf2ilKDqBSUS7NJJUODjUH4B5eIonGCrtMKrPiHu7D8PyT8I8zQOkGUS4F+IYaDyBwxGJpu7NHZCVVqo8CTvSLxlXGZFOVoVwMcLxNbikcMSVNBeccubILcoktm4WE8/6o7tyKH+7g5hMVWa1XT8E/dKpbe9QD3iHTeNcaxEeI4= Received: from MN2PR18MB2848.namprd18.prod.outlook.com (20.179.21.149) by MN2PR18MB2592.namprd18.prod.outlook.com (20.179.83.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.22; Mon, 2 Dec 2019 14:41:15 +0000 Received: from MN2PR18MB2848.namprd18.prod.outlook.com ([fe80::a8a7:cb5b:a6a6:9693]) by MN2PR18MB2848.namprd18.prod.outlook.com ([fe80::a8a7:cb5b:a6a6:9693%7]) with mapi id 15.20.2495.014; Mon, 2 Dec 2019 14:41:15 +0000 From: Harman Kalra To: Jerin Jacob Kollanukkaran , Nithin Kumar Dabilpuram , Kiran Kumar Kokkilagadda CC: "dev@dpdk.org" , Harman Kalra , "stable@dpdk.org" Thread-Topic: [PATCH] net/octeontx2: fix VF configuration fail Thread-Index: AQHVqR6MOe2Hhn28I0anA5IKyI/4/A== Date: Mon, 2 Dec 2019 14:41:15 +0000 Message-ID: <1575297605-26773-1-git-send-email-hkalra@marvell.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0110.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::26) To MN2PR18MB2848.namprd18.prod.outlook.com (2603:10b6:208:3e::21) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 15a84dc8-1f61-47ba-9b91-08d77735aed8 x-ms-traffictypediagnostic: MN2PR18MB2592: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1303; x-forefront-prvs: 0239D46DB6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(39860400002)(136003)(376002)(346002)(199004)(189003)(386003)(66066001)(6486002)(6436002)(50226002)(8676002)(81156014)(6116002)(2906002)(450100002)(66946007)(4326008)(86362001)(66556008)(64756008)(66446008)(66476007)(6506007)(110136005)(478600001)(25786009)(186003)(54906003)(3846002)(81166006)(6512007)(256004)(14444005)(8936002)(55236004)(2616005)(102836004)(5660300002)(52116002)(36756003)(316002)(99286004)(71200400001)(71190400001)(6636002)(4744005)(7736002)(14454004)(305945005)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2592; H:MN2PR18MB2848.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: v5ghkrdSGeBkye78lQ6iryXgfpkipEv1tJcdhKUYlHagxkt5f4YQHlnGXagVGgpNjKs/W7zgx8bbDsBrGw4u7Y0k1JgYbS63Bh4cGLQ7Ykf7rOIztUX33pRo0eVqJadfvaPzU3ufy2QeRedKKTTtjsKlKEEFw5M8dR+gOSwWHR5Kz+j9JreOgg3y3JhS6VuL7fOzXSAyNu+yqL8gh37cKml+QijCr6Gz5X0rubrNosYmZxaW92apbcyFlVsmkMlegtCeuanU6p+M5oSQRhRI+DrIoWLSsh7KjhFccAP3kkNM4bL+S9uSAHhow/hbEAg4A2vy0tce4N7vTFhExN9Ip/ZOdUMwfxdKDdeaqhBl8wjS+BAIoUyXV+GVc9yCplDUUyb6SxHDUAp2WocirrG1NOKkZYYlME4O0w3IShOOmTKrOlG9IrhbaJ1EjtVQyDD4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 15a84dc8-1f61-47ba-9b91-08d77735aed8 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Dec 2019 14:41:15.1724 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: recE6OwEy3wZjpGf/LNisE+/DNETZj4wCJ1z1xfzm0u2qAt47oRoH2vnR1rJ9rlMDqL5vSmYyAh6lhZnGJ7HFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2592 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-02_02:2019-11-29,2019-12-02 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: fix VF configuration fail X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Returning -ENOTSUP only in case loopback mode is enabled and device is VF or SDP. Fixes: c2c0aa75cd01 ("net/octeontx2: fix loopback config return for VF") Cc: stable@dpdk.org Signed-off-by: Harman Kalra --- drivers/net/octeontx2/otx2_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/ot= x2_ethdev.c index ed329273d..43c6107a8 100644 --- a/drivers/net/octeontx2/otx2_ethdev.c +++ b/drivers/net/octeontx2/otx2_ethdev.c @@ -204,7 +204,7 @@ cgx_intlbk_enable(struct otx2_eth_dev *dev, bool en) { struct otx2_mbox *mbox =3D dev->mbox; =20 - if (otx2_dev_is_vf_or_sdp(dev)) + if (en && otx2_dev_is_vf_or_sdp(dev)) return -ENOTSUP; =20 if (en) --=20 2.18.0