mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-17 02:36:52 +01:00
robot fixes
This commit is contained in:
1 parent
c62f27d4b4
commit
8282a629e5
3 files changed
+16
-9
No files matched your search
@@ -34,7 +34,7 @@ const gsoInitialPayIovs = 66
|
||||
|
||||
// validVnetHdr is the 10-byte virtio_net_hdr we prepend to every non-GSO TUN
|
||||
// write. Only flag set is VIRTIO_NET_HDR_F_DATA_VALID, which marks the skb
|
||||
// CHECKSUM_UNNECESSARY so the receiving network stack skips L4 checksum
|
||||
// CHECKSUM_UNNECESSARY so the receiving network stack skips L4 checks
|
||||
// verification. All packets that reach the plain Write / WriteFromSelf paths
|
||||
// already carry a valid L4 checksum (either supplied by a remote peer whose
|
||||
// ciphertext we AEAD-authenticated, or produced by finishChecksum during TSO
|
||||
|
||||
@@ -310,8 +310,6 @@ func TestTunFileWriteVnetHdrNoAlloc(t *testing.T) {
|
||||
t.Cleanup(func() { _ = unix.Close(fd) })
|
||||
|
||||
tf := &Offload{fd: fd}
|
||||
tf.writeIovs[0].Base = &validVnetHdr[0]
|
||||
tf.writeIovs[0].SetLen(virtioNetHdrLen)
|
||||
|
||||
payload := make([]byte, 1400)
|
||||
// Warm up (first call may trigger one-time internal allocations elsewhere).
|
||||
|
||||
Reference in new issue
Block a user