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 44499A04DD for ; Tue, 26 Nov 2019 08:04:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 23BF74C9D; Tue, 26 Nov 2019 08:04:10 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id B108BA3; Tue, 26 Nov 2019 08:04:06 +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 xAQ7152E003011; Mon, 25 Nov 2019 23:04:06 -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=pfpt0818; bh=uKtVEGXsBzMOmS8Hw2j1k43JFN8L+WX8q0THfoUDrxA=; b=UvOtXjH1r+hqw8EvvnC89MW0xkdt/GxzwfTq4Uat4s9ckvPoDxJH/XUpoosJRMMqg4LZ yg0QwiuuadihXL225+7X7znUJZ+64BwFvoRDrA7LuKin82i6suXNWk6jimTd84AvUhXz xZ/wAq59n/R5ua9hs6D0+UREUgZ+w5nr/3Wp5VPZe3gQqqymGDZ+g8C5pYwaWK1F8Xiu LnOkVkJ6t1gj15/AvDW+VgU7VoUL5ABm7zHREIYQWxcC+37nqGMoItpWR0fEaBnFiMXy FEEUyB6Ke2coiHka3+1ARFWCm6zx2S3ltNDIQ2AKtwkxgV6DsPq43SULXgmi01Ucxg+W sw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2wg3ksnp30-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 25 Nov 2019 23:04:06 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 25 Nov 2019 23:04:04 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Mon, 25 Nov 2019 23:04:04 -0800 Received: from localhost.localdomain (unknown [10.28.34.200]) by maili.marvell.com (Postfix) with ESMTP id 837223F703F; Mon, 25 Nov 2019 23:04:02 -0800 (PST) From: Sunil Kumar Kori To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: , , Sunil Kumar Kori Date: Tue, 26 Nov 2019 12:33:58 +0530 Message-ID: <20191126070358.11322-1-skori@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-26_01:2019-11-21,2019-11-26 signatures=0 Subject: [dpdk-stable] [PATCH] net/octeontx2: error on loopback mode for VFs X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" loopback mode is not supported for VFs so returning error if VF is being configured with loopback mode. Fixes: 920717e4d8ba ("net/octeontx2: add device start operation") Signed-off-by: Sunil Kumar Kori --- 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/otx2_ethdev.c index ddab3aa06..70eebaef1 100644 --- a/drivers/net/octeontx2/otx2_ethdev.c +++ b/drivers/net/octeontx2/otx2_ethdev.c @@ -205,7 +205,7 @@ cgx_intlbk_enable(struct otx2_eth_dev *dev, bool en) struct otx2_mbox *mbox = dev->mbox; if (otx2_dev_is_vf_or_sdp(dev)) - return 0; + return -ENOTSUP; if (en) otx2_mbox_alloc_msg_cgx_intlbk_enable(mbox); -- 2.17.1