How to attach all tap dev by cilium/ebpf ? What's the best way except attach tap dev one by one if it is not support?

huangapple go评论141阅读模式
英文:

How to attach all tap dev by cilium/ebpf ? What's the best way except attach tap dev one by one if it is not support?

问题

如何通过Cilium/ebpf连接所有的tap设备?如果不支持一次性连接所有tap设备,除了逐个连接tap设备之外,还有什么更好的方法?

我阅读了文档,但没有找到多个连接函数。

英文:

How to attach all tap dev by cilium/ebpf ? What's the best way except attach tap dev one by one if it is not support ?

I read document not found mutil attach function.

答案1

得分: 1

截至撰写本答案时,目前还没有办法在单个“调用”中将XDP/TC程序附加到多个网络设备上。

我相信唯一可以实现类似功能的程序类型是kprobes

因此,您将需要列出所有设备并逐个附加。

英文:

As of the writing of this answer, there is no way to attach XDP/TC programs to multiple network devices within a single "call".

I believe the only program type where something like this is possible is with kprobes.

So you will have to list all devices and attach one by one.

huangapple
  • 本文由 发表于 2022年12月6日 17:56:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/74700520.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定