diff options
author | Eric Dumazet <[email protected]> | 2016-08-23 13:59:33 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-08-23 16:39:14 -0700 |
commit | e83c6744e81abc93a20d0eb3b7f504a176a6126a (patch) | |
tree | dee57e012d013ab817eb69dd6d1b8a277052e366 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 28a10c426e81afc88514bca8e73affccf850fdf6 (diff) |
udp: fix poll() issue with zero sized packets
Laura tracked poll() [and friends] regression caused by commit
e6afc8ace6dd ("udp: remove headers from UDP packets before queueing")
udp_poll() needs to know if there is a valid packet in receive queue,
even if its payload length is 0.
Change first_packet_length() to return an signed int, and use -1
as the indication of an empty queue.
Fixes: e6afc8ace6dd ("udp: remove headers from UDP packets before queueing")
Reported-by: Laura Abbott <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Tested-by: Laura Abbott <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions