QUIC in the Linux kernel

This patchset brings QUIC to the Linux kernel.

The QUIC protocol, defined in RFC 9000, is a secure, multiplexed transport
built on top of UDP. It enables low-latency connection establishment,
stream-based communication with flow control, and supports connection
migration across network paths, while ensuring confidentiality, integrity,
and availability.

This implementation introduces QUIC support in Linux Kernel, offering
several key advantages:

  • In-Kernel QUIC Support for Subsystems: Enables kernel subsystems
    such as SMB and NFS to operate over QUIC with minimal changes. Once the
    handshake is complete via the net/handshake APIs, data exchange proceeds
    over standard in-kernel transport interfaces.

  • Standard Socket API Semantics: Implements core socket operations
    (listen(), accept(), connect(), sendmsg(), recvmsg(), close(),
    getsockopt(), setsockopt(), getsockname(), and getpeername()),
    allowing user space to interact with QUIC sockets in a familiar,
    POSIX-compliant way.

  • ALPN-Based Connection Dispatching: Supports in-kernel ALPN
    (Application-Layer Protocol Negotiation) routing, allowing demultiplexing
    of QUIC connections across different user-space processes based
    on the ALPN identifiers.

  • Performance Enhancements: Handles all control messages in-kernel
    to reduce syscall overhead, incorporates zero-copy mechanisms such as
    sendfile() to minimize data movement, and is also structured to support
    future crypto hardware offloads.

This implementation offers fundamental support for the following RFCs:

  • RFC9000 - QUIC: A UDP-Based Multiplexed and Secure Transport
  • RFC9001 - Using TLS to Secure QUIC
  • RFC9002 - QUIC Loss Detection and Congestion Control
  • RFC9221 - An Unreliable Datagram Extension to QUIC
  • RFC9287 - Greasing the QUIC Bit
  • RFC9368 - Compatible Version Negotiation for QUIC
  • RFC9369 - QUIC Version 2