netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net-next 0/5] ulp: Generalize ULP infrastructure
@ 2017-08-07 17:28 Tom Herbert
  2017-08-07 17:28 ` [PATCH v3 net-next 1/5] proto_ops: Fixes to adding locked version of sendmsg/page Tom Herbert
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Tom Herbert @ 2017-08-07 17:28 UTC (permalink / raw)
  To: netdev; +Cc: rohit, davejwatson, john.fastabend, Tom Herbert

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-08-09  1:07 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 17:28 [PATCH v3 net-next 0/5] ulp: Generalize ULP infrastructure Tom Herbert
2017-08-07 17:28 ` [PATCH v3 net-next 1/5] proto_ops: Fixes to adding locked version of sendmsg/page Tom Herbert
2017-08-08  9:55   ` John Fastabend
2017-08-07 17:28 ` [PATCH v3 net-next 2/5] inet: include net/sock.h in inet_common.h Tom Herbert
2017-08-07 17:28 ` [PATCH v3 net-next 3/5] sock: ULP infrastructure Tom Herbert
2017-08-08 10:16   ` John Fastabend
2017-08-08 16:38   ` Hannes Frederic Sowa
2017-08-08 17:07     ` Tom Herbert
2017-08-07 17:28 ` [PATCH v3 net-next 4/5] tcp: Adjust TCP ULP to defer to sockets ULP Tom Herbert
2017-08-08 19:37   ` John Fastabend
2017-08-07 17:28 ` [PATCH v3 net-next 5/5] ulp: Documention for ULP infrastructure Tom Herbert
2017-08-08 15:31 ` [PATCH v3 net-next 0/5] ulp: Generalize " John Fastabend
2017-08-08 15:38   ` John Fastabend
2017-08-08 17:04   ` Tom Herbert
2017-08-08 19:30     ` John Fastabend
2017-08-08 19:50       ` Tom Herbert
2017-08-08 20:23         ` Edward Cree
2017-08-08 21:08           ` Tom Herbert
2017-08-09  1:07           ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).