[PATCH] net/hns3: support flow rule priority
Ferruh Yigit
ferruh.yigit at amd.com
Wed Nov 6 03:12:21 CET 2024
On 10/30/2024 9:29 AM, Jie Hai wrote:
> From: Dengdui Huang <huangdengdui at huawei.com>
>
> The hardware determines the priority of the flow rule based on the position
> of the rule in the hardware flow director table. Lower index denotes higher
> priority (it means when a packet matches multiple indexes, the smaller
> index wins). This patch implements flow priority based on this feature.
>
> To avoid affecting the current use, use runtime config 'fdir_index_config'
> to select flow director index strategy. The options are as follows:
> 1. hash: Default config, the rule priority level cannot be set.
> The driver generates a flow index based on the hash of the rte_flow key.
> 2. priority: The flow rule priority feature is supported.
> The driver uses the rte_flow priority field as the flow director index.
>
> Signed-off-by: Dengdui Huang <huangdengdui at huawei.com>
> Signed-off-by: Jie Hai <haijie1 at huawei.com>
>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list