gvisor/pkg/tcpip/link
Bhasker Hariharan 56cadcac4e Fixes to PacketMMap dispatcher.
This CL fixes the following bugs:

- Uses atomic to set/read status instead of binary.LittleEndian.PutUint32 etc
which are not atomic.

- Increments ringOffsets for frames that are truncated (i.e status is
  tpStatusCopy)

- Does not ignore frames with tpStatusLost bit set as they are valid frames and
  only indicate that there some frames were lost before this one and metrics can
  be retrieved with a getsockopt call.

- Adds checks to make sure blockSize is a multiple of page size. This is
  required as the kernel allocates in pages per block and rejects sizes that are
  not page aligned with an EINVAL.

Updates #210

PiperOrigin-RevId: 244959464
Change-Id: I5d61337b7e4c0f8a3063dcfc07791d4c4521ba1f
2019-04-23 17:47:56 -07:00
..
channel netstack: use a proper network protocol to set gso.L3HdrLen 2019-04-18 11:42:23 -07:00
fdbased Fixes to PacketMMap dispatcher. 2019-04-23 17:47:56 -07:00
loopback Add TCP checksum verification. 2019-04-09 11:23:47 -07:00
muxed Add TCP checksum verification. 2019-04-09 11:23:47 -07:00
rawfile netstack/fdbased: add generic segmentation offload (GSO) support 2019-03-28 11:03:41 -07:00
sharedmem netstack/fdbased: add generic segmentation offload (GSO) support 2019-03-28 11:03:41 -07:00
sniffer netstack/fdbased: add generic segmentation offload (GSO) support 2019-03-28 11:03:41 -07:00
tun Remove license comments 2019-01-31 11:12:53 -08:00
waitable netstack/fdbased: add generic segmentation offload (GSO) support 2019-03-28 11:03:41 -07:00