[dpdk-dev] [PATCH v2] ethdev: support flow aging
Ferruh Yigit
ferruh.yigit at intel.com
Thu Apr 16 15:32:39 CEST 2020
On 4/14/2020 9:49 AM, Ori Kam wrote:
>
>
>> -----Original Message-----
>> From: Dong Zhou <dongz at mellanox.com>
>> Sent: Tuesday, April 14, 2020 11:33 AM
>> To: Ori Kam <orika at mellanox.com>; Matan Azrad <matan at mellanox.com>;
>> wenzhuo.lu at intel.com; jingjing.wu at intel.com; bernard.iremonger at intel.com;
>> john.mcnamara at intel.com; marko.kovacevic at intel.com; Thomas Monjalon
>> <thomas at monjalon.net>; ferruh.yigit at intel.com; arybchenko at solarflare.com
>> Cc: dev at dpdk.org
>> Subject: [PATCH v2] ethdev: support flow aging
>>
>> One of the reasons to destroy a flow is the fact that no packet matches the
>> flow for "timeout" time.
>> For example, when TCP\UDP sessions are suddenly closed.
>>
>> Currently, there is not any DPDK mechanism for flow aging and the
>> applications use their own ways to detect and destroy aged-out flows.
>>
>> The flow aging implementation need include:
>> - A new rte_flow action: RTE_FLOW_ACTION_TYPE_AGE to set the timeout and
>> the application flow context for each flow.
>> - A new ethdev event: RTE_ETH_EVENT_FLOW_AGED for the driver to report
>> that there are new aged-out flows.
>> - A new rte_flow API: rte_flow_get_aged_flows to get the aged-out flows
>> contexts from the port.
>> - Support input flow aging command line in Testpmd.
>>
>> Signed-off-by: Dong Zhou <dongz at mellanox.com>
>> ---
> Like said before nice patch and hope to see more patches from you.
> Just a small nit please next time add change log.
>
> Acked-by: Ori Kam <orika at mellanox.com>
Moved other acks from v1:
Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>
Acked-by: Jerin Jacob <jerinj at marvell.com>
Acked-by: Matan Azrad <matan at mellanox.com>
Applied to dpdk-next-net/master, thanks.
More information about the dev
mailing list