Skip to content

Commit 119fc6d

Browse files
committed
netstack: m var rename
1 parent 39e967b commit 119fc6d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

intra/netstack/dispatchers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ import (
4545

4646
const wrapttl = 5 * time.Second // wrapttl is the time to wait for wrapup() to complete.
4747

48-
// BufConfig defines the shape of the vectorised view used to read packets from the NIC.
49-
var BufConfig = []int{128, 256, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768}
48+
// bufcfg defines the shape of the vectorised view used to read packets from the NIC.
49+
var bufcfg = []int{128, 256, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768}
5050

5151
type iovecBuffer struct {
5252
// serializes access to all members
@@ -182,7 +182,7 @@ func newReadVDispatcher(fd int, e *endpoint) (linkDispatcher, error) {
182182
d := &readVDispatcher{
183183
e: e,
184184
fds: core.NewVolatile(tun),
185-
buf: newIovecBuffer(BufConfig),
185+
buf: newIovecBuffer(bufcfg),
186186
mgr: newSupervisor(e, fd),
187187
}
188188
d.mgr.start()

0 commit comments

Comments
 (0)