From: Ka-Cheong Poon <ka-cheong.poon@oracle.com>
To: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Cc: netdev@vger.kernel.org, santosh.shilimkar@oracle.com,
davem@davemloft.net, rds-devel@oss.oracle.com
Subject: Re: [PATCH v3 net-next 0/3] rds: IPv6 support
Date: Tue, 17 Jul 2018 13:32:09 +0800 [thread overview]
Message-ID: <954b0239-5d03-997c-d242-cbbd8c0dc8e4@oracle.com> (raw)
In-Reply-To: <20180716162001.GA22404@oracle.com>
On 07/17/2018 12:20 AM, Sowmini Varadhan wrote:
>
> - Looks like rds_connect() is checking things in the right order (thanks)
> However, rds_cancel_sent_to is still looking at the len to figure
> out the family.. as we move to ipv6, it would be better if we allow
> the caller to specify struct sockaddr_storage, or even a union of
> sockaddr_in/sockaddr_in6, rather than require them to hint at which
> one of ipv4/ipv6 through the optlen.
The app can use either structures to make the call. When the
app fills in the structure, it knows what it is filling in,
either sockaddr_in or sockaddr_in6. So it knows the right size
to use. The app can also use IPv4 mapped address in a sockaddr_in6
without a problem.
> Please see __sys_connect and move_addr_to_kernel if the user-kernel
> copy is the reason you are not doing this. Similar to inet_dgram_connect
> you can then check the sa_family and use that to figure out the
> "Assume IPv4" etc stuff.
>
> This would also make the CANCEL_SEND_TO API consistent with the bind/
> connect etc semantics.
Could you please explain the inconsistency? An app can use IPv4
mapped address in a sockaddr_in6 to operate on an IPv4 connection,
in case you are thinking of this new addition in v3 of the patch.
> - net/rds/rds.h: thanks for moving RDS_CM_PORT to the rdma specific file.
>
> I am guessing (?) that you want to update the comment to talk about
> the non-existent "RDS over UDP" based on the title of the IANA registration?
> I would just like to re-iterate that this is actually inaccurate
> (and confusing to someone looking at this for the first time, since
> there is no RDS-over-UDP today). If it were up to me, I would update
> the comment to say
>
> /* The following ports, 16385, 18634, 18635, are registered with IANA as
> * the ports to be used for "RDS over TCP and UDP".
> * The current linux implementation supports RDS over TCP and IB, and uses
> * the ports as follows: 18634 is the historical value used for the
> * RDMA_CM listener port. RDS/TCP uses port 16385. After
> * IPv6 work, RDMA_CM also uses 16385 as the listener port. 18634 is kept
> * to ensure compatibility with older RDS modules. Those ports are defined
> * in each transport's header file.
Will update it to
/* The following ports, 16385, 18634, 18635, are registered with IANA as
* the ports to be used for RDS over TCP and UDP. Currently, only RDS
over
* TCP and RDS over IB/RDMA are implemented. 18634 is the historical
value
* used for the RDMA_CM listener port. RDS/TCP uses port 16385. After
* IPv6 work, RDMA_CM also uses 16385 as the listener port. 18634 is
kept
* to ensure compatibility with older RDS modules. Those ports are
defined
* in each transport's header file.
*/
--
K. Poon
ka-cheong.poon@oracle.com
next prev parent reply other threads:[~2018-07-17 6:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 11:02 [PATCH v3 net-next 0/3] rds: IPv6 support Ka-Cheong Poon
2018-07-13 11:02 ` [PATCH v3 net-next 1/3] rds: Changing IP address internal representation to struct in6_addr Ka-Cheong Poon
2018-07-13 11:02 ` [PATCH v3 net-next 2/3] rds: Enable RDS IPv6 support Ka-Cheong Poon
2018-07-16 9:52 ` kbuild test robot
2018-07-13 11:02 ` [PATCH v3 net-next 3/3] rds: Extend RDS API for " Ka-Cheong Poon
2018-07-13 11:18 ` 吉藤英明
2018-07-13 21:25 ` David Miller
2018-07-13 22:00 ` Santosh Shilimkar
2018-07-13 23:27 ` David Miller
2018-07-13 23:31 ` Santosh Shilimkar
2018-07-16 16:20 ` [PATCH v3 net-next 0/3] rds: " Sowmini Varadhan
2018-07-17 5:32 ` Ka-Cheong Poon [this message]
2018-07-17 11:27 ` Sowmini Varadhan
2018-07-18 7:19 ` Ka-Cheong Poon
2018-07-18 10:33 ` Sowmini Varadhan
2018-07-18 17:31 ` David Miller
2018-07-19 3:10 ` Ka-Cheong Poon
2018-07-18 17:42 ` Santosh Shilimkar
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=954b0239-5d03-997c-d242-cbbd8c0dc8e4@oracle.com \
--to=ka-cheong.poon@oracle.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=rds-devel@oss.oracle.com \
--cc=santosh.shilimkar@oracle.com \
--cc=sowmini.varadhan@oracle.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).