summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-04-25 01:08:00 +0200
committerDavid S. Miller <davem@davemloft.net>2013-04-29 18:26:53 +0200
commitfdd5f43a1b53a844d04c6eda2cbdbe044b629ae7 (patch)
treee27205f97443fed29f28cb16b63e4204afe2f1d5 /include/uapi
parentvxlan: allow choosing destination port per vxlan (diff)
downloadlinux-fdd5f43a1b53a844d04c6eda2cbdbe044b629ae7.tar.xz
linux-fdd5f43a1b53a844d04c6eda2cbdbe044b629ae7.zip
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>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions