Skip to contentSkip to conversation

net/ice: fix Rx of large packets

PATCH In review Bruce Richardson 2 participants 3 messages Apr 8, 2025 – Apr 28, 2025 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: fix Rx of large packets

The determination of whether or not the buffer size is less than the packet MTU is made in the Rx queue start function in the ice driver. This means that we cannot choose the Rx function before we have started the queues. Move the Rx function section down in the code to fix this.

Fixes 3c79a3d91d9d ("net/ice: fix mbuf cleanup function")
---
 drivers/net/intel/ice/ice_ethdev.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/net/intel/ice/ice_ethdev.c +4 -1
index 21d3795954..2e163d706c 100644
@@ -3965,7 +3965,7 @@ ice_dev_start(struct rte_eth_dev *dev)
 	ice_declare_bitmap(pmask, ICE_PROMISC_MAX);
 	ice_zero_bitmap(pmask, ICE_PROMISC_MAX);
 
-	ice_set_rx_function(dev);
+	/* choose vector Tx function before starting queues */
 	ice_set_tx_function(dev);
 
 	/* program Tx queues' context in hardware */
@@ -3996,6 +3996,9 @@ ice_dev_start(struct rte_eth_dev *dev)
 		}
 	}
 
+	/* we need to choose Rx fn after queue start, when we know if we need scattered Rx */
+	ice_set_rx_function(dev);
+
 	mask = RTE_ETH_VLAN_STRIP_MASK | RTE_ETH_VLAN_FILTER_MASK |
 			RTE_ETH_VLAN_EXTEND_MASK;
 	if (ice_is_dvm_ena(hw))
Signature · 1 line
2.45.2
Tested-by on v1 1/1
#1 lore raw
Quoted 12 lines

-----Original Message-----
From: Bruce Richardson
Sent: Tuesday, April 08, 2025 23:57
To: [email protected]
Cc: Richardson, Bruce; [email protected]; Burakov, Anatoly
Subject: [PATCH] net/ice: fix Rx of large packets

The determination of whether or not the buffer size is less than the packet MTU is made in the Rx queue start function in the ice driver. This means that we cannot choose the Rx function before we have started the queues. Move the Rx function section down in the code to fix this.

Quoted 5 lines
Fixes 3c79a3d91d9d ("net/ice: fix mbuf cleanup function")

---

author Applied
#2 lore raw
Quoted 20 lines · TingtingX
Quoted 8 lines

-----Original Message-----

From: Bruce Richardson

Sent: Tuesday, April 08, 2025 23:57

To: [email protected]

Quoted 8 lines

Cc: Richardson, Bruce; [email protected]; Burakov, Anatoly
Subject: [PATCH] net/ice: fix Rx of large packets

The determination of whether or not the buffer size is less than the packet MTU is made in the Rx queue start function in the ice driver. This means that we cannot choose the Rx function before we have

started

Quoted 1 line

the queues. Move the Rx function section down in the code to fix

this.

Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Fixes 3c79a3d91d9d ("net/ice: fix mbuf cleanup function")

---

Applied to dpdk-next-net-intel.

/Bruce