Revert "fable wants to DIY a hash"

This reverts commit e1d96b932a.
This commit is contained in:
JackDoan
2026-08-04 11:47:23 -05:00
parent d14b97977f
commit e196a7a7ca
4 changed files with 44 additions and 115 deletions
+4 -5
View File
@@ -81,7 +81,6 @@ type parsedUDP struct {
ipHdrLen int
hdrLen int // ipHdrLen + 8
payLen int
isV6 bool
}
// parseAt extracts the flow key and IP/UDP offsets for a packet the dispatcher already knows is
@@ -110,8 +109,8 @@ func (p *parsedUDP) parseTail(pkt []byte, ipHdrLen int) bool {
p.ipHdrLen = ipHdrLen
p.hdrLen = ipHdrLen + 8
p.payLen = udpLen - 8
p.fk = p.fk.withPorts(binary.LittleEndian.Uint32(pkt[ipHdrLen : ipHdrLen+4]))
p.isV6 = ipHdrLen == 40
p.fk.sport = binary.BigEndian.Uint16(pkt[ipHdrLen : ipHdrLen+2])
p.fk.dport = binary.BigEndian.Uint16(pkt[ipHdrLen+2 : ipHdrLen+4])
return true
}
@@ -209,7 +208,7 @@ func (c *UDPCoalescer) seed(pkt []byte, info *parsedUDP) {
s.rawPkt = pkt
s.hdrLen = info.hdrLen
s.ipHdrLen = info.ipHdrLen
s.isV6 = info.isV6
s.isV6 = info.fk.isV6
s.fk = info.fk
s.gsoSize = info.payLen
s.numSeg = 1
@@ -281,7 +280,7 @@ func (c *UDPCoalescer) release(s *udpSlot) {
s.numSeg = 0
s.totalPay = 0
// Zero the identity fields too; see TCPCoalescer.release.
s.fk = 0
s.fk = flowKey{}
s.hdrLen = 0
s.ipHdrLen = 0
s.isV6 = false