Skip to contentSkip to conversation

net/ixgbe: fix error of drop queue index

PATCH Superseded kevin-intel 2 participants 4 messages Nov 7, 2022 – Nov 11, 2022 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ixgbe: fix error of drop queue index

The drop queue index was not set when adding internal Flow Director Configuration copy in ixgbe device private data. Therefore dropped packets would be received by queue 0 which is set to drop queue.

This commit sets drop queue index as IXGBE_FDIR_DROP_QUEUE to fix this issue.

Fixes 5007ac13189d ("ethdev: remove deprecated Flow Director configuration")
---
 drivers/net/ixgbe/ixgbe_flow.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ixgbe/ixgbe_flow.c +1 -0
index 1250c2dc12..110ff34fcc 100644
@@ -2759,6 +2759,7 @@ ixgbe_parse_fdir_filter(struct rte_eth_dev *dev,
 	int ret;
 	struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
 	struct rte_eth_fdir_conf *fdir_conf = IXGBE_DEV_FDIR_CONF(dev);
+	fdir_conf->drop_queue = IXGBE_FDIR_DROP_QUEUE;
 
 	if (hw->mac.type != ixgbe_mac_82599EB &&
 		hw->mac.type != ixgbe_mac_X540 &&
Signature · 1 line
2.34.1
#1 lore raw
Quoted 18 lines

-----Original Message-----
From: kevin-intel <[email protected]>
Sent: Monday, November 7, 2022 4:49 PM
To: [email protected]
Cc: Zhou, YidingX <[email protected]>; Deng, KaiwenX <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>; Andrew Rybchenko <[email protected]>; Dongdong Liu <[email protected]>
Subject: [PATCH] net/ixgbe: fix error of drop queue index

The drop queue index was not set when adding internal Flow Director Configuration copy in ixgbe device private data.
Therefore dropped packets would be received by queue 0 which is set to drop queue.

Quoted 7 lines

This commit sets drop queue index as IXGBE_FDIR_DROP_QUEUE to fix this issue.

Fixes 5007ac13189d ("ethdev: remove deprecated Flow Director

configuration")

No need to add company name in your signed-off name. I assume it should be
Kaiwen Deng <[email protected]>

Quoted 9 lines
---
 drivers/net/ixgbe/ixgbe_flow.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ixgbe/ixgbe_flow.c +0 -0
index 1250c2dc12..110ff34fcc 100644

drivers/net/ixgbe/ixgbe_flow.c ixgbe_parse_fdir_filter(struct rte_eth_dev *dev, · line 2763

Quoted 5 lines
drivers/net/ixgbe/ixgbe_flow.c +1 -0
@@ -2759,6 +2759,7 @@ ixgbe_parse_fdir_filter(struct rte_eth_dev *dev,
 	int ret;
 	struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data-
 >dev_private);
 	struct rte_eth_fdir_conf *fdir_conf = IXGBE_DEV_FDIR_CONF(dev);
+	fdir_conf->drop_queue = IXGBE_FDIR_DROP_QUEUE;

The expected drop action is to drop packet, there is NO "drop queue" in the generic flow APIs if you want to steer packet to queue 0, just use rte_flow_action_queue with queue 0 What's the gap?

Quoted 5 lines
drivers/net/ixgbe/ixgbe_flow.c +0 -1
 	if (hw->mac.type != ixgbe_mac_82599EB &&
 		hw->mac.type != ixgbe_mac_X540 &&
--

2.34.1

#2 lore raw

PATCH v2 1/1 net/ixgbe: fix error of drop queue index

In reply to kevin-intel

The drop queue index was not set when adding internal Flow Director Configuration copy in ixgbe device private data. Therefore dropped packets would be received by queue 0 which is set to drop queue.

This commit sets drop queue index as IXGBE_FDIR_DROP_QUEUE to fix this issue.

Fixes 5007ac13189d ("ethdev: remove deprecated Flow Director configuration")
---
 drivers/net/ixgbe/ixgbe_flow.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ixgbe/ixgbe_flow.c +1 -0
index 1250c2dc12..110ff34fcc 100644
@@ -2759,6 +2759,7 @@ ixgbe_parse_fdir_filter(struct rte_eth_dev *dev,
 	int ret;
 	struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
 	struct rte_eth_fdir_conf *fdir_conf = IXGBE_DEV_FDIR_CONF(dev);
+	fdir_conf->drop_queue = IXGBE_FDIR_DROP_QUEUE;
 
 	if (hw->mac.type != ixgbe_mac_82599EB &&
 		hw->mac.type != ixgbe_mac_X540 &&
Signature · 1 line
2.34.1
Acked-by on v2 1/1 Applied
#3 lore raw
Quoted 18 lines

-----Original Message-----
From: Kaiwen Deng <[email protected]>
Sent: Friday, November 11, 2022 2:39 PM
To: [email protected]
Cc: Yang, Qiming <[email protected]>; Zhou, YidingX <[email protected]>; Deng, KaiwenX <[email protected]>; Wang, Haiyue <[email protected]>; Dongdong Liu <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [PATCH v2] net/ixgbe: fix error of drop queue index

The drop queue index was not set when adding internal Flow Director Configuration copy in ixgbe device private data.
Therefore dropped packets would be received by queue 0 which is set to drop queue.

Quoted 7 lines

This commit sets drop queue index as IXGBE_FDIR_DROP_QUEUE to fix this issue.

Fixes 5007ac13189d ("ethdev: remove deprecated Flow Director

configuration")

Applied to dpdk-next-net-intel.

Thanks
Qi