MCPcopy Create free account
hub / github.com/encodeous/nylon / newTCPGROTable

Function newTCPGROTable

polyamide/tun/offload_linux.go:74–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func newTCPGROTable() *tcpGROTable {
75 t := &tcpGROTable{
76 itemsByFlow: make(map[tcpFlowKey][]tcpGROItem, conn.IdealBatchSize),
77 itemsPool: make([][]tcpGROItem, conn.IdealBatchSize),
78 }
79 for i := range t.itemsPool {
80 t.itemsPool[i] = make([]tcpGROItem, 0, conn.IdealBatchSize)
81 }
82 return t
83}
84
85func newTCPFlowKey(pkt []byte, srcAddrOffset, dstAddrOffset, tcphOffset int) tcpFlowKey {
86 key := tcpFlowKey{}

Callers 4

CreateTUNFromFileFunction · 0.85
Fuzz_handleGROFunction · 0.85
Test_handleGROFunction · 0.85

Calls

no outgoing calls

Tested by 2

Fuzz_handleGROFunction · 0.68
Test_handleGROFunction · 0.68