Make GSO optional

This commit is contained in:
世界 2024-11-22 17:01:28 +08:00
parent 2b8115e83b
commit c1f61d08ba
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 27 additions and 18 deletions

View file

@ -15,6 +15,7 @@ func (t *NativeTun) NewEndpoint() (stack.LinkEndpoint, error) {
FDs: []int{t.tunFd},
MTU: t.options.MTU,
GSOMaxSize: gsoMaxSize,
GRO: true,
RXChecksumOffload: true,
TXChecksumOffload: t.txChecksumOffload,
})