> -----Original Message-----
> From: Bing Zhao <[email protected]>
> Sent: Thursday, October 22, 2020 17:07
> To: [email protected]; [email protected]
> Cc: [email protected]; Ori Kam <[email protected]>; Raslan Darawsheh
> <[email protected]>
> Subject: [PATCH v2 4/6] net/mlx5: conditional hairpin auto bind
>
> In single port hairpin mode, after the queues are configured during start up.
> The binding process will be enabled automatically in the port start phase and
> the default control flow for egress will be created.
>
> When switching to two ports hairpin mode, the auto binding process should be
> skipped if there is no TX queue with the peer RX queue on the same device,
> and it should be skipped also if the queues are configured with manual bind
> attribute.
>
> If the explicit TX flow rule mode is configured or hairpin is between two
> ports,
> the default control flows for TX queues should not be created.
>
> Signed-off-by: Bing Zhao <[email protected]>
Acked-by: Viacheslav Ovsiienko <[email protected]>
> ---
> drivers/net/mlx5/mlx5_trigger.c | 33 +++++++++++++++++++++++++++++++--
> 1 file changed, 31 insertions(+), 2 deletions(-)
>