Thread (9 messages) 9 messages, 3 authors, 2017-02-09
STALE3425d

[PATCH v2] net/i40e: set no drop for traffic class

From: <hidden>
Date: 2017-01-16 15:53:04
Subsystem: networking drivers, the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

From: Rory Sexton <redacted>

The default traffic class in i40e is set to drop versus on ixgbe
it isset to no drop. This means when packets build up in the RX
SRAM on the NIC, they are dropped, and they do this when the SW
descriptor rings fill up.

This patch changes this behaviour and our testing shows there
are no drops as a result.

Signed-off-by: Rory Sexton <redacted>
Signed-off-by: Nemanja Marjanovic <redacted>
---
v2:
* Changed to use existing api to set priority register directly.

 drivers/net/i40e/i40e_ethdev.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index 67778ba..97339b5 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -2985,8 +2985,11 @@ static int
 i40e_priority_flow_ctrl_set(__rte_unused struct rte_eth_dev *dev,
 			    __rte_unused struct rte_eth_pfc_conf *pfc_conf)
 {
+	struct i40e_hw *hw = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private);
+
 	PMD_INIT_FUNC_TRACE();
 
+	I40E_WRITE_REG(hw, I40E_PRTDCB_TC2PFC, 0xff);
 	return -ENOSYS;
 }
 
-- 
2.4.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help