netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: ubraun@linux.vnet.ibm.com
Cc: netdev@vger.kernel.org, linux-s390@vger.kernel.org,
	schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com,
	utz.bacher@de.ibm.com
Subject: Re: [PATCH V3 net-next 03/15] smc: establish pnet table management
Date: Fri, 25 Nov 2016 20:51:42 -0500 (EST)	[thread overview]
Message-ID: <20161125.205142.972152411364122440.davem@davemloft.net> (raw)
In-Reply-To: <20161124150645.90881-4-ubraun@linux.vnet.ibm.com>

From: Ursula Braun <ubraun@linux.vnet.ibm.com>
Date: Thu, 24 Nov 2016 16:06:33 +0100

> Connection creation with SMC-R starts through an internal
> TCP-connection. The Ethernet interface for this TCP-connection is not
> restricted to the Ethernet interface of a RoCE device. Any existing
> Ethernet interface belonging to the same physical net can be used, as
> long as there is a defined relation between the Ethernet interface and
> some RoCE devices. This relation is defined with the help of an
> identification string called "Physical Net ID" or short "pnet ID".
> Information about defined pnet IDs and their related Ethernet
> interfaces and RoCE devices is stored in the SMC-R pnet table.
> 
> This patch adds pnet table configuration support as a set of
> sysfs files listed under /sys/kernel/smc. Attribute files
> exist to add and delete pnet IDs and to map RoCE devices and
> ethernet interfaces to an individual pnet ID.
> 
> There is no cross check if ethernet interfaces or infiniband
> devices really exist in the system. This enables the configuration of
> the pnet table after module load even if interfaces or devices might
> not yet be available.
> 
> Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
> Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>

Please do not use sysfs to configure your subsystems IB and eth
mappings.

Instead use a properly formed genetlink interface that will properly
integrate with other subsystems, and also allow for proper event
monitoring.

I also fundamentally disagree with allowing references to devices that
do not even exist yet.  It implies a string --> device conversion in
places where that cost should be avoided.

  reply	other threads:[~2016-11-26  1:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-24 15:06 [PATCH V3 net-next 00/15] net/smc: Shared Memory Communications - RDMA Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 01/15] net: introduce keepalive function in struct proto Ursula Braun
2016-11-26  1:41   ` David Miller
2016-11-24 15:06 ` [PATCH V3 net-next 02/15] smc: establish new socket family Ursula Braun
2016-11-26  1:47   ` David Miller
2016-11-24 15:06 ` [PATCH V3 net-next 03/15] smc: establish pnet table management Ursula Braun
2016-11-26  1:51   ` David Miller [this message]
2016-11-24 15:06 ` [PATCH V3 net-next 04/15] smc: introduce SMC as an IB-client Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 05/15] smc: CLC handshake (incl. preparation steps) Ursula Braun
2016-11-26  1:53   ` David Miller
2016-11-24 15:06 ` [PATCH V3 net-next 06/15] smc: connection and link group creation Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 07/15] smc: remote memory buffers (RMBs) Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 08/15] smc: work request (WR) base for use by LLC and CDC Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 09/15] smc: initialize IB transport incl. PD, MR, QP, CQ, event, WR Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 10/15] smc: link layer control (LLC) Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 11/15] smc: connection data control (CDC) Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 12/15] smc: send data (through RDMA) Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 13/15] smc: receive data from RMBE Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 14/15] smc: socket closing and linkgroup cleanup Ursula Braun
2016-11-24 15:06 ` [PATCH V3 net-next 15/15] smc: netlink interface for SMC sockets Ursula Braun

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=20161125.205142.972152411364122440.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-s390@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=schwidefsky@de.ibm.com \
    --cc=ubraun@linux.vnet.ibm.com \
    --cc=utz.bacher@de.ibm.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).