* [PATCH] net/ice: fix Rx of large packets
@ 2025-04-08 15:57 Bruce Richardson
2025-04-18 3:04 ` Liao, TingtingX
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Richardson @ 2025-04-08 15:57 UTC (permalink / raw)
To: dev; +Cc: Bruce Richardson, stable, Anatoly Burakov
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")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
drivers/net/intel/ice/ice_ethdev.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index 21d3795954..2e163d706c 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -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))
--
2.45.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net/ice: fix Rx of large packets
2025-04-08 15:57 [PATCH] net/ice: fix Rx of large packets Bruce Richardson
@ 2025-04-18 3:04 ` Liao, TingtingX
0 siblings, 0 replies; 2+ messages in thread
From: Liao, TingtingX @ 2025-04-18 3:04 UTC (permalink / raw)
To: dev; +Cc: stable, Burakov, Anatoly, Richardson, Bruce
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
> -----Original Message-----
> From: Bruce Richardson
> Sent: Tuesday, April 08, 2025 23:57
> To: dev@dpdk.org
> Cc: Richardson, Bruce; stable@dpdk.org; 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.
>
> Fixes: 3c79a3d91d9d ("net/ice: fix mbuf cleanup function")
> Cc: stable@dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
Tested-by: Liao, Tingting <tingtingx.liao@intel.com>
[-- Attachment #2: Type: text/html, Size: 3483 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-18 3:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-08 15:57 [PATCH] net/ice: fix Rx of large packets Bruce Richardson
2025-04-18 3:04 ` Liao, TingtingX
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).