Cong Wang and Daniel Borkmann each led session at the 2025 Linux Storage, Filesystem, Memory Management, and BPF Summit about their respective plans to speed up networking in the Linux kernel. Both sessions described ways to remove unnecessary operations in the networking stack, but they focused on different areas. Wang spoke about using BPF to speed up socket operations, while Borkmann spoke about eliminating the overhead of networking operations on virtual machines.
Cong Wang 和 Daniel Borkmann 各自主持了 2025 年 Linux 存储、文件系统、内存管理与 BPF 峰会上的会议,介绍他们各自加速 Linux 内核网络性能的计划。两场会议都讨论了如何移除网络协议栈中不必要的操作,但各自侧重点不同。Wang 讲的是如何使用 BPF 来加速 socket 操作,而 Borkmann 则聚焦于消除虚拟机网络操作的开销。
sk_msg
Wang began by explaining that struct sk_msg is a data structure used internally for socket-layer messaging. He compared it to the more widely used struct sk_buff, but said that sk_msg was much simpler. BPF programs can access sk_msg structures through socket maps, where they are primarily used to let BPF programs redirect messages between sockets.
Wang 首先解释了 struct sk_msg 是一种用于 socket 层消息传递的内部数据结构。他将其与更常见的 struct sk_buff 进行了对比,但表示 sk_msg 要简单得多。BPF 程序可以通过 socket map 访问 sk_msg 结构,主要用途是让 BPF 程序在不同的 socket 之间重定向消息。
There are a few use cases for redirections like this. For example, bypassing the TCP stack when sending messages between a client and a server on the same machine. This can avoid unnecessary overhead, Wang explained, but it's only helpful if forwarding the messages in BPF is actually faster. After questioning from Borkmann, Wang clarified th


247

被折叠的 条评论
为什么被折叠?



