Skip to contentSkip to conversation

net/ice: fix mbuf fast freeing

PATCH Superseded Alvin Zhang 2 participants 3 messages Apr 25, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: fix mbuf fast freeing

As i40e support per queue MBUF_FAST_FREE, ice should have the same implemenation.

Fixes 6eac0b7fde95 ("net/ice: support advance Rx/Tx")
---
 drivers/net/ice/ice_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +1 -1
index f0dc543..d4f0c3f 100644
@@ -3530,7 +3530,7 @@ static int ice_init_rss(struct ice_pf *pf)
 	}
 
 	dev_info->rx_queue_offload_capa = 0;
-	dev_info->tx_queue_offload_capa = 0;
+	dev_info->tx_queue_offload_capa = DEV_TX_OFFLOAD_MBUF_FAST_FREE;
 
 	dev_info->reta_size = pf->hash_lut_size;
 	dev_info->hash_key_size = (VSIQF_HKEY_MAX_INDEX + 1) * sizeof(uint32_t);
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH v2 1/1 net/ice: fix mbuf fast freeing

As i40e support per queue MBUF_FAST_FREE, ice should have the same implementation.

Fixes 6eac0b7fde95 ("net/ice: support advance Rx/Tx")
---
 drivers/net/ice/ice_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +1 -1
index f0dc543..d4f0c3f 100644
@@ -3530,7 +3530,7 @@ static int ice_init_rss(struct ice_pf *pf)
 	}
 
 	dev_info->rx_queue_offload_capa = 0;
-	dev_info->tx_queue_offload_capa = 0;
+	dev_info->tx_queue_offload_capa = DEV_TX_OFFLOAD_MBUF_FAST_FREE;
 
 	dev_info->reta_size = pf->hash_lut_size;
 	dev_info->hash_key_size = (VSIQF_HKEY_MAX_INDEX + 1) * sizeof(uint32_t);
Signature · 1 line
1.8.3.1
Acked-by on v2 1/1 Applied
#2 lore raw
Quoted 11 lines

-----Original Message-----
From: Zhang, AlvinX <[email protected]>
Sent: Sunday, April 25, 2021 1:19 PM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
Subject: [PATCH v2] net/ice: fix mbuf fast freeing

As i40e support per queue MBUF_FAST_FREE, ice should have the same implementation.

The change should not related with i40e, changed to:

MBUF_FAST_FREE should be supported as per queue offload for ice.

Quoted 5 lines
Fixes 6eac0b7fde95 ("net/ice: support advance Rx/Tx")

Applied to dpdk-next-net-intel.

Thanks
Qi