netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Faisal Latif <faisal.latif@intel.com>
To: Or Gerlitz <ogerlitz@mellanox.com>
Cc: "dledford@redhat.com" <dledford@redhat.com>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
	"e1000-rdma@lists.sourceforge.net"
	<e1000-rdma@lists.sourceforge.net>
Subject: Re: [PATCH V1 08/16] i40iw: add files for iwarp interface
Date: Thu, 24 Dec 2015 13:36:33 -0600	[thread overview]
Message-ID: <20151224193633.GA19560@flatif-MOBL1> (raw)
In-Reply-To: <567BABE4.8080302@mellanox.com>

On Thu, Dec 24, 2015 at 10:25:08AM +0200, Or Gerlitz wrote:
> On 12/24/2015 9:31 AM, Faisal Latif wrote:
> >On Wed, Dec 23, 2015 at 08:42:01AM -0800, Or Gerlitz wrote:
> >>On 12/22/2015 1:13 AM, Faisal Latif wrote:
> >>>+
> >>>+enum i40iw_memreg_type {
> >>>+	IW_MEMREG_TYPE_MEM = 0x0000,
> >>>+	IW_MEMREG_TYPE_QP = 0x0001,
> >>>+	IW_MEMREG_TYPE_CQ = 0x0002,
> >>>+	IW_MEMREG_TYPE_MW = 0x0003,
> >>>+	IW_MEMREG_TYPE_FMR = 0x0004,
> >>>+	IW_MEMREG_TYPE_FMEM = 0x0005,
> >>>+};
> >>Can't you re-use IB core values or derive that from the actual uverbs
> >>command?
> >I did not see anything which will have types that I needed.
> 
> what do you need? what is the role of this enum?

We register register memory from user library for qp and cq rings as well
as user memory registration and do need to distinguish in the driver.

> 
> >It will be confusing otherwise.
> 
> 
> >I will be reducing number of types from here though.
> 
> so why some of it can go? is that deal values which aren't used by the code

Yes, had added all different types for user requests. But For the time being, we will
just keep MEM, CQ, QP and add other as needed like Memory Windows.
> 
> Or.
> 
> >Thanks
> >Faisal
> 

  reply	other threads:[~2015-12-24 19:36 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-21 23:13 [PATCH V1 00/16] add Intel(R) X722 iWARP driver Faisal Latif
     [not found] ` <1450739596-23276-1-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-21 23:13   ` [PATCH V1 01/16] i40e: Add support for client interface for IWARP driver Faisal Latif
2015-12-21 23:13     ` [PATCH V1 02/16] i40iw: add main, hdr, status Faisal Latif
     [not found]       ` <1450739596-23276-3-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-21 23:13         ` [PATCH V1 03/16] i40iw: add connection management code Faisal Latif
     [not found]           ` <1450739596-23276-4-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-21 23:13             ` [PATCH V1 04/16] i40iw: add puda code Faisal Latif
2015-12-21 23:13               ` [PATCH V1 05/16] i40iw: add pble resource files Faisal Latif
2015-12-21 23:13                 ` [PATCH V1 06/16] i40iw: add hmc " Faisal Latif
2015-12-21 23:13                   ` [PATCH V1 07/16] i40iw: add hw and utils files Faisal Latif
2015-12-21 23:13                     ` [PATCH V1 08/16] i40iw: add files for iwarp interface Faisal Latif
2015-12-21 23:13                       ` [PATCH V1 09/16] i40iw: add file to handle cqp calls Faisal Latif
2015-12-21 23:13                         ` [PATCH V1 10/16] i40iw: add hardware related header files Faisal Latif
     [not found]                           ` <1450739596-23276-11-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-21 23:13                             ` [PATCH V1 11/16] i40iw: add X722 register file Faisal Latif
     [not found]                               ` <1450739596-23276-12-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-21 23:13                                 ` [PATCH V1 12/16] i40iw: user kernel shared files Faisal Latif
     [not found]                                   ` <1450739596-23276-13-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-21 23:13                                     ` [PATCH V1 13/16] i40iw: virtual channel handling files Faisal Latif
     [not found]                                       ` <1450739596-23276-14-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-21 23:13                                         ` [PATCH V1 14/16] i40iw: Kconfig and Kbuild for iwarp module Faisal Latif
     [not found]                                           ` <1450739596-23276-15-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-21 23:13                                             ` [PATCH V1 15/16] i40iw: add entry in rdma_netlink Faisal Latif
2015-12-21 23:13                                               ` [PATCH V1 16/16] i40iw: changes for build of i40iw module Faisal Latif
2015-12-22  0:40                                                 ` kbuild test robot
     [not found]                                               ` <1450739596-23276-16-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-23 16:50                                                 ` [PATCH V1 15/16] i40iw: add entry in rdma_netlink Or Gerlitz
2015-12-24  7:05                                                   ` Faisal Latif
2015-12-24  8:24                                                     ` Or Gerlitz
     [not found]                       ` <1450739596-23276-9-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-23 16:42                         ` [PATCH V1 08/16] i40iw: add files for iwarp interface Or Gerlitz
2015-12-24  7:31                           ` Faisal Latif
2015-12-24  8:25                             ` Or Gerlitz
2015-12-24 19:36                               ` Faisal Latif [this message]
2015-12-22 19:09   ` [PATCH V1 00/16] add Intel(R) X722 iWARP driver Doug Ledford
2015-12-23 16:09   ` Doug Ledford
     [not found]     ` <567AC754.5020508-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-23 16:35       ` Faisal Latif
2015-12-23 16:39         ` Or Gerlitz
     [not found]           ` <567ACE44.20608-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-24  7:09             ` Faisal Latif
2015-12-23 17:24         ` Doug Ledford
2015-12-23 17:05   ` Or Gerlitz
     [not found]     ` <567AD444.10204-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-24  7:25       ` Faisal Latif

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=20151224193633.GA19560@flatif-MOBL1 \
    --to=faisal.latif@intel.com \
    --cc=dledford@redhat.com \
    --cc=e1000-rdma@lists.sourceforge.net \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=ogerlitz@mellanox.com \
    /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).