mirror of https://gitee.com/openkylin/linux.git
fdd5f43a1b
Testing like this for TP_STATUS_AVAILABLE clearly is a stupid bug since it always returns true. Fix this by only checking for flags where the kernel owns the packet and negate this result, since we also could run into the non-zero status TP_STATUS_WRONG_FORMAT and need to reclaim frames. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
psock_fanout.c | ||
psock_lib.h | ||
psock_tpacket.c | ||
run_afpackettests | ||
run_netsocktests | ||
socket.c |