Fix gVisor process

This commit is contained in:
世界 2026-07-06 16:55:25 +08:00
parent 46aa536b37
commit c569e3e92f
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 22 additions and 19 deletions

View file

@ -43,12 +43,13 @@ func (t *NativeTun) WritePacket(pkt *stack.PacketBuffer) (int, error) {
func (t *NativeTun) NewEndpoint() (stack.LinkEndpoint, stack.NICOptions, error) {
ep, err := fdbased.New(&fdbased.Options{
FDs: []int{t.tunFd},
MTU: t.options.MTU,
RXChecksumOffload: true,
PacketDispatchMode: fdbased.RecvMMsg,
MultiPendingPackets: t.options.EXP_MultiPendingPackets,
SendMsgX: t.options.EXP_SendMsgX,
FDs: []int{t.tunFd},
MTU: t.options.MTU,
ProcessorsPerChannel: 1,
RXChecksumOffload: true,
PacketDispatchMode: fdbased.RecvMMsg,
MultiPendingPackets: t.options.EXP_MultiPendingPackets,
SendMsgX: t.options.EXP_SendMsgX,
})
if err != nil {
return nil, stack.NICOptions{}, err