Skip to contentSkip to conversation

net/i40e: revert fix FDIR check programming ret error

PATCH Superseded Wei Zhao 2 participants 3 messages Aug 1, 2018 Network drivers

lore
Share & tools
lore

Wei Zhao

author
#0 lore raw

PATCH 1/1 net/i40e: revert fix FDIR check programming ret error

This reverts commit 7546dc4a1331340ecb665af9af0a005bb8b657c8.

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. So, there is no issue for the orignal code.

Fixes 7546dc4a1331 ("net/i40e: fix FDIR check programming status error")
---
 drivers/net/i40e/i40e_fdir.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/i40e/i40e_fdir.c +0 -2
index 2b299c7..d41601a 100644
@@ -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;
Signature · 1 line
2.7.5
author
#1 lore raw

PATCH v2 1/1 net/i40e: revert fix FDIR check programming ret error

This reverts commit 7546dc4a1331340ecb665af9af0a005bb8b657c8.

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. So, there is no issue for the original code.

Fixes 7546dc4a1331 ("net/i40e: fix FDIR check programming status error")

---

v2:
-fix commit log warning in v1.

---
 drivers/net/i40e/i40e_fdir.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/i40e/i40e_fdir.c +0 -2
index 2b299c7..d41601a 100644
@@ -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;
Signature · 1 line
2.7.5
Applied
#2 lore raw
Quoted 9 lines

-----Original Message-----
From: Zhao1, Wei
Sent: Wednesday, August 1, 2018 10:55 AM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH v2] net/i40e: revert fix FDIR check programming ret error

This reverts commit 7546dc4a1331340ecb665af9af0a005bb8b657c8.

Quoted 7 lines

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. So, there is no issue for the original code.

Fixes 7546dc4a1331 ("net/i40e: fix FDIR check programming status error")

Removed fix line.

Quoted 1 line

Applied to dpdk-next-net-intel.

Thanks
Qi