diff options
author | Etienne Perot <eperot@google.com> | 2021-03-15 20:09:37 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-15 20:11:41 -0700 |
commit | f4b74218202c8f318c603c57aa35895554194d98 (patch) | |
tree | e85cfa1e94c96ba14bd1629de229078a72f76ea9 /pkg/iovec/iovec.go | |
parent | 34d0d720679778611fce51ed7f62fbdafa413d60 (diff) |
Move `MaxIovs` back to a variable in `iovec.go`.
PiperOrigin-RevId: 363091954
Diffstat (limited to 'pkg/iovec/iovec.go')
-rw-r--r-- | pkg/iovec/iovec.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/iovec/iovec.go b/pkg/iovec/iovec.go index f6791060f..a281c05b6 100644 --- a/pkg/iovec/iovec.go +++ b/pkg/iovec/iovec.go @@ -22,6 +22,9 @@ import ( "golang.org/x/sys/unix" ) +// MaxIovs is the maximum number of iovecs host platform can accept. +var MaxIovs = 1024 + // Builder is a builder for slice of unix.Iovec. type Builder struct { iovec []unix.Iovec |