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 0386BA00C5 for ; Wed, 8 Jul 2020 10:08:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D4E281DC12; Wed, 8 Jul 2020 10:08:55 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D33CF1DBE6; Wed, 8 Jul 2020 10:08:52 +0200 (CEST) IronPort-SDR: GfBXk0JPHjTku04j1C63imVPk+gvV2kl7Y7iK3loZQ/2DSRJGJQHVF9RhpGhXk8083/7gzMPJH SLvoYtF7xUjQ== X-IronPort-AV: E=McAfee;i="6000,8403,9675"; a="135989803" X-IronPort-AV: E=Sophos;i="5.75,327,1589266800"; d="scan'208";a="135989803" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2020 01:08:51 -0700 IronPort-SDR: lnGe08oPUYnhuVjtQUH1UIo9HhqQe6QWcdQ1aLPjSnTLwjjl8DRBqYGOEKEQxxInOev/yeU0oN w73cBoQ7ukLQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,327,1589266800"; d="scan'208";a="297647605" Received: from dut85.sh.intel.com ([10.240.183.157]) by orsmga002.jf.intel.com with ESMTP; 08 Jul 2020 01:08:49 -0700 From: Jiang Mao To: xiaolong.ye@intel.com Cc: dev@dpdk.org, stable@dpdk.org, maox.jiang@intel.com Date: Thu, 9 Jul 2020 03:52:39 +0800 Message-Id: <20200708195239.4543-1-maox.jiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200609022538.27665-2-maox.jiang@intel.com> References: <20200609022538.27665-2-maox.jiang@intel.com> Subject: [dpdk-stable] [PATCH 2/2] net/i40e: fix fdir allocating msix resource error 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" Fdir allocating msix resource is not strictly necessary, if no resource left, print a warning message. Fixes: 4861cde461 (i40e: new poll mode driver) Cc: stable@dpdk.org Signed-off-by: Jiang Mao --- drivers/net/i40e/i40e_ethdev.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 16fcb8d..885b637 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -5732,6 +5732,17 @@ struct i40e_vsi * vsi->nb_msix = RTE_MIN(vsi->nb_qps, RTE_MAX_RXTX_INTR_VEC_ID); } + } else if (type == I40E_VSI_FDIR) { + ret = i40e_res_pool_alloc(&pf->msix_pool, 1); + if (ret < 0) { + PMD_DRV_LOG(WARNING, "MSIX vectors used up, FDIR can`t bind interrupt"); + vsi->msix_intr = 0; + vsi->nb_msix = 0; + } else { + vsi->msix_intr = ret; + vsi->nb_msix = 1; + } + } else if (type != I40E_VSI_SRIOV) { ret = i40e_res_pool_alloc(&pf->msix_pool, 1); if (ret < 0) { -- 1.8.3.1