public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Bart Van Assche
	<bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>,
	Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: Sagi Grimberg <sagi-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>,
	"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH, RFC] mlx4_ib: Make steering support independent of MLX4_BMME_FLAG_TYPE_2_WIN
Date: Thu, 2 Jun 2016 11:18:19 +0300	[thread overview]
Message-ID: <20160602081819.GJ7477@leon.nu> (raw)
In-Reply-To: <2a929a48-559e-41ad-c42e-a722801c11d0-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]

On Wed, Jun 01, 2016 at 05:07:17PM -0700, Bart Van Assche wrote:
> Hello,
> 
> Can anyone who is familiar with the mlx4 driver tell me whether or not
> the patch below makes sense? I ran into this code by analyzing the mlx4
> source code with smatch.

Hi Bart,
Thank you bringing it to our attention. I had a fast chit-chat with
Matan who was the last person who touched that area. It looks like an
unharmful issue with the code, because we had support for memory window
feature literally forever.

Thanks.

> 
> Thanks,
> 
> Bart.
> 
> ---
>  drivers/infiniband/hw/mlx4/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
> index b01ef6e..db7d0bc 100644
> --- a/drivers/infiniband/hw/mlx4/main.c
> +++ b/drivers/infiniband/hw/mlx4/main.c
> @@ -505,9 +505,9 @@ static int mlx4_ib_query_device(struct ib_device *ibdev,
>  			props->device_cap_flags |= IB_DEVICE_MEM_WINDOW_TYPE_2B;
>  		else
>  			props->device_cap_flags |= IB_DEVICE_MEM_WINDOW_TYPE_2A;
> +	}
>  	if (dev->steering_support ==  MLX4_STEERING_MODE_DEVICE_MANAGED)
>  		props->device_cap_flags |= IB_DEVICE_MANAGED_FLOW_STEERING;
> -	}
>  
>  	props->device_cap_flags |= IB_DEVICE_RAW_IP_CSUM;
>  
> -- 
> 2.8.3
> 

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2016-06-02  8:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02  0:07 [PATCH, RFC] mlx4_ib: Make steering support independent of MLX4_BMME_FLAG_TYPE_2_WIN Bart Van Assche
     [not found] ` <2a929a48-559e-41ad-c42e-a722801c11d0-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2016-06-02  5:51   ` Or Gerlitz
2016-06-02  8:18   ` Leon Romanovsky [this message]
     [not found]     ` <20160602081819.GJ7477-2ukJVAZIZ/Y@public.gmane.org>
2016-06-03 13:10       ` Leon Romanovsky
2016-06-02 11:59   ` Sagi Grimberg

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=20160602081819.GJ7477@leon.nu \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sagi-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org \
    --cc=yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.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