All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Wise <swise@opengridcomputing.com>
To: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Roland Dreier <rdreier@cisco.com>,
	"David S. Miller" <davem@davemloft.net>,
	netdev@vger.kernel.org,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Sean Hefty <sean.hefty@intel.com>,
	OpenFabrics General <general@lists.openfabrics.org>
Subject: Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCP ports from the host TCP port space.
Date: Tue, 07 Aug 2007 10:06:29 -0500	[thread overview]
Message-ID: <46B88A75.3040004@opengridcomputing.com> (raw)
In-Reply-To: <20070807145441.GA24895@2ka.mipt.ru>



Evgeniy Polyakov wrote:
> Hi Steve.
> 
> On Tue, Aug 07, 2007 at 09:37:41AM -0500, Steve Wise (swise@opengridcomputing.com) wrote:
>> +static int cma_get_tcp_port(struct rdma_id_private *id_priv)
>> +{
>> +	int ret;
>> +	struct socket *sock;
>> +
>> +	ret = sock_create_kern(AF_INET, SOCK_STREAM, IPPROTO_TCP, &sock);
>> +	if (ret)
>> +		return ret;
>> +	ret = sock->ops->bind(sock,
>> +			  (struct socketaddr 
>> *)&id_priv->id.route.addr.src_addr,
>> +			  ip_addr_size(&id_priv->id.route.addr.src_addr));
> 
> If get away from talks about broken offloading, this one will result in
> the case, when usual network dataflow can enter private rdma land, i.e.
> after bind succeeded this socket is accessible via any other network
> device. Is it inteded?
> And this is quite noticeble overhead per rdma connection, btw.
> 

I'm not sure I understand your question?  What do you mean by 
"accessible"?  The intention is to _just_ reserve the addr/port.  
The socket struct alloc and bind was a simple way to do this.  I 
assume we'll have to come up with a better way though.  
Namely provide a low level interface to the port space allocator 
allowing both rdma and the host tcp stack to share the space without
requiring a socket struct for rdma connections. 

Or maybe we'll come up a different and better solution to this issue...

Steve.

  reply	other threads:[~2007-08-07 15:06 UTC|newest]

Thread overview: 92+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-07 14:37 [PATCH RFC] RDMA/CMA: Allocate PS_TCP ports from the host TCP port space Steve Wise
2007-08-07 14:37 ` [ofa-general] " Steve Wise
2007-08-07 14:54 ` Evgeniy Polyakov
2007-08-07 14:54   ` [ofa-general] " Evgeniy Polyakov
2007-08-07 15:06   ` Steve Wise [this message]
2007-08-07 15:39     ` Evgeniy Polyakov
2007-08-07 15:39       ` [ofa-general] " Evgeniy Polyakov
2007-08-09 18:49 ` Steve Wise
2007-08-09 18:49   ` [ofa-general] " Steve Wise
2007-08-09 21:40   ` Sean Hefty
2007-08-09 21:40     ` Sean Hefty
2007-08-09 21:55     ` David Miller
2007-08-09 21:55       ` David Miller
2007-08-09 23:22       ` Sean Hefty
2007-08-15 14:42       ` Steve Wise
2007-08-15 14:42         ` Steve Wise
2007-08-16  2:26         ` Jeff Garzik
2007-08-16  3:11           ` Roland Dreier
2007-08-16  3:11             ` Roland Dreier
2007-08-16  3:27           ` [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCP portsfrom " Sean Hefty
2007-08-16  3:27             ` Sean Hefty
2007-08-16 13:43           ` [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCP ports from " Tom Tucker
2007-08-16 13:43             ` Tom Tucker
2007-08-16 21:17             ` David Miller
2007-08-16 21:17               ` David Miller
2007-08-17 19:52               ` Roland Dreier
2007-08-17 19:52                 ` Roland Dreier
2007-08-17 21:27                 ` David Miller
2007-08-17 23:31                   ` Roland Dreier
2007-08-17 23:31                     ` Roland Dreier
2007-08-18  0:00                     ` David Miller
2007-08-18  0:00                       ` David Miller
2007-08-18  5:23                       ` Roland Dreier
2007-08-18  5:23                         ` Roland Dreier
2007-08-18  6:44                         ` David Miller
2007-08-18  6:44                           ` David Miller
2007-08-19  7:01                           ` [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCP portsfrom " Sean Hefty
2007-08-19  7:01                             ` Sean Hefty
2007-08-19  7:23                             ` David Miller
2007-08-19 17:33                               ` [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom " Felix Marti
2007-08-19 17:33                                 ` Felix Marti
2007-08-19 19:32                                 ` David Miller
2007-08-19 19:32                                   ` David Miller
2007-08-19 19:49                                   ` Felix Marti
2007-08-19 19:49                                     ` Felix Marti
2007-08-19 23:04                                     ` David Miller
2007-08-19 23:04                                       ` David Miller
2007-08-20  0:32                                       ` Felix Marti
2007-08-20  0:32                                         ` Felix Marti
2007-08-20  0:40                                         ` David Miller
2007-08-20  0:40                                           ` David Miller
2007-08-20  0:47                                           ` Felix Marti
2007-08-20  0:47                                             ` Felix Marti
2007-08-20  1:05                                             ` David Miller
2007-08-20  1:05                                               ` David Miller
2007-08-20  1:41                                               ` Felix Marti
2007-08-20 11:07                                                 ` Andi Kleen
2007-08-20 16:26                                                   ` Felix Marti
2007-08-20 19:16                                                   ` Rick Jones
2007-08-20 19:16                                                     ` Rick Jones
2007-08-20  9:43                                             ` Evgeniy Polyakov
2007-08-20 16:53                                               ` Felix Marti
2007-08-20 16:53                                                 ` Felix Marti
2007-08-20 18:10                                                 ` Andi Kleen
2007-08-20 19:02                                                   ` Felix Marti
2007-08-20 19:02                                                     ` Felix Marti
2007-08-20 20:18                                                     ` Thomas Graf
2007-08-20 20:33                                                       ` Andi Kleen
2007-08-20 20:33                                                         ` Andi Kleen
2007-08-20 20:33                                                 ` Patrick Geoffray
2007-08-20 20:33                                                   ` Patrick Geoffray
2007-08-21  4:21                                                   ` Felix Marti
2007-08-21  4:21                                                     ` Felix Marti
2007-08-19 23:27                                     ` Andi Kleen
2007-08-19 23:27                                       ` Andi Kleen
2007-08-19 23:12                                       ` David Miller
2007-08-19 23:12                                         ` David Miller
2007-08-20  1:45                                       ` Felix Marti
2007-08-20  1:45                                         ` Felix Marti
2007-08-20  0:18                                 ` Herbert Xu
2007-08-20  4:31                               ` [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCP portsfrom " ssufficool
2007-08-21  1:16                           ` [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCP ports from " Roland Dreier
2007-08-21  6:58                             ` David Miller
2007-08-21  6:58                               ` David Miller
2007-08-28 19:38                               ` Roland Dreier
2007-08-28 20:43                                 ` David Miller
2007-10-08 21:54       ` Steve Wise
2007-10-09 13:44         ` James Lentini
2007-10-10 21:01         ` Sean Hefty
2007-10-10 21:01           ` Sean Hefty
2007-10-10 23:04           ` David Miller
2007-10-10 23:04             ` David Miller

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=46B88A75.3040004@opengridcomputing.com \
    --to=swise@opengridcomputing.com \
    --cc=davem@davemloft.net \
    --cc=general@lists.openfabrics.org \
    --cc=johnpol@2ka.mipt.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=rdreier@cisco.com \
    --cc=sean.hefty@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.