From: Harish Patil Date: Wed, 19 Oct 2016 04:11:40 +0000 (-0700) Subject: net/qede: skip slow path polling for 100G VF device X-Git-Tag: spdx-start~5440 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=de027ce7cea8cbd1ef4b8b6ec536a139d6bdc3c4;p=dpdk.git net/qede: skip slow path polling for 100G VF device 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: 2af14ca79c0a ("net/qede: support 100G") Signed-off-by: Harish Patil --- diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index c93b7afbac..2763d63fb1 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -1372,7 +1372,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);