From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Zhao Subject: [PATCH] net/i40e: fix FDIR check programming ret error Date: Wed, 1 Aug 2018 10:21:48 +0800 Message-ID: <1533090108-833-1-git-send-email-wei.zhao1@intel.com> Cc: qi.z.zhang@intel.com, Wei Zhao To: dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 659414CB3 for ; Wed, 1 Aug 2018 04:43:47 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" In i40e FDIR PMD code for checking programming status, when the action of add FDIR filter is ok, i40e NIC will not write back to programming status descriptor, so if PMD code check DD is not done after period of time dealy, it means the add or remove filter action is ok. It only write back descriptor when fail. Fixes: 7546dc4a1331 ("net/i40e: fix FDIR check programming status error") Signed-off-by: Wei Zhao --- drivers/net/i40e/i40e_fdir.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c index 2b299c7..d41601a 100644 --- a/drivers/net/i40e/i40e_fdir.c +++ b/drivers/net/i40e/i40e_fdir.c @@ -1360,8 +1360,6 @@ i40e_check_fdir_programming_status(struct i40e_rx_queue *rxq) I40E_PCI_REG_WRITE(rxq->qrx_tail, rxq->nb_rx_desc - 1); else I40E_PCI_REG_WRITE(rxq->qrx_tail, rxq->rx_tail - 1); - } else { - ret = -1; } return ret; -- 2.7.5