From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <rasesh.mody@qlogic.com>
Received: from mx0b-0016ce01.pphosted.com (mx0b-0016ce01.pphosted.com
 [67.231.156.153]) by dpdk.org (Postfix) with ESMTP id 4030A5699
 for <dev@dpdk.org>; Fri, 30 Sep 2016 09:07:16 +0200 (CEST)
Received: from pps.filterd (m0085408.ppops.net [127.0.0.1])
 by mx0b-0016ce01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id
 u8U76HaA021379 for <dev@dpdk.org>; Fri, 30 Sep 2016 00:07:15 -0700
Received: from avcashub1.qlogic.com ([198.186.0.115])
 by mx0b-0016ce01.pphosted.com with ESMTP id 25s5nvu6d2-1
 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <dev@dpdk.org>; Fri, 30 Sep 2016 00:07:15 -0700
Received: from avluser05.qlc.com (10.1.113.115) by avcashub1.qlogic.org
 (10.1.4.190) with Microsoft SMTP Server (TLS) id 14.3.235.1; Fri, 30 Sep 2016
 00:07:15 -0700
Received: (from rmody@localhost)	by avluser05.qlc.com (8.14.4/8.14.4/Submit)
 id u8U77EDt008881;	Fri, 30 Sep 2016 00:07:14 -0700
X-Authentication-Warning: avluser05.qlc.com: rmody set sender to
 rasesh.mody@qlogic.com using -f
From: Rasesh Mody <rasesh.mody@qlogic.com>
To: <dev@dpdk.org>
CC: <Dept-EngDPDKDev@qlogic.com>, Harish Patil <harish.patil@qlogic.com>
Date: Fri, 30 Sep 2016 00:06:04 -0700
Message-ID: <1475219169-8774-18-git-send-email-rasesh.mody@qlogic.com>
X-Mailer: git-send-email 1.7.10.3
In-Reply-To: <1475219169-8774-1-git-send-email-rasesh.mody@qlogic.com>
References: <1475219169-8774-1-git-send-email-rasesh.mody@qlogic.com>
MIME-Version: 1.0
Content-Type: text/plain
disclaimer: bypass
X-Proofpoint-Virus-Version: vendor=nai engine=5800 definitions=8303
 signatures=670713
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015
 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0
 reason=mlx scancount=1 engine=8.0.1-1609280000 definitions=main-1609300128
Subject: [dpdk-dev] [PATCH v2 17/22] qede: skip slowpath polling for 100G VF
	device
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 30 Sep 2016 07:07:16 -0000

From: Harish Patil <harish.patil@qlogic.com>

There is no need to poll for slowpath events for VF
device since the ramrod responses are received over
PF-VF backchannel synchronously. So the fix is to
restrict the slowpath polling for PF device only.

Fixes 2af14ca ("net/qede: support 100G")

Signed-off-by: Harish Patil <harish.patil@qlogic.com>
---
 drivers/net/qede/qede_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c
index eb9b8aa..ae188ed 100644
--- a/drivers/net/qede/qede_ethdev.c
+++ b/drivers/net/qede/qede_ethdev.c
@@ -1369,7 +1369,7 @@ static int qede_common_dev_init(struct rte_eth_dev *eth_dev, bool is_vf)
 	 * This is required since uio device uses only one MSI-x
 	 * interrupt vector but we need one for each engine.
 	 */
-	if (edev->num_hwfns > 1) {
+	if (edev->num_hwfns > 1 && IS_PF(edev)) {
 		rc = rte_eal_alarm_set(timer_period * US_PER_S,
 				       qede_poll_sp_sb_cb,
 				       (void *)eth_dev);
-- 
1.8.3.1