[PATCH v9 09/30] net/hinic3: return success when no FDIR rule to update
Jiacheng Ye
yejiacheng4 at h-partners.com
Wed Nov 25 18:04:03 CET 2026
hinic3_enable_rxq_fdir_filter() fails when the queue has no TCAM rule.
rx_queue_start() and rx_queue_stop() propagate this error as fatal, so
such a queue cannot be started or stopped. There is nothing to update in
that case; return success.
The no-rule path originally returned an uninitialized value; then
commit b247199927a1 ("net/hinic3: fix return value of FDIR enabling")
set it to -EINVAL, which still makes the callers fail.
Fixes: efa3b9b36fc7 ("net/hinic3: add flow control and filters")
Fixes: b247199927a1 ("net/hinic3: fix return value of FDIR enabling")
Cc: stable at dpdk.org
Signed-off-by: Jiacheng Ye <yejiacheng4 at h-partners.com>
---
drivers/net/hinic3/hinic3_fdir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hinic3/hinic3_fdir.c b/drivers/net/hinic3/hinic3_fdir.c
index 95ce7cfe16..f3a570b358 100644
--- a/drivers/net/hinic3/hinic3_fdir.c
+++ b/drivers/net/hinic3/hinic3_fdir.c
@@ -1278,7 +1278,7 @@ hinic3_enable_rxq_fdir_filter(struct rte_eth_dev *dev, uint32_t queue_id, uint32
struct hinic3_nic_dev *nic_dev = HINIC3_ETH_DEV_TO_PRIVATE_NIC_DEV(dev);
struct hinic3_tcam_filter *it;
struct hinic3_tcam_cfg_rule fdir_tcam_rule;
- int ret = -EINVAL;
+ int ret = 0;
uint32_t queue_res;
uint16_t index;
--
2.33.0
More information about the stable
mailing list