DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/i40e: fix missing support for RSS IPv4
@ 2025-07-05 21:54 Dhanya Pillai
  2025-07-07 16:32 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: Dhanya Pillai @ 2025-07-05 21:54 UTC (permalink / raw)
  To: Bruce Richardson, Kirill Rybalchenko, Ferruh Yigit
  Cc: dev, Dhanya Pillai, stable

Currently, i40e driver is missing support for RTE_ETH_RSS_IPV4
flag. Configuring rss function to RTE_ETH_RSS_IPV4 returns
invalid rss hash function value.

Fixes: a286ebeb0714 ("net/i40e: add dynamic mapping of SW flow types to HW pctypes")
Cc: stable@dpdk.org

Signed-off-by: Dhanya Pillai <dhanya.r.pillai@intel.com>
---
 drivers/net/intel/i40e/i40e_rxtx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/intel/i40e/i40e_rxtx.c b/drivers/net/intel/i40e/i40e_rxtx.c
index 0b06130fe5..aba3c11ee5 100644
--- a/drivers/net/intel/i40e/i40e_rxtx.c
+++ b/drivers/net/intel/i40e/i40e_rxtx.c
@@ -3657,6 +3657,8 @@ i40e_set_default_pctype_table(struct rte_eth_dev *dev)
 	ad->flow_types_mask = 0ULL;
 	ad->pctypes_mask = 0ULL;
 
+	ad->pctypes_tbl[RTE_ETH_FLOW_IPV4] =
+				(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_OTHER);
 	ad->pctypes_tbl[RTE_ETH_FLOW_FRAG_IPV4] =
 				(1ULL << I40E_FILTER_PCTYPE_FRAG_IPV4);
 	ad->pctypes_tbl[RTE_ETH_FLOW_NONFRAG_IPV4_UDP] =
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/i40e: fix missing support for RSS IPv4
  2025-07-05 21:54 [PATCH] net/i40e: fix missing support for RSS IPv4 Dhanya Pillai
@ 2025-07-07 16:32 ` Bruce Richardson
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2025-07-07 16:32 UTC (permalink / raw)
  To: Dhanya Pillai; +Cc: Kirill Rybalchenko, dev, stable

On Sat, Jul 05, 2025 at 09:54:07PM +0000, Dhanya Pillai wrote:
> Currently, i40e driver is missing support for RTE_ETH_RSS_IPV4
> flag. Configuring rss function to RTE_ETH_RSS_IPV4 returns
> invalid rss hash function value.
> 
> Fixes: a286ebeb0714 ("net/i40e: add dynamic mapping of SW flow types to HW pctypes")
> Cc: stable@dpdk.org
> 

Reported-by: Morten Brørup <mb@smartsharesystems.com>
> Signed-off-by: Dhanya Pillai <dhanya.r.pillai@intel.com>

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied to dpdk-next-net-intel,

Thanks,
/Bruce

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-07 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-05 21:54 [PATCH] net/i40e: fix missing support for RSS IPv4 Dhanya Pillai
2025-07-07 16:32 ` Bruce Richardson

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).