DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/9] net/i40e: skip FDIR flow engine when FDIR is unavailable
@ 2026-10-30  9:40 Anatoly Burakov
  2026-10-30  9:40 ` [PATCH v1 2/9] net/i40e: reject VLAN with tunnel items in FDIR flows Anatoly Burakov
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Anatoly Burakov @ 2026-10-30  9:40 UTC (permalink / raw)
  To: dev

The FDIR flow engine was initialized even when flow director was not
usable. With no FDIR filter space, engine init failed and logged an
error. When FDIR was disabled because its queue could not be allocated,
the engine was initialized and FDIR flows only failed at install.

Return -ENOTSUP in both cases so that the engine is skipped.

Fixes: 05432a6e4676 ("net/i40e: reimplement FDIR parser")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
 drivers/net/intel/i40e/i40e_flow_fdir.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/intel/i40e/i40e_flow_fdir.c b/drivers/net/intel/i40e/i40e_flow_fdir.c
index 55997295edb..197b93f3746 100644
--- a/drivers/net/intel/i40e/i40e_flow_fdir.c
+++ b/drivers/net/intel/i40e/i40e_flow_fdir.c
@@ -2010,6 +2010,9 @@ i40e_fdir_flow_engine_init(const struct ci_flow_engine *engine,
 	uint32_t i;
 	int ret;
 
+	if ((pf->flags & I40E_FLAG_FDIR) == 0 || fdir_info->fdir_space_size == 0)
+		return -ENOTSUP;
+
 	snprintf(fdir_hash_name, sizeof(fdir_hash_name), "fdir_%s", dev_data->name);
 
 	struct rte_hash_parameters fdir_hash_params = {
-- 
2.52.0


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

end of thread, other threads:[~2026-10-30 17:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-30  9:40 [PATCH v1 1/9] net/i40e: skip FDIR flow engine when FDIR is unavailable Anatoly Burakov
2026-10-30  9:40 ` [PATCH v1 2/9] net/i40e: reject VLAN with tunnel items in FDIR flows Anatoly Burakov
2026-10-30 17:12   ` Bruce Richardson
2026-10-30  9:40 ` [PATCH v1 3/9] net/i40e: move FDIR flow state out of the flow engine Anatoly Burakov
2026-10-30  9:40 ` [PATCH v1 4/9] net/i40e: fix FDIR ethertype match with other items Anatoly Burakov
2026-10-30  9:40 ` [PATCH v1 5/9] net/i40e: validate IPv4 fragment offset without range Anatoly Burakov
2026-10-30  9:40 ` [PATCH v1 6/9] net/i40e: fix SCTP verification tag truncation in FDIR Anatoly Burakov
2026-10-30  9:40 ` [PATCH v1 7/9] net/i40e: validate raw FDIR offsets and lengths Anatoly Burakov
2026-10-30  9:40 ` [PATCH v1 8/9] net/i40e: disable tunnel replacement in multi-driver mode Anatoly Burakov
2026-10-30  9:40 ` [PATCH v1 9/9] net/i40e: allow L2 and L3 only hash patterns Anatoly Burakov
2026-10-30 16:49 ` [PATCH v1 1/9] net/i40e: skip FDIR flow engine when FDIR is unavailable Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox