summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/network.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-06-16 23:37:17 +0000
committergVisor bot <gvisor-bot@google.com>2020-06-16 23:37:17 +0000
commit662394212321884d140cfe5f1ce85cb4c4e3e667 (patch)
treedc5a4a177097e66db6b2c225d464a46ce206f80e /runsc/boot/network.go
parent76f80d4109e576df2ffa2051955a58c5f9cd918d (diff)
parentdbf786c6b33d7ee58477b1ade35f39910fb2c654 (diff)
Merge release-20200608.0-67-gdbf786c6b (automated)
Diffstat (limited to 'runsc/boot/network.go')
-rw-r--r--runsc/boot/network.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/runsc/boot/network.go b/runsc/boot/network.go
index 0af30456e..14d2f56a5 100644
--- a/runsc/boot/network.go
+++ b/runsc/boot/network.go
@@ -123,6 +123,8 @@ type FDBasedLink struct {
Routes []Route
GSOMaxSize uint32
SoftwareGSOEnabled bool
+ TXChecksumOffload bool
+ RXChecksumOffload bool
LinkAddress net.HardwareAddr
QDisc QueueingDiscipline
@@ -236,7 +238,8 @@ func (n *Network) CreateLinksAndRoutes(args *CreateLinksAndRoutesArgs, _ *struct
PacketDispatchMode: fdbased.RecvMMsg,
GSOMaxSize: link.GSOMaxSize,
SoftwareGSOEnabled: link.SoftwareGSOEnabled,
- RXChecksumOffload: true,
+ TXChecksumOffload: link.TXChecksumOffload,
+ RXChecksumOffload: link.RXChecksumOffload,
})
if err != nil {
return err