mbox series

[net-next,v2,0/5] MCTP tag control interface

Message ID 20220209040557.391197-1-jk@codeconstruct.com.au (mailing list archive)
Headers show
Series MCTP tag control interface | expand

Message

Jeremy Kerr Feb. 9, 2022, 4:05 a.m. UTC
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
---

v2:
 - make mctp_lookup_prealloc_tag static
 - minor checkpatch formatting fixes

---

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                | 189 ++++++++++++++++++++++++++----
 net/mctp/route.c                  | 124 ++++++++++++++------
 net/mctp/test/route-test.c        | 157 ++++++++++++++++++++++++-
 7 files changed, 489 insertions(+), 68 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 9, 2022, 12:50 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed,  9 Feb 2022 12:05:52 +0800 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,v2,1/5] mctp: tests: Rename FL_T macro to FL_TO
    https://git.kernel.org/netdev/net-next/c/62a2b005c6d6
  - [net-next,v2,2/5] mctp: tests: Add key state tests
    https://git.kernel.org/netdev/net-next/c/c5755214623d
  - [net-next,v2,3/5] mctp: Add helper for address match checking
    https://git.kernel.org/netdev/net-next/c/8069b22d656f
  - [net-next,v2,4/5] mctp: Allow keys matching any local address
    https://git.kernel.org/netdev/net-next/c/0de55a7d1133
  - [net-next,v2,5/5] mctp: Add SIOCMCTP{ALLOC,DROP}TAG ioctls for tag control
    https://git.kernel.org/netdev/net-next/c/63ed1aab3d40

You are awesome, thank you!