From: David S. Miller Date: Wed, 3 Jul 2019 20:51:54 +0000 (-0700) Subject: Merge branch 'net-ICW-sendmsg-recvmsg' X-Git-Tag: Ubuntu-5.13.0-19.19~8166^2~71 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e227701c4583f0408cac33eca0fa96ac4b8ff7d9;p=mirror_ubuntu-jammy-kernel.git Merge branch 'net-ICW-sendmsg-recvmsg' Paolo Abeni says: ==================== net: use ICW for sk_proto->{send,recv}msg This series extends ICW usage to one of the few remaining spots in fast-path still hitting per packet retpoline overhead, namely the sk_proto->{send,recv}msg calls. The first 3 patches in this series refactor the existing code so that applying the ICW macros is straight-forward: we demux inet_{recv,send}msg in ipv4 and ipv6 variants so that each of them can easily select the appropriate TCP or UDP direct call. While at it, a new helper is created to avoid excessive code duplication, and the current ICWs for inet_{recv,send}msg are adjusted accordingly. The last 2 patches really introduce the new ICW use-case, respectively for the ipv6 and the ipv4 code path. This gives up to 5% performance improvement under UDP flood, and smaller but measurable gains for TCP RR workloads. v1 -> v2: - drop inet6_{recv,send}msg declaration from header file, prefer ICW macro instead - avoid unneeded reclaration for udp_sendmsg, as suggested by Willem ==================== Acked-by: Willem de Bruijn Signed-off-by: David S. Miller --- e227701c4583f0408cac33eca0fa96ac4b8ff7d9