[PATCH v3 19/19] net/i40e: advertise flow keep capability

Medvedkin, Vladimir vladimir.medvedkin at intel.com
Sat Sep 19 18:16:19 CEST 2026


Acked-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>

On 9/16/2026 1:18 PM, Anatoly Burakov wrote:
> The i40e driver's rte_flow implementation has always endeavored to keep
> flows across device restart, however it never advertised this capability.
> Advertise it explicitly.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
>   drivers/net/intel/i40e/i40e_ethdev.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/intel/i40e/i40e_ethdev.c b/drivers/net/intel/i40e/i40e_ethdev.c
> index cca60e2889f..4e8a6a83b15 100644
> --- a/drivers/net/intel/i40e/i40e_ethdev.c
> +++ b/drivers/net/intel/i40e/i40e_ethdev.c
> @@ -3664,7 +3664,8 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
>   	dev_info->dev_capa =
>   		RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |
>   		RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;
> -	dev_info->dev_capa &= ~RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP;
> +	/* rte_flow rules are kept across dev_stop/dev_start and replayed on start */
> +	dev_info->dev_capa |= RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP;
>   
>   	dev_info->hash_key_size = (I40E_PFQF_HKEY_MAX_INDEX + 1) *
>   						sizeof(uint32_t);

-- 
Regards,
Vladimir



More information about the dev mailing list