diff options
author | Kusakabe Si <linux@kskb.eu.org> | 2021-06-24 13:16:00 +0800 |
---|---|---|
committer | Kusakabe Si <linux@kskb.eu.org> | 2021-06-24 13:23:02 +0800 |
commit | 91800ed117b781ede18cd45b84b80408ec31daf5 (patch) | |
tree | 9ec0379901f67a61c8ff06930f3ecefd3f2529dc | |
parent | 5de7f6b85458615fa592a335d45c546397f32c9a (diff) |
https://jira.fd.io/projects/GOVPP/issues/GOVPP-20
Signed-off-by: Kusakabe Si <linux@kskb.eu.org>
Change-Id: I14ae5071414d945a45d3d104390982085f3109ab
-rw-r--r-- | extras/libmemif/adapter.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extras/libmemif/adapter.go b/extras/libmemif/adapter.go index 0cee589..eb7e209 100644 --- a/extras/libmemif/adapter.go +++ b/extras/libmemif/adapter.go @@ -1157,6 +1157,11 @@ func pollRxQueue(memif *Memif, queueID uint8) { for { _, err := syscall.EpollWait(epFd, event[:], -1) if err != nil { + errno, _ := err.(syscall.Errno) + //EINTR and EAGAIN should not be considered as a fatal error, try again + if errno == syscall.EINTR || errno == syscall.EAGAIN { + continue + } log.WithField("err", err).Error("epoll_wait() failed") return } |