Skip to content

AF_RXRPC socket family and AFS rewrite [try #2]

David Howells linux-fsdevel lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 of 8 patches 0 repliesNew

4 of 8 patches are in this archive. The cover letter announces 8.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8AF_RXRPC: Move generic skbuff stuff from XFRM code to generic code [try #2]include/linux/skbuff.h include/net/esp.h net/core/skbuff.c +1 more+194 -1710 replies
2/8AF_RXRPC: Make it possible to merely try to cancel timers and delayed work [try #2]include/linux/workqueue.h kernel/timer.c+23 -00 replies
3/8AF_RXRPC: Key facility changes for AF_RXRPC [try #2]Documentation/keys.txt include/linux/key.h security/keys/keyring.c+16 -00 replies
6/8AF_RXRPC: Add an interface to the AF_RXRPC module for the AFS filesystem to use [try #2]Documentation/networking/rxrpc.txt include/net/af_rxrpc.h include/rxrpc/packet.h +7 more+665 -390 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] AF_RXRPC socket family and AFS rewrite [try #2]

The first of these patches together provide secure client-side RxRPC connectivity as a Linux kernel socket family. Only the RxRPC transport/session side is supplied - the presentation side (marshalling the data) is left to the client. Copies of the patches can be found here:

http://people.redhat.com/~dhowells/rxrpc/series
http://people.redhat.com/~dhowells/rxrpc/01-move-skb-generic.diff
http://people.redhat.com/~dhowells/rxrpc/02-timers.diff
http://people.redhat.com/~dhowells/rxrpc/03-keys.diff
http://people.redhat.com/~dhowells/rxrpc/04-af_rxrpc.diff

Further patches make the in-kernel AFS filesystem use AF_RXRPC and delete the old RxRPC implementation:

http://people.redhat.com/~dhowells/rxrpc/05-afs-cleanup.diff
http://people.redhat.com/~dhowells/rxrpc/06-af_rxrpc-kernel.diff
http://people.redhat.com/~dhowells/rxrpc/07-af_rxrpc-afs.diff
http://people.redhat.com/~dhowells/rxrpc/08-af_rxrpc-delete-old.diff

The userspace access methods make use of the control data passed to/by sendmsg() and recvmsg(). See the three simple test programs:

http://people.redhat.com/~dhowells/rxrpc/klog.c
http://people.redhat.com/~dhowells/rxrpc/rxrpc.c
http://people.redhat.com/~dhowells/rxrpc/listen.c

TODO:

(*) Make certain parameters (such as connection timeouts) userspace
configurable.

(*) Make userspace utilities use it; librxrpc.

(*) Userspace documentation.

(*) KerberosV security.

Changes:

(*) SOCK_RPC has been removed. SOCK_DGRAM is now used instead.

(*) I've add a facility whereby calls can be made to destinations other than
the connect() address of a client socket by making use of msg_name in the msghdr struct when using sendmsg() to send the first data packet of a call. Indeed, a client socket need not be connected before being used so.

(*) I've also added a facility whereby client calls may also be made on
server sockets, again by using msg_name in the msghdr struct. In such a case, the server's local transport endpoint is used.

(*) I've made the write buffer space check available to various callers
(sk_write_space) and implemented poll support.

(*) Rewrote rxrpc_recvmsg(). It now concatenates adjacent data messages from
the same call when delivering them.

(*) Updated the documentation to include notes on recvmsg, cover control
messages and cover SOL_RXRPC-level socket options.

(*) Provided an in-kernel interface to give in-kernel utilities easier access
to the facility.

(*) Made fs/afs/ use it.

(*) Deleted the old contents of net/rxrpc/.

(*) Use the scatterlist interface to the crypto API for now. The patch that
added the direct access interface conflicts with patches Herbert Xu is producing, so I've dropped it for the moment.

(*) Moved a bug fix to make secure connection reuse from the af_rxrpc-kernel
patch to the af_rxrpc main patch.

David