Two sessions on faster networking

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Kernel_RDMA

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值