[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170807172818.31855-1-tom@quantonium.net>
Date: Mon, 7 Aug 2017 10:28:13 -0700
From: Tom Herbert <tom@...ntonium.net>
To: netdev@...r.kernel.org
Cc: rohit@...ntonium.net, davejwatson@...com, john.fastabend@...il.com,
Tom Herbert <tom@...ntonium.net>
Subject: [PATCH v3 net-next 0/5] ulp: Generalize ULP infrastructure
Generalize the ULP infrastructure that was recently introduced to
support kTLS. This adds a SO_ULP socket option and creates new fields in
sock structure for ULP ops and ULP data. Also, the interface allows
additional per ULP parameters to be set so that a ULP can be pushed
and operations started in one shot.
In this patch set:
- Minor dependency fix in inet_common.h
- Implement ULP infrastructure as a socket mechanism
- Fixes TCP and TLS to use the new method (maintaining backwards
API compatibility)
- Adds a ulp.txt document
Tested: Ran simple ULP. Dave Watson verified kTLS works.
-v2: Fix compilation errors when CONFIG_ULP_SOCK not set.
-v3: Fix one more build issue, check that sk_protocol is IPPROTO_TCP
in tsl_init. Also, fix a couple of minor issues related to
introducing locked versions of sendmsg, send page. Thanks to
Dave Watson, John Fastabend, and Mat Martineau for testing and
providing fixes.
Tom Herbert (5):
proto_ops: Fixes to adding locked version of sendmsg/page
inet: include net/sock.h in inet_common.h
sock: ULP infrastructure
tcp: Adjust TCP ULP to defer to sockets ULP
ulp: Documention for ULP infrastructure
Documentation/networking/tls.txt | 6 +-
Documentation/networking/ulp.txt | 82 ++++++++++++++
arch/alpha/include/uapi/asm/socket.h | 2 +
arch/frv/include/uapi/asm/socket.h | 2 +
arch/ia64/include/uapi/asm/socket.h | 2 +
arch/m32r/include/uapi/asm/socket.h | 2 +
arch/mips/include/uapi/asm/socket.h | 2 +
arch/mn10300/include/uapi/asm/socket.h | 2 +
arch/parisc/include/uapi/asm/socket.h | 2 +
arch/s390/include/uapi/asm/socket.h | 2 +
arch/sparc/include/uapi/asm/socket.h | 2 +
arch/xtensa/include/uapi/asm/socket.h | 2 +
include/linux/socket.h | 9 ++
include/net/inet_common.h | 2 +
include/net/inet_connection_sock.h | 4 -
include/net/sock.h | 6 +
include/net/tcp.h | 25 -----
include/net/tls.h | 4 +-
include/net/ulp_sock.h | 76 +++++++++++++
include/uapi/asm-generic/socket.h | 2 +
net/Kconfig | 4 +
net/core/Makefile | 1 +
net/core/skbuff.c | 2 +-
net/core/sock.c | 12 ++
net/core/sysctl_net_core.c | 25 +++++
net/core/ulp_sock.c | 196 +++++++++++++++++++++++++++++++++
net/ipv4/Makefile | 2 +-
net/ipv4/inet_connection_sock.c | 5 +
net/ipv4/sysctl_net_ipv4.c | 9 +-
net/ipv4/tcp.c | 42 ++++---
net/ipv4/tcp_ipv4.c | 2 -
net/ipv4/tcp_ulp.c | 135 -----------------------
net/socket.c | 2 +-
net/tls/Kconfig | 1 +
net/tls/tls_main.c | 24 ++--
35 files changed, 495 insertions(+), 203 deletions(-)
create mode 100644 Documentation/networking/ulp.txt
create mode 100644 include/net/ulp_sock.h
create mode 100644 net/core/ulp_sock.c
delete mode 100644 net/ipv4/tcp_ulp.c
--
2.11.0
Powered by blists - more mailing lists