From fcae1c18de348762c25cf703de71c3a06009235c Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 5 Jun 2019 23:33:17 +0200 Subject: [PATCH] af-packet: improve error handling for some hw Some cards seems to return EAGAIN when there is no more place in the hash table. --- src/source-af-packet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/source-af-packet.c b/src/source-af-packet.c index 496a2a4268..1daa17bdd9 100644 --- a/src/source-af-packet.c +++ b/src/source-af-packet.c @@ -2315,6 +2315,9 @@ static int AFPInsertHalfFlow(int mapd, void *key, uint32_t hash, /* no more place in the hash */ case E2BIG: return 0; + /* no more place in the hash for some hardware bypass */ + case EAGAIN: + return 0; /* if we already have the key then bypass is a success */ case EEXIST: return 1;