| From: |
| Jeremy Kerr <jk-AT-codeconstruct.com.au> |
| To: |
| netdev-AT-vger.kernel.org |
| Subject: |
| [PATCH net-next 0/5] MCTP tag control interface |
| Date: |
| Tue, 08 Feb 2022 17:46:12 +0800 |
| Message-ID: |
| <20220208094617.3675511-1-jk@codeconstruct.com.au> |
| Cc: |
| Matt Johnston <matt-AT-codeconstruct.com.au>, "David S. Miller" <davem-AT-davemloft.net>, Jakub Kicinski <kuba-AT-kernel.org>, Jonathan Corbet <corbet-AT-lwn.net>, Steven Rostedt <rostedt-AT-goodmis.org>, Ingo Molnar <mingo-AT-redhat.com>, linux-doc-AT-vger.kernel.org |
| Archive-link: |
| Article |
This series implements a small interface for userspace-controlled
message tag allocation for the MCTP protocol. Rather than leaving the
kernel to allocate per-message tag values, userspace can explicitly
allocate (and release) message tags through two new ioctls:
SIOCMCTPALLOCTAG and SIOCMCTPDROPTAG.
In order to do this, we first introduce some minor changes to the tag
handling, including a couple of new tests for the route input paths.
As always, any comments/queries/etc are most welcome.
Cheers,
Jeremy
---
Jeremy Kerr (4):
mctp: tests: Rename FL_T macro to FL_TO
mctp: tests: Add key state tests
mctp: Add helper for address match checking
mctp: Allow keys matching any local address
Matt Johnston (1):
mctp: Add SIOCMCTP{ALLOC,DROP}TAG ioctls for tag control
Documentation/networking/mctp.rst | 48 ++++++++
include/net/mctp.h | 16 ++-
include/trace/events/mctp.h | 5 +-
include/uapi/linux/mctp.h | 18 +++
net/mctp/af_mctp.c | 185 +++++++++++++++++++++++++-----
net/mctp/route.c | 124 ++++++++++++++------
net/mctp/test/route-test.c | 158 ++++++++++++++++++++++++-
7 files changed, 486 insertions(+), 68 deletions(-)
--
2.34.1