af-packet: improve error handling for some hw

Some cards seems to return EAGAIN when there is no more place in
the hash table.
pull/3952/head
Eric Leblond 6 years ago committed by Victor Julien
parent 0bfbb4a889
commit fcae1c18de

@ -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;

Loading…
Cancel
Save