From: Saeed Mahameed <saeedm@mellanox.com>
To: Jason Gunthorpe <jgg@mellanox.com>
Cc: Leon Romanovsky <leonro@mellanox.com>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
Boris Pismenny <borisp@mellanox.com>,
"Aviad Yehezkel" <aviadye@mellanox.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"davem@davemloft.net" <davem@davemloft.net>,
"dledford@redhat.com" <dledford@redhat.com>,
Matan Barak <matanb@mellanox.com>
Subject: Re: [for-next 09/14] {net,IB}/mlx5: Add has_tag to mlx5_flow_act
Date: Wed, 7 Mar 2018 06:01:28 +0000 [thread overview]
Message-ID: <1520402485.24565.36.camel@mellanox.com> (raw)
In-Reply-To: <20180305210714.GX11337@mellanox.com>
On Mon, 2018-03-05 at 14:07 -0700, Jason Gunthorpe wrote:
> On Mon, Mar 05, 2018 at 12:46:32PM -0800, Saeed Mahameed wrote:
> > From: Matan Barak <matanb@mellanox.com>
> >
> > The has_tag member will indicate whether a tag action was specified
> > in flow specification.
>
> It would be good to describe in the commit message why
>
> flow_act.flow_tag != MLX5_FS_DEFAULT_FLOW_TAG
>
> isn't good enough anymore.
A flow tag 0 = MLX5_FS_DEFAULT_FLOW_TAG is assumed a valid flow tag
that is currently used by RDMA driver, whereas in HW flow_tag = 0 means
that the user doesn't care about flow_tag. HW always provide flow_tag =
0 if all flow_tags requested on a specific flow are 0.
So we need a way (in the driver) to differentiate between a user really
requesting flow_tag = 0 and a user who does not care, in order to be
able to report conflicting flow tags on a specific flow.
We will add this to commit message.
>
> > Signed-off-by: Matan Barak <matanb@mellanox.com>
> > Reviewed-by: Aviad Yehezkel <aviadye@mellanox.com>
> > Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
> > drivers/infiniband/hw/mlx5/main.c | 3 ++-
> > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 1 +
> > drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 2 +-
> > include/linux/mlx5/fs.h | 1 +
> > 4 files changed, 5 insertions(+), 2 deletions(-)
>
> Assuming there is a good reason to do this:
>
> Acked-by: Jason Gunthorpe <jgg@mellanox.com>
>
> Jason
next prev parent reply other threads:[~2018-03-07 6:01 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-05 20:46 [pull request][for-next 00/14] Mellanox, mlx5 IPSec updates 2018-02-28-1 Saeed Mahameed
2018-03-05 20:46 ` [for-next 01/14] net/mlx5: Fixed sparse issues Saeed Mahameed
2018-03-05 20:53 ` Or Gerlitz
2018-03-07 6:05 ` Saeed Mahameed
2018-03-05 20:55 ` Sergei Shtylyov
2018-03-05 20:46 ` [for-next 02/14] IB/mlx5: Removed not used parameters Saeed Mahameed
2018-03-05 20:54 ` Jason Gunthorpe
2018-03-05 20:46 ` [for-next 03/14] net/mlx5: Fixed compilation issue when CONFIG_MLX5_ACCEL is disabled Saeed Mahameed
2018-03-05 20:46 ` [for-next 04/14] net/mlx5e: Wait for FPGA command responses with a timeout Saeed Mahameed
2018-03-05 20:46 ` [for-next 05/14] net/mlx5e: Fixed sleeping inside atomic context Saeed Mahameed
2018-03-05 20:46 ` [for-next 06/14] net/mlx5e: Removed not need synchronize_rcu Saeed Mahameed
2018-03-05 20:46 ` [for-next 07/14] net/mlx5: FPGA and IPSec initialization to be before flow steering Saeed Mahameed
2018-03-05 20:46 ` [for-next 08/14] IB/mlx5: Pass mlx5_flow_act struct instead of multiple arguments Saeed Mahameed
2018-03-05 21:05 ` Jason Gunthorpe
2018-03-05 20:46 ` [for-next 09/14] {net,IB}/mlx5: Add has_tag to mlx5_flow_act Saeed Mahameed
2018-03-05 21:07 ` Jason Gunthorpe
2018-03-07 6:01 ` Saeed Mahameed [this message]
2018-03-05 20:46 ` [for-next 10/14] net/mlx5: Add shim layer between fs and cmd Saeed Mahameed
2018-03-05 21:03 ` Jason Gunthorpe
2018-03-07 5:54 ` Saeed Mahameed
2018-03-05 20:46 ` [for-next 11/14] net/mlx5: Add empty egress namespace to flow steering core Saeed Mahameed
2018-03-05 20:46 ` [for-next 12/14] net/mlx5: Embed mlx5_flow_act into fs_fte Saeed Mahameed
2018-03-05 20:46 ` [for-next 13/14] {net,IB}/mlx5: Add flow steering helpers Saeed Mahameed
2018-03-05 20:46 ` [for-next 14/14] net/mlx5: Flow steering cmd interface should get the fte when deleting Saeed Mahameed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1520402485.24565.36.camel@mellanox.com \
--to=saeedm@mellanox.com \
--cc=aviadye@mellanox.com \
--cc=borisp@mellanox.com \
--cc=davem@davemloft.net \
--cc=dledford@redhat.com \
--cc=jgg@mellanox.com \
--cc=leonro@mellanox.com \
--cc=linux-rdma@vger.kernel.org \
--cc=matanb@mellanox.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).