commit | fdd5f43a1b53a844d04c6eda2cbdbe044b629ae7 | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <dborkman@redhat.com> | Wed Apr 24 23:08:00 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 29 12:26:53 2013 -0400 |
tree | e27205f97443fed29f28cb16b63e4204afe2f1d5 | |
parent | 823aa873bc782f1c51b1ce8ec6da7cfcaf93836e [diff] |
selftests: psock_tpacket: fix status check 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>