[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200309224013.GK2546@localhost.localdomain>
Date: Mon, 9 Mar 2020 19:40:13 -0300
From: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
To: Paul Blakey <paulb@...lanox.com>
Cc: Saeed Mahameed <saeedm@...lanox.com>,
Oz Shlomo <ozsh@...lanox.com>,
Jakub Kicinski <jakub.kicinski@...ronome.com>,
Vlad Buslov <vladbu@...lanox.com>,
David Miller <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Jiri Pirko <jiri@...lanox.com>, Roi Dayan <roid@...lanox.com>
Subject: Re: [PATCH net-next ct-offload v2 06/13] net/mlx5: E-Switch,
Introduce global tables
On Sun, Mar 08, 2020 at 04:10:55PM +0200, Paul Blakey wrote:
> --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
> @@ -149,7 +149,12 @@ struct mlx5_flow_handle *
> if (flow_act.action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) {
> struct mlx5_flow_table *ft;
>
> - if (attr->flags & MLX5_ESW_ATTR_FLAG_SLOW_PATH) {
> + if (attr->dest_ft) {
> + flow_act.flags |= FLOW_ACT_IGNORE_FLOW_LEVEL;
> + dest[i].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE;
> + dest[i].ft = attr->dest_ft;
> + i++;
> + } else if (attr->flags & MLX5_ESW_ATTR_FLAG_SLOW_PATH) {
> flow_act.flags |= FLOW_ACT_IGNORE_FLOW_LEVEL;
> dest[i].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE;
> dest[i].ft = mlx5_esw_chains_get_tc_end_ft(esw);
> @@ -202,8 +207,11 @@ struct mlx5_flow_handle *
> if (flow_act.action & MLX5_FLOW_CONTEXT_ACTION_MOD_HDR)
> flow_act.modify_hdr = attr->modify_hdr;
>
> - fdb = mlx5_esw_chains_get_table(esw, attr->chain, attr->prio,
> - !!split);
> + if (attr->chain || attr->prio)
> + fdb = mlx5_esw_chains_get_table(esw, attr->chain, attr->prio,
> + !!split);
> + else
> + fdb = attr->fdb;
I'm not sure how these/mlx5 patches are supposed to propagate to
net-next, but AFAICT here it conflicts with
96e326878fa5 ("net/mlx5e: Eswitch, Use per vport tables for mirroring")
> if (IS_ERR(fdb)) {
> rule = ERR_CAST(fdb);
> goto err_esw_get;
Powered by blists - more mailing lists