[dpdk-dev] [PATCH] net/mlx5: fix tc rule handle assignment
Shahaf Shuler
shahafs at mellanox.com
Thu Jan 24 12:16:00 CET 2019
Tuesday, January 22, 2019 2:06 PM, Viacheslav Ovsiienko:
> Subject: [dpdk-dev] [PATCH] net/mlx5: fix tc rule handle assignment
>
> When tc rule is created via Netlink message application can provide the
> unique rule value which can be accepted by the kernel. Than rule is managed
> with this assigned handle. It was found that kernel can reject the proposed
> handle and assign its own handle value, the rule control is lost, because
> application uses its initially prorosed rule handle and knows nothing about
> handle been repleced.
>
> The kernel can assign handle automatically, the application can get the
> assigned handle value by specifying NLM_F_ECHO flag in Netlink message
> when rule is being created. The kernel sends back the full descriptor of rule
> and handle can be retrieved from and stored by application for further rule
> management.
>
> Fixes: 57123c00c1b8 ("net/mlx5: add Linux TC flower driver for E-Switch
> flow")
> Cc: stable at dpdk.org
>
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
Applied to next-net-mlx, thanks.
More information about the dev
mailing list