X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Flibmemif%2Fpackethandle.go;h=6889c9402ad09b47d3859a453e34bb6e82b0afa7;hb=refs%2Fchanges%2F47%2F36047%2F3;hp=83bf90a511a2485124ee7f39b4f879b02b8e44c3;hpb=3f26790b479f8a0cab00093b83491e9f47648b56;p=govpp.git diff --git a/extras/libmemif/packethandle.go b/extras/libmemif/packethandle.go index 83bf90a..6889c94 100644 --- a/extras/libmemif/packethandle.go +++ b/extras/libmemif/packethandle.go @@ -16,9 +16,9 @@ package libmemif import ( "github.com/google/gopacket" - "time" - "sync" "io" + "sync" + "time" ) type memoizedPacket struct { @@ -55,7 +55,7 @@ func (memif *Memif) NewPacketHandle(queueId uint8, rxCount uint16) *MemifPacketH } } -// Reads packet data from memif in bursts, based on previously configured rxCount parameterer. Then caches the +// Reads packet data from memif in bursts, based on previously configured rxCount parameter. Then caches the // resulting packets and returns them 1 by 1 from this method until queue is empty then tries to call new rx burst // to read more data. If no data is returned, io.EOF error is thrown and caller should stop reading. func (handle *MemifPacketHandle) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) {