From: Adam Young <admiyo@amperemail.onmicrosoft.com>
To: Jeremy Kerr <jk@codeconstruct.com.au>,
admiyo@os.amperecomputing.com,
Matt Johnston <matt@codeconstruct.com.au>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Sudeep Holla <sudeep.holla@arm.com>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Huisong Li <lihuisong@huawei.com>
Subject: Re: [PATCH v6 2/2] mctp pcc: Implement MCTP over PCC Transport
Date: Thu, 31 Oct 2024 11:50:49 -0400 [thread overview]
Message-ID: <3e68ad61-8b21-4d15-bc4c-412dd2c7b53d@amperemail.onmicrosoft.com> (raw)
In-Reply-To: <b614c56f007b2669f1a23bfe8a8bc6c273f81bba.camel@codeconstruct.com.au>
We need a hardware address to create a socket without an EID in order to
know where we are sending the packets.
The Hardware addressing is needed to be able to use the device in
point-to-point mode. It is possible to have multiple devices at the
hardware level, and also to not use EID based routing. Thus, the kernel
needs to expose which device is which. The Essential piece of
information is the outbox, which identifies which channel the message
will be sent on. The inbox is in the hardware address as well as a
confirmation of on which channel the messages are expected to return. In
the future, it is possible to reuse channels and IRQs in constrained
situations, and the driver would then be able to deduce from the packet
which remote device sent it.
Probably not correct to say the there is no hardware addressing on the
packet. Instead, there is a portion of it on outgoing packets, and a
different portion on incoming packets.
The hardware address format is in an upcoming version of the spec not
yet published.
The namespace is for future expansion. I expect this to always be 0.
I'll fix the other review corrections shortly.
On 10/30/24 21:28, Jeremy Kerr wrote:
> I recall querying this in v1, not sure if there was a response, but:
>
> Given there is no hardware addressing in the packet format, what is the
> meaning of the physical address on the interface? It's a little strange
> to define a hardware address here that isn't used for actual addressing.
>
> For point-to-point links like this (and the serial transport), it's fine
> to have no hw address on the device.
>
> If this is purely local-machine-specific instance data, I suspect that
> this belongs elsewhere. A read-only sysfs attribute could work?
next prev parent reply other threads:[~2024-10-31 15:50 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-29 16:54 [PATCH v6 0/2] MCTP Over " admiyo
2024-10-29 16:54 ` [PATCH v6 1/2] mctp pcc: Check before sending MCTP PCC response ACK admiyo
2024-10-30 9:45 ` lihuisong (C)
2024-11-01 0:16 ` Adam Young
2024-11-01 1:30 ` lihuisong (C)
2024-11-02 15:34 ` Adam Young
2024-11-04 3:17 ` lihuisong (C)
2024-11-04 18:44 ` Adam Young
2024-10-29 16:54 ` [PATCH v6 2/2] mctp pcc: Implement MCTP over PCC Transport admiyo
2024-10-31 1:28 ` Jeremy Kerr
2024-10-31 15:50 ` Adam Young [this message]
2024-11-01 8:55 ` Jeremy Kerr
2024-11-01 21:19 ` Adam Young
2024-11-05 14:09 ` Jeremy Kerr
2024-11-06 15:59 ` Adam Young
2024-11-12 1:00 ` Jeremy Kerr
2024-11-13 18:41 ` Adam Young
2024-11-05 20:16 ` Adam Young
2024-11-06 10:47 ` Jeremy Kerr
2024-10-31 11:26 ` kernel test robot
2024-10-31 12:07 ` kernel test robot
2024-10-31 12:38 ` kernel test robot
2024-10-31 13:09 ` kernel test robot
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=3e68ad61-8b21-4d15-bc4c-412dd2c7b53d@amperemail.onmicrosoft.com \
--to=admiyo@amperemail.onmicrosoft.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=admiyo@os.amperecomputing.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jk@codeconstruct.com.au \
--cc=kuba@kernel.org \
--cc=lihuisong@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeconstruct.com.au \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sudeep.holla@arm.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
all inboxes | Powered by JetHome®